1 Reply Latest reply on Mar 23, 2009 3:04 PM by Norman Richards

    Failure instantiating Seam component

    Matt  Dewbery Newbie

      I am experiencing some intermittent failures on Seam the most crucial appears to be a recursive stack trace whilst trying to create the identity component.


      Environment:
      SEAM 2.1.1.GA
      WEBLOGIC 10.0 (Cannot update to 10.3 at this stage)
      SEAM debug disabled
      WEBLOGIC memory args jrockit (1024 megs)



      In our case this identity component is a custom Seam component which extends org.jboss.seam.security.identity it is annotated as follows:


      @Name("org.jboss.seam.security.identity")
      @Scope(ScopeType.SESSION)
      @Install(precedence APPLICATION)
      @BypassInterceptors
      @Startup
      public class UserIdentity extends Identity {



      Any and all suggestions on how to resolve this issue appreciated.


      <User defined listener org.jboss.seam.servlet.SeamListener failed: org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.security.identity.
      org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.security.identity
           at org.jboss.seam.Component.newInstance(Component.java:2106)
           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:209)
           at org.jboss.seam.contexts.ServletLifecycle.beginSession(ServletLifecycle.java:141)
           at org.jboss.seam.servlet.SeamListener.sessionCreated(SeamListener.java:45)
           at weblogic.servlet.internal.EventsManager.notifySessionLifetimeEvent(EventsManager.java:257)
           at weblogic.servlet.internal.session.MemorySessionData.<init>(MemorySessionData.java:10)
           at weblogic.servlet.internal.session.MemorySessionContext.getNewSession(MemorySessionContext.java:28)
           at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.getNewSession(ServletRequestImpl.java:2530)
           at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.getSessionInternal(ServletRequestImpl.java:2115)
           at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.getSession(ServletRequestImpl.java:2079)
           at weblogic.servlet.internal.ServletRequestImpl.getSession(ServletRequestImpl.java:1211)
           at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:227)
           at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:227)
           at com.sun.faces.context.SessionMap.getSession(ExternalContextImpl.java:1002)
           at com.sun.faces.context.SessionMap.get(ExternalContextImpl.java:962)
           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:1949)
           at org.jboss.seam.Component.getInstance(Component.java:1944)
           at org.jboss.seam.Component.getInstance(Component.java:1924)
           at org.jboss.seam.Component.getInstance(Component.java:1919)
           at org.jboss.seam.security.Identity.create(Identity.java:101)
           at sun.reflect.GeneratedMethodAccessor665.invoke(Unknown Source)
           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:22)
           at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
           at org.jboss.seam.Component.callComponentMethod(Component.java:2211)
           at org.jboss.seam.Component.callCreateMethod(Component.java:2134)
           at org.jboss.seam.Component.newInstance(Component.java:2094)
           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:209)
           at org.jboss.seam.contexts.ServletLifecycle.beginSession(ServletLifecycle.java:141)
           at org.jboss.seam.servlet.SeamListener.sessionCreated(SeamListener.java:45)
           at weblogic.servlet.internal.EventsManager.notifySessionLifetimeEvent(EventsManager.java:257)
           at weblogic.servlet.internal.session.MemorySessionData.<init>(MemorySessionData.java:10)
           at weblogic.servlet.internal.session.MemorySessionContext.getNewSession(MemorySessionContext.java:28)
           at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.getNewSession(ServletRequestImpl.java:2530)
           at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.getSessionInternal(ServletRequestImpl.java:2115)
           at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.getSession(ServletRequestImpl.java:2079)
           at weblogic.servlet.internal.ServletRequestImpl.getSession(ServletRequestImpl.java:1211)
           at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:227)
           at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:227)
           at com.sun.faces.context.SessionMap.getSession(ExternalContextImpl.java:1002)
           at com.sun.faces.context.SessionMap.get(ExternalContextImpl.java:962)
           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:1949)
           at org.jboss.seam.Component.getInstance(Component.java:1944)
           at org.jboss.seam.Component.getInstance(Component.java:1924)
           at org.jboss.seam.Component.getInstance(Component.java:1919)
           at org.jboss.seam.security.Identity.create(Identity.java:101)
           at sun.reflect.GeneratedMethodAccessor665.invoke(Unknown Source)
           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:22)
           at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
           at org.jboss.seam.Component.callComponentMethod(Component.java:2211)
           at org.jboss.seam.Component.callCreateMethod(Component.java:2134)
           at org.jboss.seam.Component.newInstance(Component.java:2094)
           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:209)
           at org.jboss.seam.contexts.ServletLifecycle.beginSession(ServletLifecycle.java:141)
           at org.jboss.seam.servlet.SeamListener.sessionCreated(SeamListener.java:45)
           at weblogic.servlet.internal.EventsManager.notifySessionLifetimeEvent(EventsManager.java:257)
           at weblogic.servlet.internal.session.MemorySessionData.<init>(MemorySessionData.java:10)
           at weblogic.servlet.internal.session.MemorySessionContext.getNewSession(MemorySessionContext.java:28)
           at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.getNewSession(ServletRequestImpl.java:2530)
           at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.getSessionInternal(ServletRequestImpl.java:2115)
           at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.getSession(ServletRequestImpl.java:2079)
           at weblogic.servlet.internal.ServletRequestImpl.getSession(ServletRequestImpl.java:1211)
           at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:227)
           at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:227)
           at com.sun.faces.context.SessionMap.getSession(ExternalContextImpl.java:1002)
           at com.sun.faces.context.SessionMap.get(ExternalContextImpl.java:962)
           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:1949)
           at org.jboss.seam.Component.getInstance(Component.java:1944)
           at org.jboss.seam.Component.getInstance(Component.java:1924)
           at org.jboss.seam.Component.getInstance(Component.java:1919)
           at org.jboss.seam.security.Identity.create(Identity.java:101)
           at sun.reflect.GeneratedMethodAccessor665.invoke(Unknown Source)
           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:22)
           at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
           at org.jboss.seam.Component.callComponentMethod(Component.java:2211)
           at org.jboss.seam.Component.callCreateMethod(Component.java:2134)
           at org.jboss.seam.Component.newInstance(Component.java:2094)
           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:209)
           at org.jboss.seam.contexts.ServletLifecycle.beginSession(ServletLifecycle.java:141)
           at org.jboss.seam.servlet.SeamListener.sessionCreated(SeamListener.java:45)
           at weblogic.servlet.internal.EventsManager.notifySessionLifetimeEvent(EventsManager.java:257)
           at weblogic.servlet.internal.session.MemorySessionData.<init>(MemorySessionData.java:10)
           at weblogic.servlet.internal.session.MemorySessionContext.getNewSession(MemorySessionContext.java:28)
           at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.getNewSession(ServletRequestImpl.java:2530)
           at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.getSessionInternal(ServletRequestImpl.java:2115)
           at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.getSession(ServletRequestImpl.java:2079)
           at weblogic.servlet.internal.ServletRequestImpl.getSession(ServletRequestImpl.java:1211)
           at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:227)
           at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:227)
           at com.sun.faces.context.SessionMap.getSession(ExternalContextImpl.java:1002)
           at com.sun.faces.context.SessionMap.get(ExternalContextImpl.java:962)
           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:1949)
           at org.jboss.seam.Component.getInstance(Component.java:1944)
           at org.jboss.seam.Component.getInstance(Component.java:1924)
           at org.jboss.seam.Component.getInstance(Component.java:1919)
           at org.jboss.seam.security.Identity.create(Identity.java:101)



      This repeats a number of times until the following:

      java.lang.RuntimeException: exception invoking: create
           at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:154)
           at org.jboss.seam.Component.callComponentMethod(Component.java:2211)
           at org.jboss.seam.Component.callCreateMethod(Component.java:2134)
           at org.jboss.seam.Component.newInstance(Component.java:2094)
           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:209)
           at org.jboss.seam.contexts.ServletLifecycle.beginSession(ServletLifecycle.java:141)
           at org.jboss.seam.servlet.SeamListener.sessionCreated(SeamListener.java:45)
           at weblogic.servlet.internal.EventsManager.notifySessionLifetimeEvent(EventsManager.java:257)
           at weblogic.servlet.internal.session.MemorySessionData.<init>(MemorySessionData.java:10)
           at weblogic.servlet.internal.session.MemorySessionContext.getNewSession(MemorySessionContext.java:28)
           at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.getNewSession(ServletRequestImpl.java:2530)
           at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.getSessionInternal(ServletRequestImpl.java:2115)
           at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.getSession(ServletRequestImpl.java:2079)
           at weblogic.servlet.internal.ServletRequestImpl.getSession(ServletRequestImpl.java:1211)
           at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:227)
           at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:227)
           at com.sun.faces.context.SessionMap.getSession(ExternalContextImpl.java:1002)
           at com.sun.faces.context.SessionMap.get(ExternalContextImpl.java:962)
           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:1949)
           at org.jboss.seam.Component.getInstance(Component.java:1944)
           at org.jboss.seam.Component.getInstance(Component.java:1924)
           at org.jboss.seam.Component.getInstance(Component.java:1919)
           at org.jboss.seam.security.Identity.create(Identity.java:101)
           at sun.reflect.GeneratedMethodAccessor665.invoke(Unknown Source)
           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:22)
           at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
           at org.jboss.seam.Component.callComponentMethod(Component.java:2211)
           at org.jboss.seam.Component.callCreateMethod(Component.java:2134)
           at org.jboss.seam.Component.newInstance(Component.java:2094)
           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:209)
           at org.jboss.seam.contexts.ServletLifecycle.beginSession(ServletLifecycle.java:141)
           at org.jboss.seam.servlet.SeamListener.sessionCreated(SeamListener.java:45)
           at weblogic.servlet.internal.EventsManager.notifySessionLifetimeEvent(EventsManager.java:257)
           at weblogic.servlet.internal.session.MemorySessionData.<init>(MemorySessionData.java:10)
           at weblogic.servlet.internal.session.MemorySessionContext.getNewSession(MemorySessionContext.java:28)
           at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.getNewSession(ServletRequestImpl.java:2530)
           at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.getSessionInternal(ServletRequestImpl.java:2115)
           at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.getSession(ServletRequestImpl.java:2079)
           at weblogic.servlet.internal.ServletRequestImpl.getSession(ServletRequestImpl.java:1211)
           at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:227)
           at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:227)
           at com.sun.faces.context.SessionMap.getSession(ExternalContextImpl.java:1002)
           at com.sun.faces.context.SessionMap.get(ExternalContextImpl.java:962)
           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:1949)
           at org.jboss.seam.Component.getInstance(Component.java:1944)
           at org.jboss.seam.Component.getInstance(Component.java:1924)
           at org.jboss.seam.Component.getInstance(Component.java:1919)
           at org.jboss.seam.security.Identity.create(Identity.java:101)



      Finally after pages and pages of recursive stack trace the following is shown:

      java.lang.reflect.InvocationTargetException
           at sun.reflect.GeneratedMethodAccessor665.invoke(Unknown Source)
           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:22)
           at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
           at org.jboss.seam.Component.callComponentMethod(Component.java:2211)
           at org.jboss.seam.Component.callCreateMethod(Component.java:2134)
           at org.jboss.seam.Component.newInstance(Component.java:2094)
           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:209)
           at org.jboss.seam.contexts.ServletLifecycle.beginSession(ServletLifecycle.java:141)
           at org.jboss.seam.servlet.SeamListener.sessionCreated(SeamListener.java:45)
           at weblogic.servlet.internal.EventsManager.notifySessionLifetimeEvent(EventsManager.java:257)
           at weblogic.servlet.internal.session.MemorySessionData.<init>(MemorySessionData.java:10)
           at weblogic.servlet.internal.session.MemorySessionContext.getNewSession(MemorySessionContext.java:28)
           at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.getNewSession(ServletRequestImpl.java:2530)
           at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.getSessionInternal(ServletRequestImpl.java:2115)
           at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.getSession(ServletRequestImpl.java:2079)
           at weblogic.servlet.internal.ServletRequestImpl.getSession(ServletRequestImpl.java:1211)
           at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:227)
           at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:227)
           at com.sun.faces.context.SessionMap.getSession(ExternalContextImpl.java:1002)
           at com.sun.faces.context.SessionMap.get(ExternalContextImpl.java:962)
           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:1949)
           at org.jboss.seam.Component.getInstance(Component.java:1944)
           at org.jboss.seam.Component.getInstance(Component.java:1924)
           at org.jboss.seam.Component.getInstance(Component.java:1919)
           at org.jboss.seam.security.Identity.create(Identity.java:101)
           at sun.reflect.GeneratedMethodAccessor665.invoke(Unknown Source)
           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:22)
           at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
           at org.jboss.seam.Component.callComponentMethod(Component.java:2211)
           at org.jboss.seam.Component.callCreateMethod(Component.java:2134)
           at org.jboss.seam.Component.newInstance(Component.java:2094)
           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:209)
           at org.jboss.seam.contexts.ServletLifecycle.beginSession(ServletLifecycle.java:141)
           at org.jboss.seam.servlet.SeamListener.sessionCreated(SeamListener.java:45)
           at weblogic.servlet.internal.EventsManager.notifySessionLifetimeEvent(EventsManager.java:257)
           at weblogic.servlet.internal.session.MemorySessionData.<init>(MemorySessionData.java:10)
           at weblogic.servlet.internal.session.MemorySessionContext.getNewSession(MemorySessionContext.java:28)
           at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.getNewSession(ServletRequestImpl.java:2530)
           at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.getSessionInternal(ServletRequestImpl.java:2115)
           at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.getSession(ServletRequestImpl.java:2079)
           at weblogic.servlet.internal.ServletRequestImpl.getSession(ServletRequestImpl.java:1211)
           at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:227)
           at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:227)
           at com.sun.faces.context.SessionMap.getSession(ExternalContextImpl.java:1002)
           at com.sun.faces.context.SessionMap.get(ExternalContextImpl.java:962)
           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:1949)
           at org.jboss.seam.Component.getInstance(Component.java:1944)
           at org.jboss.seam.Component.getInstance(Component.java:1924)
           at org.jboss.seam.Component.getInstance(Component.java:1919)
           at org.jboss.seam.security.Identity.create(Identity.java:101)



      finally it all falls down with:
      java.lang.StackOverflowError
           at org.apache.log4j.helpers.ISO8601DateFormat.format(ISO8601DateFormat.java:66)
           at java.text.DateFormat.format(DateFormat.java:314)
           at org.apache.log4j.helpers.PatternParser$DatePatternConverter.convert(PatternParser.java:444)
           at org.apache.log4j.helpers.PatternConverter.format(PatternConverter.java:64)
           at org.apache.log4j.PatternLayout.format(PatternLayout.java:503)
           at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:301)
           at org.apache.log4j.RollingFileAppender.subAppend(RollingFileAppender.java:234)
           at org.apache.log4j.WriterAppender.append(WriterAppender.java:159)
           at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)
           at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:65)
           at org.apache.log4j.Category.callAppenders(Category.java:203)
           at org.apache.log4j.Category.forcedLog(Category.java:388)
           at org.apache.log4j.Category.log(Category.java:853)
           at org.jboss.seam.log.Log4JProvider.debug(Log4JProvider.java:42)
           at org.jboss.seam.contexts.Lifecycle.beginSession(Lifecycle.java:180)
           at org.jboss.seam.contexts.ServletLifecycle.beginSession(ServletLifecycle.java:141)
           at org.jboss.seam.servlet.SeamListener.sessionCreated(SeamListener.java:45)
           at weblogic.servlet.internal.EventsManager.notifySessionLifetimeEvent(EventsManager.java:257)
           at weblogic.servlet.internal.session.MemorySessionData.<init>(MemorySessionData.java:10)
           at weblogic.servlet.internal.session.MemorySessionContext.getNewSession(MemorySessionContext.java:28)
           at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.getNewSession(ServletRequestImpl.java:2530)
           at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.getSessionInternal(ServletRequestImpl.java:2115)
           at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.getSession(ServletRequestImpl.java:2079)
           at weblogic.servlet.internal.ServletRequestImpl.getSession(ServletRequestImpl.java:1211)
           at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:227)
           at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:227)
           at com.sun.faces.context.SessionMap.getSession(ExternalContextImpl.java:1002)
           at com.sun.faces.context.SessionMap.get(ExternalContextImpl.java:962)
           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:1949)
           at org.jboss.seam.Component.getInstance(Component.java:1944)
           at org.jboss.seam.Component.getInstance(Component.java:1924)
           at org.jboss.seam.Component.getInstance(Component.java:1919)
           at org.jboss.seam.security.Identity.create(Identity.java:101)
           at sun.reflect.GeneratedMethodAccessor745.invoke(Unknown Source)
           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:22)
           at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
           at org.jboss.seam.Component.callComponentMethod(Component.java:2211)
           at org.jboss.seam.Component.callCreateMethod(Component.java:2134)
           at org.jboss.seam.Component.newInstance(Component.java:2094)
           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:209)
           at org.jboss.seam.contexts.ServletLifecycle.beginSession(ServletLifecycle.java:141)
           at org.jboss.seam.servlet.SeamListener.sessionCreated(SeamListener.java:45)
           at weblogic.servlet.internal.EventsManager.notifySessionLifetimeEvent(EventsManager.java:257)
           at weblogic.servlet.internal.session.MemorySessionData.<init>(MemorySessionData.java:10)
           at weblogic.servlet.internal.session.MemorySessionContext.getNewSession(MemorySessionContext.java:28)
           at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.getNewSession(ServletRequestImpl.java:2530)
           at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.getSessionInternal(ServletRequestImpl.java:2115)
           at weblogic.servlet.internal.ServletRequestImpl$SessionHelper.getSession(ServletRequestImpl.java:2079)
           at weblogic.servlet.internal.ServletRequestImpl.getSession(ServletRequestImpl.java:1211)
           at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:227)
           at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:227)
           at com.sun.faces.context.SessionMap.getSession(ExternalContextImpl.java:1002)
           at com.sun.faces.context.SessionMap.get(ExternalContextImpl.java:962)
           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:1949)
           at org.jboss.seam.Component.getInstance(Component.java:1944)
           at org.jboss.seam.Component.getInstance(Component.java:1924)
           at org.jboss.seam.Component.getInstance(Component.java:1919)





        • 1. Re: Failure instantiating Seam component
          Norman Richards Expert

          Strange.  To me this looks like a weblogic bug.  If I'm reading the stack trace correctly, when it creates the new session and sends the session creation events, Seam tries to populate the session, which in turn causes weblogic to create a new session.


          I'm not sure offhand which version of weblogic 10 we test against, but I'm quite sure that we haven't run into this issue.  Does the app work fine without your custom identity component?  Does it fail with any other application-specific @Startup components?