Obscure session invalid issue on OC4J with seam-gen app
-------------------------------------------------------
Key: JBSEAM-2375
URL:
http://jira.jboss.com/jira/browse/JBSEAM-2375
Project: JBoss Seam
Issue Type: Bug
Affects Versions: 2.0.1.CR1
Environment: RHEL-5 i386
JDK 1.5.0_13
Firefox 2.0
OC4J-11.1.1.0
Reporter: Jay Balunas
Priority: Minor
Following the seam-gen application instructions for OC4J integration in the reference
guide causes this error. I could not reproduce when I deployed the same app on JBoss
4.2.2.GA.
I was able to duplicate this error when the app was just based on the reverse engineered
db and after I applied the drools changes.
Deploy and access the application:
Login
logout
close browser - make sure all are closed(firefox 2.0)
go back to application
get 500 internal with the exception below.
For some reason oc4j thinks the session is invalidated.
INFO: starting up: org.jboss.seam.web.session
Dec 12, 2007 3:53:01 PM org.jboss.seam.contexts.Contexts startup
INFO: starting up: org.jboss.seam.security.identity
Dec 12, 2007 3:53:01 PM org.jboss.seam.jsf.SeamPhaseListener beforePhase
SEVERE: uncaught exception
org.jboss.seam.InstantiationException: Could not instantiate Seam component:
org.jboss.seam.security.identity
at org.jboss.seam.Component.newInstance(Component.java:1970)
at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
at org.jboss.seam.contexts.Lifecycle.beginSession(Lifecycle.java:191)
at
org.jboss.seam.contexts.ServletLifecycle.beginSession(ServletLifecycle.java:124)
at org.jboss.seam.servlet.SeamListener.sessionCreated(SeamListener.java:44)
at
com.evermind.server.http.HttpApplication.createSession(HttpApplication.java:2098)
at
com.evermind.server.http.EvermindHttpServletRequest.unprivileged_getSession(EvermindHttpServletRequest.java:2778)
at
com.evermind.server.http.EvermindHttpServletRequest.getSession(EvermindHttpServletRequest.java:2672)
at
javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:227)
at com.sun.faces.context.SessionMap.getSession(ExternalContextImpl.java:1009)
at com.sun.faces.context.SessionMap.get(ExternalContextImpl.java:969)
at org.jboss.seam.contexts.BasicContext.get(BasicContext.java:48)
at org.jboss.seam.Component.getInstance(Component.java:1851)
at org.jboss.seam.Component.getInstance(Component.java:1829)
at org.jboss.seam.web.Session.getInstance(Session.java:122)
at org.jboss.seam.contexts.FacesLifecycle.beginRequest(FacesLifecycle.java:54)
at
org.jboss.seam.jsf.SeamPhaseListener.beforeRestoreView(SeamPhaseListener.java:368)
at
org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:139)
at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:116)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:218)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
at
com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
at
com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:619)
at
com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
at
com.evermind.server.http.HttpRequestHandler.doDispatchRequest(HttpRequestHandler.java:889)
at
com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:797)
at
com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:607)
at
com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:376)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:161)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:142)
at
oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.IllegalArgumentException: could not set property value:
org.jboss.seam.security.identity.setRememberMe
at org.jboss.seam.Component.setPropertyValue(Component.java:1777)
at org.jboss.seam.Component.initialize(Component.java:1390)
at org.jboss.seam.Component.instantiateJavaBean(Component.java:1315)
at org.jboss.seam.Component.instantiate(Component.java:1268)
at org.jboss.seam.Component.newInstance(Component.java:1966)
... 49 more
Caused by: java.lang.NullPointerException
at com.sun.faces.context.SessionMap.get(ExternalContextImpl.java:969)
at
org.jboss.seam.contexts.ServerConversationContext.get(ServerConversationContext.java:102)
at org.jboss.seam.contexts.Contexts.lookupInStatefulContexts(Contexts.java:189)
at org.jboss.seam.Component.getInstance(Component.java:1839)
at org.jboss.seam.core.Events.raiseEvent(Events.java:76)
at org.jboss.seam.security.Identity.setRememberMe(Identity.java:598)
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:585)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
at org.jboss.seam.Component.setPropertyValue(Component.java:1773)
... 53 more
Dec 12, 2007 3:53:01 PM org.jboss.seam.jsf.SeamPhaseListener beforePhase
SEVERE: swallowing exception
org.jboss.seam.InstantiationException: Could not instantiate Seam component:
org.jboss.seam.security.identity
at org.jboss.seam.Component.newInstance(Component.java:1970)
at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
at org.jboss.seam.contexts.Lifecycle.beginSession(Lifecycle.java:191)
at
org.jboss.seam.contexts.ServletLifecycle.beginSession(ServletLifecycle.java:124)
at org.jboss.seam.servlet.SeamListener.sessionCreated(SeamListener.java:44)
at
com.evermind.server.http.HttpApplication.createSession(HttpApplication.java:2098)
at
com.evermind.server.http.EvermindHttpServletRequest.unprivileged_getSession(EvermindHttpServletRequest.java:2778)
at
com.evermind.server.http.EvermindHttpServletRequest.getSession(EvermindHttpServletRequest.java:2672)
at
javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:227)
at com.sun.faces.context.SessionMap.getSession(ExternalContextImpl.java:1009)
at com.sun.faces.context.SessionMap.get(ExternalContextImpl.java:969)
at org.jboss.seam.contexts.BasicContext.get(BasicContext.java:48)
at org.jboss.seam.Component.getInstance(Component.java:1851)
at org.jboss.seam.Component.getInstance(Component.java:1829)
at org.jboss.seam.web.Session.getInstance(Session.java:122)
at org.jboss.seam.contexts.FacesLifecycle.beginRequest(FacesLifecycle.java:54)
at
org.jboss.seam.jsf.SeamPhaseListener.beforeRestoreView(SeamPhaseListener.java:368)
at
org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:139)
at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:116)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:218)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
at
com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
at
com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:619)
at
com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
at
com.evermind.server.http.HttpRequestHandler.doDispatchRequest(HttpRequestHandler.java:889)
at
com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:797)
at
com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:607)
at
com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:376)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:161)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:142)
at
oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.IllegalArgumentException: could not set property value:
org.jboss.seam.security.identity.setRememberMe
at org.jboss.seam.Component.setPropertyValue(Component.java:1777)
at org.jboss.seam.Component.initialize(Component.java:1390)
at org.jboss.seam.Component.instantiateJavaBean(Component.java:1315)
at org.jboss.seam.Component.instantiate(Component.java:1268)
at org.jboss.seam.Component.newInstance(Component.java:1966)
... 49 more
Caused by: java.lang.NullPointerException
at com.sun.faces.context.SessionMap.get(ExternalContextImpl.java:969)
at
org.jboss.seam.contexts.ServerConversationContext.get(ServerConversationContext.java:102)
at org.jboss.seam.contexts.Contexts.lookupInStatefulContexts(Contexts.java:189)
at org.jboss.seam.Component.getInstance(Component.java:1839)
at org.jboss.seam.core.Events.raiseEvent(Events.java:76)
at org.jboss.seam.security.Identity.setRememberMe(Identity.java:598)
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:585)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
at org.jboss.seam.Component.setPropertyValue(Component.java:1773)
... 53 more
Dec 12, 2007 3:53:01 PM com.sun.faces.lifecycle.LifecycleImpl phase
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira