cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johann Romefort" <romef...@club-internet.fr>
Subject problem with session transformer together with cocoon:/ pseudo protocol
Date Fri, 18 Oct 2002 16:26:57 GMT


 Hi,

 I m getting some troubles working with cocoon:/ pseudo protocol and
 the session Transformer.

 Basically I have one pipeline that call another using the cocoon:/
protocal.
 In this second pipeline I perform a session transformation to get back
 the profile of the current user with the tag:

 <session:getxml context="authentication" path="/authentication/data"/>

 Here is a  snapeshot of the simplified buggy sitemap:

 <map:match pattern="**.xml">
     <map:act type="auth-protect">
     <map:parameter name="handler" value="demohandler"/>

     <map:match pattern="*-list-form.xml">
         <map:generate src="cocoon:/auth.xml"/>
         <map:serialize type="html"/>
     </map:match>

     <map:match pattern="auth.xml" >
         <map:generate src="sunrise/user-resource.xml"/>
         <map:transform type="session" />
         <map:serialize type="xml"/>
     </map:match>

     </map:act>
 </map:match>

 Caused by: java.lang.NullPointerException
  at

org.apache.cocoon.webapps.authentication.context.SessionContextImpl.(Session
 ContextImpl.java:111)
  at

org.apache.cocoon.webapps.authentication.context.SessionContextProviderImpl.
 getSessionContext(SessionContextProviderImpl.java:97)
  at

org.apache.cocoon.webapps.session.components.SessionManager.getReservedConte
 xt(SessionManager.java:315)
 at

org.apache.cocoon.webapps.session.components.SessionManager.getContext(Sessi
 onManager.java:958)


 It seems that this problem is the same that the one discussed in
 http://www.mail-archive.com/cocoon-users@xml.apache.org/msg16912.html


Any help welcome!

 Johann Romefort




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


Mime
View raw message