0 Replies Latest reply on Jul 23, 2008 12:58 PM by Chris Lowe

    Intermittent NullPointerException from AjaxContextImpl

    Chris Lowe Apprentice

      Hello all,

      I'm getting the following intermittent stack trace in my logs (along with a corresponding failed request to a servlet):

      java.lang.NullPointerException
       at org.apache.catalina.connector.Request.parseParameters(Request.java:2426)
       at org.apache.catalina.connector.Request.getParameter(Request.java:1040)
       at org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:355)
       at com.sun.faces.context.RequestParameterMap.get(ExternalContextImpl.java:1135)
       at com.sun.faces.context.RequestParameterMap.get(ExternalContextImpl.java:1120)
       at java.util.Collections$UnmodifiableMap.get(Collections.java:1282)
       at org.ajax4jsf.context.AjaxContextImpl.decode(AjaxContextImpl.java:163)
       at org.ajax4jsf.context.AjaxContext.getCurrentInstance(AjaxContext.java:177)
       at org.ajax4jsf.context.AjaxContext.getCurrentInstance(AjaxContext.java:111)
       at org.ajax4jsf.component.AjaxViewRoot.getViewId(AjaxViewRoot.java:576)
       at org.jboss.seam.navigation.Pages.getViewId(Pages.java:1484)
       at org.jboss.seam.navigation.Pages.getCurrentViewId(Pages.java:1476)
       at org.jboss.seam.core.ConversationPropagation.restoreNaturalConversationId(ConversationPropagation.java:105)
       at org.jboss.seam.core.ConversationPropagation.restoreConversationId(ConversationPropagation.java:56)
       at org.jboss.seam.servlet.ContextualHttpServletRequest.restoreConversationId(ContextualHttpServletRequest.java:89)
       at org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:40)
       at org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:37)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:154)
       at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:260)
       at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:366)
       at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:493)
       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.web.LoggingFilter.doFilter(LoggingFilter.java:58)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
       at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
       at java.lang.Thread.run(Thread.java:619)


      Any ideas on what might be wrong? I've spent several hours looking at this and I've not been able to solve it.

      We're using RichFaces 3.2.1.GA, JBoss 4.2.2.GA, JDK 6 (u10, b27), Seam 2.0.2.SP1. Also tried with JBoss 4.2.3.GA-jdk6, but no joy.

      Best regards,

      Chris.