0 Replies Latest reply on Aug 17, 2011 4:23 PM by Bob Hill

    Endless loop getting an instance in Websphere

    Bob Hill Newbie

      We are running a Seam application on a Websphere cluster and experiencing some strange behavior.
      The application is running on version 7.0.0.15 of Websphere in a clustered environment, and our application is using the Seam 2.2.1.Final jars.
      It appears we are experiencing an endless loop as Seam attempts to locate an object, until a Stack Overflow occurs. The application continues to run, but with intermittent http 500 errors being sent to the browser. None of the errors are referencing our code, though it does not mean we do not have a navigation rule or something causing the problem – it just does not appear to involve any of our Java code. We run the same exact codebase in Dev and Test with no similar problems. The only difference between our production and test environments is the production environment is clustered.


      Below is a stack trace, The first 9 lines are repeated thousands of times before the Stack Overflow occurs. We are filling up 1M log files at a rate of 1 every six minutes. If anybody has any ideas of what might be causing this I would appreciate any theories. If this continues, we will be disallowed to run Seam apps on our production cluster. Please help :).


           at org.jboss.seam.contexts.BasicContext.set(BasicContext.java:85)
           at org.jboss.seam.Component.newInstance(Component.java:2126)
           at org.jboss.seam.Component.getInstance(Component.java:2021)
           at org.jboss.seam.Component.getInstance(Component.java:2000)
           at org.jboss.seam.Component.getInstance(Component.java:1994)
           at org.jboss.seam.Component.getInstance(Component.java:1967)
           at org.jboss.seam.Component.getInstance(Component.java:1962)
           at org.jboss.seam.core.Events.instance(Events.java:157)
           at org.jboss.seam.core.Events.exists(Events.java:152)
           at org.jboss.seam.contexts.BasicContext.set(BasicContext.java:85)
           at org.jboss.seam.Component.newInstance(Component.java:2126)
           at org.jboss.seam.Component.getInstance(Component.java:2021)
           at org.jboss.seam.Component.getInstance(Component.java:2000)
           at org.jboss.seam.Component.getInstance(Component.java:1994)
           at org.jboss.seam.Component.getInstance(Component.java:1967)
           at org.jboss.seam.Component.getInstance(Component.java:1962)
           at org.jboss.seam.core.Events.instance(Events.java:157)
           at org.jboss.seam.core.Events.exists(Events.java:152)
           at org.jboss.seam.contexts.BasicContext.set(BasicContext.java:80)
           at org.jboss.seam.Component.newInstance(Component.java:2126)
           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:233)
           at org.jboss.seam.contexts.ServletLifecycle.beginSession(ServletLifecycle.java:155)
           at org.jboss.seam.servlet.SeamListener.sessionCreated(SeamListener.java:46)
           at com.ibm.ws.session.http.HttpSessionObserver.sessionCreated(HttpSessionObserver.java:111)
           at com.ibm.ws.session.SessionEventDispatcher.sessionCreated(SessionEventDispatcher.java:98)
           at com.ibm.ws.session.SessionManager.createISession(SessionManager.java:268)
           at com.ibm.ws.session.SessionManager.createSession(SessionManager.java:635)
           at com.ibm.ws.session.SessionContext.getIHttpSession(SessionContext.java:473)
           at com.ibm.ws.session.SessionContext.getIHttpSession(SessionContext.java:408)
           at com.ibm.ws.webcontainer.srt.SRTRequestContext.getSession(SRTRequestContext.java:89)
           at com.ibm.ws.webcontainer.srt.SRTServletRequest.getSession(SRTServletRequest.java:1772)
           at com.ibm.ws.webcontainer.srt.SRTServletRequest.getSession(SRTServletRequest.java:1759)
           at org.jboss.seam.web.IdentityRequestWrapper.<init>(IdentityRequestWrapper.java:22)
           at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
           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.LoggingFilter.doFilter(LoggingFilter.java:60)
           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:178)
           at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
           at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
           at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
           at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
           at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
           at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
           at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)
           at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:908)
           at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:934)
           at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502)
           at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:179)
           at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:91)
           at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:864)
           at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583)
           at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186)
           at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:445)
           at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:504)
           at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:301)
           at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:262)
           at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
           at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
           at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
           at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
           at com.ibm.io.async.AsyncChannelFuture$1.run(AsyncChannelFuture.java:205)
           at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1604)