NullPointerException after session timeout
j.harm Dec 2, 2010 10:20 AMHi,
with GateIn 3.1.0 on JBoss AS 5.1.0 I got a NullPointerException after http session timed out:
{code}Caused by: java.lang.NullPointerException
at org.gatein.pc.portlet.impl.jsr168.api.PortletSessionImpl.getAttribute(PortletSessionImpl.java:71)
at org.jboss.portletbridge.context.PortletExternalContextImpl.getSessionAttribute(PortletExternalContextImpl.java:202)
at org.jboss.portletbridge.context.PortletExternalContextImpl.getSessionAttribute(PortletExternalContextImpl.java:194)
at org.jboss.portletbridge.context.AbstractExternalContext$8.getAttribute(AbstractExternalContext.java:477)
at org.jboss.portletbridge.context.ContextAttributesMap.get(ContextAttributesMap.java:39)
at org.jboss.seam.contexts.ServerConversationContext.get(ServerConversationContext.java:110)
at org.jboss.seam.contexts.Contexts.lookupInStatefulContexts(Contexts.java:189)
at org.jboss.seam.Component.getInstance(Component.java:1985)
at org.jboss.seam.Component.getInstance(Component.java:1980)
at org.jboss.seam.security.permission.RuleBasedPermissionResolver.initSecurityContext(RuleBasedPermissionResolver.java:68)
at org.jboss.seam.security.permission.RuleBasedPermissionResolver.create(RuleBasedPermissionResolver.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
at org.jboss.seam.Component.callComponentMethod(Component.java:2275)
at org.jboss.seam.Component.callCreateMethod(Component.java:2198)
at org.jboss.seam.Component.newInstance(Component.java:2158)
... 109 more{code}
From the code I can not see, why the (wrapped) http session at the given line ist null. Looks like a bug.
King regards,
Joerg