You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Stefan Geelen <st...@hotmail.com> on 2004/02/17 09:25:37 UTC

Sendmail.xsp and internal pipeline problem

Hi,

I have following pipeline:

<map:pipeline>
  <map:match pattern="announcement/update-announcement-list">
        <map:aggregate element="page" label="peek-xml">
          <map:part element="content" ns="http://www.test.com/content" src="cocoon:/announcement/update-announcement-list"/> 
        </map:aggregate>
       
        <map:transform src="stylesheets/default/template.xsl"/>

        <map:serialize />
      </map:match>
    </map:pipeline>

The 'src="cocoon:/announcement/update-announcement-list"/> ' points to an internal pipeline:

    <map:pipeline internal-only="true" >
      <!-- internal-only="true">-->
      <map:match pattern="announcement/update-announcement-list">
        <map:generate type="serverpages" src="xsp/update-announcement-list.xsp"/>         
        <map:serialize type="xml"/>
      </map:match>
    </map:pipeline>

The problem is that when I activate this (using a regulat html form that calls announcement/update-announcement-list, I get in my browser a white empty screen instead of a message telling that it has been processed.

If I change to to:

<map:pipeline>
  <map:match pattern="announcement/update-announcement-list">
    <map:generate type="serverpages" src="xsp/update-announcement-list.xsp"/>
   
        <map:transform src="stylesheets/default/template.xsl"/>

        <map:serialize />
      </map:match>
    </map:pipeline>

Note: now I call the .xsp directly (src="xsp/update-announcement-list.xsp") it does work (so the .xsp is correct).

Anyone any idea ? 




----- Original Message ----- 
From: Stefan Geelen 
To: users@cocoon.apache.org 
Sent: Tuesday, February 17, 2004 12:09 AM
Subject: Sendmail.xsp and whitespace gives error ?


Hi,

following sendmail action (partially reproduced) runs fine:

<sendmail:send-mail>
  <sendmail:from><xsp:expr>request.get("from")</xsp:expr></sendmail:from>
    ...

==> Note that you should read the <sendmail:from> as one line (in case your mail program wraps it).

Now, with following an Lanaguage Expeption is generated:

<sendmail:send-mail>
  <sendmail:from>
    <xsp:expr>request.get("from")</xsp:expr>
  </sendmail:from>
..

Note that the sendmail:from is now split over 3 lines.

The error I get is :

 org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling update_announcement_list_xsp: ERROR 1 (org\apache\cocoon\www\xmlmill\xsp\update_announcement_list_xsp.java): . _sendmail_mms.setFrom(String.valueOf( "" // start error (lines 545-545) "String literal is not properly closed by a double-quote" + " // end error " + .. Line 545, column 0: String literal is not properly closed by a double-quote 

This is quite annoying as xmlSpy will automatically split these lines each time I open this xsp file.

What I want to know: Is this normal Cocoon behavior and/or is there a simple way to solve this problem ?

Regards,

Stefan





Re: Sendmail.xsp and internal pipeline problem

Posted by Stefan Geelen <st...@hotmail.com>.
Joerg,

Unfortunately I can't remember the solution.

I remeber another problem, using '-' in pattern matching ( like
pattern="announcement/update-announcement-list").
Underscore did work (like pattern="announcement/update_announcement-list").
This problem was solved by upgrading from Tomcat 4.0.4 to Tomcat 4.0.6.

Regards,

Stefan
----- Original Message ----- 
From: "Joerg Heinicke" <jo...@gmx.de>
To: <us...@cocoon.apache.org>
Sent: Tuesday, March 16, 2004 9:33 PM
Subject: Re: Sendmail.xsp and internal pipeline problem


> On 17.02.2004 09:25, Stefan Geelen wrote:
>
> > Hi,
> >
> > I have following pipeline:
> >
> > <map:pipeline>
> >   <map:match pattern="announcement/update-announcement-list">
> >         <map:aggregate element="page" label="peek-xml">
> >           <map:part element="content" ns="http://www.test.com/content"
src="cocoon:/announcement/update-announcement-list"/>
> >         </map:aggregate>
> >
> >         <map:transform src="stylesheets/default/template.xsl"/>
> >
> >         <map:serialize />
> >       </map:match>
> >     </map:pipeline>
> >
> > The 'src="cocoon:/announcement/update-announcement-list"/> ' points to
an internal pipeline:
> >
> >     <map:pipeline internal-only="true" >
> >       <!-- internal-only="true">-->
> >       <map:match pattern="announcement/update-announcement-list">
> >         <map:generate type="serverpages"
src="xsp/update-announcement-list.xsp"/>
> >         <map:serialize type="xml"/>
> >       </map:match>
> >     </map:pipeline>
> >
> > The problem is that when I activate this (using a regulat html form that
calls announcement/update-announcement-list, I get in my browser a white
empty screen instead of a message telling that it has been processed.
> >
> > If I change to to:
> >
> > <map:pipeline>
> >   <map:match pattern="announcement/update-announcement-list">
> >     <map:generate type="serverpages"
src="xsp/update-announcement-list.xsp"/>
> >
> >         <map:transform src="stylesheets/default/template.xsl"/>
> >
> >         <map:serialize />
> >       </map:match>
> >     </map:pipeline>
> >
> > Note: now I call the .xsp directly
(src="xsp/update-announcement-list.xsp") it does work (so the .xsp is
correct).
> >
> > Anyone any idea ?
>
> Did you get it working in the meantime? I could remember two problems:
> something with the SAX events or something with the source resolving.
> But it's of course difficult to say with just the hint "blank page".
> Nothing in any logs?
>
> Joerg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Sendmail.xsp and internal pipeline problem

Posted by Joerg Heinicke <jo...@gmx.de>.
On 17.02.2004 09:25, Stefan Geelen wrote:

> Hi,
> 
> I have following pipeline:
> 
> <map:pipeline>
>   <map:match pattern="announcement/update-announcement-list">
>         <map:aggregate element="page" label="peek-xml">
>           <map:part element="content" ns="http://www.test.com/content" src="cocoon:/announcement/update-announcement-list"/> 
>         </map:aggregate>
>        
>         <map:transform src="stylesheets/default/template.xsl"/>
> 
>         <map:serialize />
>       </map:match>
>     </map:pipeline>
> 
> The 'src="cocoon:/announcement/update-announcement-list"/> ' points to an internal pipeline:
> 
>     <map:pipeline internal-only="true" >
>       <!-- internal-only="true">-->
>       <map:match pattern="announcement/update-announcement-list">
>         <map:generate type="serverpages" src="xsp/update-announcement-list.xsp"/>         
>         <map:serialize type="xml"/>
>       </map:match>
>     </map:pipeline>
> 
> The problem is that when I activate this (using a regulat html form that calls announcement/update-announcement-list, I get in my browser a white empty screen instead of a message telling that it has been processed.
> 
> If I change to to:
> 
> <map:pipeline>
>   <map:match pattern="announcement/update-announcement-list">
>     <map:generate type="serverpages" src="xsp/update-announcement-list.xsp"/>
>    
>         <map:transform src="stylesheets/default/template.xsl"/>
> 
>         <map:serialize />
>       </map:match>
>     </map:pipeline>
> 
> Note: now I call the .xsp directly (src="xsp/update-announcement-list.xsp") it does work (so the .xsp is correct).
> 
> Anyone any idea ? 

Did you get it working in the meantime? I could remember two problems: 
something with the SAX events or something with the source resolving. 
But it's of course difficult to say with just the hint "blank page". 
Nothing in any logs?

Joerg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org