Skip to main content

NPE in ResourceImpl deserialization from session after server restart

5 replies [Last post]
rstoyanchev
Offline
Joined: 2007-08-30

The issue I'm running into has described and fixed as part of MOJARRA-911 over a year ago:
https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=911

However the fix is no longer present in trunk (seems to have been lost as early as r6845).

This seems like bug to me. De-serialization is a low-level operation that should not rely on the presence of a FacesContext instance in a ThreadLocal.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
rstoyanchev
Offline
Joined: 2007-08-30
rstoyanchev
Offline
Joined: 2007-08-30

Certainly, what information would you like to see? The original issue (MOJARRA-911) matches to what I see.

I think what happens is that when Tomcat is restarted it stores the user sessions to disk and then attempts to reload them. Clearly at this point there is no FacesContext as the servlet container hasn't even fully initialized. As I mentioned before it seems seralization is too low-level to assume the presence of a FacesContext.

Sheetal Vartak

Hello,
Thanks for pointing out the issue that's already there. I'm new to the JSF team, so the description below helps :-)
If we need any other information, will certainly send you an email.
Thanks
Sheetal

On May 26, 2010, at 10:19 AM, webtier@javadesktop.org wrote:

> Certainly, what information would you like to see? The original issue (MOJARRA-911) matches to what I see.
>
> I think what happens is that when Tomcat is restarted it stores the user sessions to disk and then attempts to reload them. Clearly at this point there is no FacesContext as the servlet container hasn't even fully initialized. As I mentioned before it seems seralization is too low-level to assume the presence of a FacesContext.
> [Message sent by forum member 'rstoyanchev']
>
> http://forums.java.net/jive/thread.jspa?messageID=471552
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: webtier-help@glassfish.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: webtier-help@glassfish.dev.java.net

rstoyanchev
Offline
Joined: 2007-08-30

Any comments? Should I open a new issue?

Sheetal Vartak

Hello,
Please go ahead and open a new issue. Can you please provide more details on the problem?

Thanks
Sheetal

On May 26, 2010, at 4:38 AM, webtier@javadesktop.org wrote:

> Any comments? Should I open a new issue?
> [Message sent by forum member 'rstoyanchev']
>
> http://forums.java.net/jive/thread.jspa?messageID=471505
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: webtier-help@glassfish.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: webtier-help@glassfish.dev.java.net