You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Brian Schwark <bs...@aci-hq.com> on 2002/10/25 16:02:35 UTC

java.lang.null on logout using sunRise

Hey folks,

My name is Brian Schwark, and I was referred to this list by Matthew 
Langham concerning some difficulty I've been having using the sunRise 
components with the Cocoon 2.1 CVS distribution.

My problem is basically this: I am able to authenticate and login, and 
create an active session. But when I attempt to logout, I get the 
following error (backtrace included for completeness):

*type* fatal

*message* _null_

*description* _java.lang.NullPointerException_

*sender* org.apache.cocoon.servlet.CocoonServlet

*source* Cocoon servlet

*stack-trace*

java.lang.NullPointerException
	at org.apache.cocoon.sunshine.sunrise.SunRise.logout(SunRise.java:1083)
	at org.apache.cocoon.sunshine.sunrise.acting.LogoutAction.act(LogoutAction.java:108)
	at org.apache.cocoon.www.sitemap_xmap.matchN10A0F(C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:12161)
	at org.apache.cocoon.www.sitemap_xmap.process(C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:4629)
	at org.apache.cocoon.www.sitemap_xmap.process(C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3948)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
	at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2350)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
	at java.lang.Thread.run(Thread.java:536)

I looked through SunRise.java at the line that's failing, and it seems to me like it's dying where it's trying to kill the
session context, which leads me to infer that perhaps the sunrise.java isn't getting passed the context info correctly. I'm sure
this is most likely because of something I've done wrong, but I've followed the instructions of multiple sunrise how-to's to the T.

I'm calling the logout currently through a simple pipeline which calls the sunrise-logout action and then redirects back to the
login page:

<map:match pattern="logout">
    <map:act type="sunRise-logout">
        <map:parameter name="handler" value="foo-handler"/>
	<map:redirect-to uri="foo-loginpage"/>
    </map:act>
</map:match>

I'm thinking I may be missing something in the logout pipeline that's required, but unfortunately I haven't been able to track
down any documentation concerning the exact syntax and structure required for a logout pipeline; I built the above one basically
as an educated guess.

If anyone has any insight into where things are going wrong, I would really appreciate it. This logout issue has been one of the
only things really keeping myself and my collegues from pushing forward with our Cocoon development.

Many thanks in advance,
Brian Schwark
bschwark@aci-hq.com



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