You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@beehive.apache.org by Rich Feit <ri...@gmail.com> on 2005/07/08 00:01:07 UTC

Re: Problem after invalidating a session

Hi Lisa,

I see the problem -- would you mind entering a JIRA bug on this?  I can 
get it fixed quickly.

Thanks,
Rich

Cannon-Morrett, Lisa L wrote:

>I'm testing with the latest daily build
>(apache-beehive-incubating-20050623-193141) and am hitting an error
>after invalidating a session in an action.  The action invalidates the
>session and then forwards to another controller.  This code works fine
>on the 1.0m1 release.  Any ideas?
>
>Lisa Cannon-Morrett
>
>Here's the code:
>
>   @Jpf.Action( 
>		forwards = { @Jpf.Forward(name="success",
>path="/Controller.jpf")} 
>   )
>   protected Forward processLogout() {
>
>        HttpServletRequest request = getRequest();
>        request.getSession().invalidate();
>
>      return new Forward("success");
>   }
>
>After it executes, I get the following error:
>
>07/07/2005, 13:34:51 | ERROR |
>org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/wpajpf-p
>etstore-1.0.0].[action] | Servlet.service() for servlet action threw
>exception
>java.lang.IllegalArgumentException: null source
>	at java.util.EventObject.<init>(EventObject.java:38)
>	at
>javax.servlet.http.HttpSessionEvent.<init>(HttpSessionEvent.java:26)
>	at
>javax.servlet.http.HttpSessionBindingEvent.<init>(HttpSessionBindingEven
>t.java:100)
>	at
>org.apache.beehive.netui.pageflow.internal.DeferredSessionStorageHandler
>$SessionBindingEvent.<init>(DeferredSessionStorageHandler.java:75)
>	at
>org.apache.beehive.netui.pageflow.internal.DeferredSessionStorageHandler
>.removeAttribute(DeferredSessionStorageHandler.java:109)
>	at
>org.apache.beehive.netui.pageflow.PageFlowStack.destroy(PageFlowStack.ja
>va:147)
>	at
>org.apache.beehive.netui.pageflow.PageFlowStack.popUntil(PageFlowStack.j
>ava:179)
>	at
>org.apache.beehive.netui.pageflow.FlowControllerFactory.createPageFlow(F
>lowControllerFactory.java:322)
>	at
>org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.getFlowContro
>ller(PageFlowRequestProcessor.java:653)
>	at
>org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processIntern
>al(PageFlowRequestProcessor.java:558)
>	at
>org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.process(PageF
>lowRequestProcessor.java:886)
>	at
>org.apache.beehive.netui.pageflow.AutoRegisterActionServlet.process(Auto
>RegisterActionServlet.java:600)
>	at
>org.apache.beehive.netui.pageflow.PageFlowActionServlet.process(PageFlow
>ActionServlet.java:163)
>	at
>org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>	at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
>tionFilterChain.java:252)
>	at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
>erChain.java:173)
>.....
>
>  
>

Re: Problem after invalidating a session

Posted by Rich Feit <ri...@gmail.com>.
Thanks for the bug, Lisa -- the fix is in with revision 209841.  Let me 
know if you run into any other issues with it.
Rich

Rich Feit wrote:

> Hi Lisa,
>
> I see the problem -- would you mind entering a JIRA bug on this?  I 
> can get it fixed quickly.
>
> Thanks,
> Rich
>
> Cannon-Morrett, Lisa L wrote:
>
>> I'm testing with the latest daily build
>> (apache-beehive-incubating-20050623-193141) and am hitting an error
>> after invalidating a session in an action.  The action invalidates the
>> session and then forwards to another controller.  This code works fine
>> on the 1.0m1 release.  Any ideas?
>>
>> Lisa Cannon-Morrett
>>
>> Here's the code:
>>
>>   @Jpf.Action(         forwards = { @Jpf.Forward(name="success",
>> path="/Controller.jpf")}   )
>>   protected Forward processLogout() {
>>
>>        HttpServletRequest request = getRequest();
>>        request.getSession().invalidate();
>>
>>      return new Forward("success");
>>   }
>>
>> After it executes, I get the following error:
>>
>> 07/07/2005, 13:34:51 | ERROR |
>> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/wpajpf-p
>> etstore-1.0.0].[action] | Servlet.service() for servlet action threw
>> exception
>> java.lang.IllegalArgumentException: null source
>>     at java.util.EventObject.<init>(EventObject.java:38)
>>     at
>> javax.servlet.http.HttpSessionEvent.<init>(HttpSessionEvent.java:26)
>>     at
>> javax.servlet.http.HttpSessionBindingEvent.<init>(HttpSessionBindingEven
>> t.java:100)
>>     at
>> org.apache.beehive.netui.pageflow.internal.DeferredSessionStorageHandler
>> $SessionBindingEvent.<init>(DeferredSessionStorageHandler.java:75)
>>     at
>> org.apache.beehive.netui.pageflow.internal.DeferredSessionStorageHandler
>> .removeAttribute(DeferredSessionStorageHandler.java:109)
>>     at
>> org.apache.beehive.netui.pageflow.PageFlowStack.destroy(PageFlowStack.ja
>> va:147)
>>     at
>> org.apache.beehive.netui.pageflow.PageFlowStack.popUntil(PageFlowStack.j
>> ava:179)
>>     at
>> org.apache.beehive.netui.pageflow.FlowControllerFactory.createPageFlow(F
>> lowControllerFactory.java:322)
>>     at
>> org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.getFlowContro
>> ller(PageFlowRequestProcessor.java:653)
>>     at
>> org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processIntern
>> al(PageFlowRequestProcessor.java:558)
>>     at
>> org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.process(PageF
>> lowRequestProcessor.java:886)
>>     at
>> org.apache.beehive.netui.pageflow.AutoRegisterActionServlet.process(Auto
>> RegisterActionServlet.java:600)
>>     at
>> org.apache.beehive.netui.pageflow.PageFlowActionServlet.process(PageFlow
>> ActionServlet.java:163)
>>     at
>> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
>> tionFilterChain.java:252)
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
>> erChain.java:173)
>> .....
>>
>>  
>>
>