myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alin Dosoniu" <adoso...@hotmail.com>
Subject Re: NullpointerException in JspStateManager
Date Tue, 02 May 2006 09:41:33 GMT

Hi,

I get the same exception. I didn't know there is a jira issue on this. I 
reported the problem in an email with subject "NullPointerException when 
save serialize view" on 4/26/2006, but got no answer :(.
In order to use myfaces I added a test for null in 
SerializedViewCollection.add method.
But I don't know why this problem appears.

Hope someone can help us.
Thanks,
Alin.

> Hi,
>
> I'm having trouble using the 1.1.2 release and latest nightly build. If I 
> do some massive clicking with the sample application, I get after 30-50 
> clicks an NPE within the JspStateManager. In my own app. I get this error 
> after 10 page request.
>
> This problem only occurs, if I use server state saving. I figured out, 
> that if I increase the org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION 
> parameter to a large (500) value, the error does not occur or does not 
> occur yet :-)
>
> I can reproduce this error every time. There is an issue on jira 
> (http://issues.apache.org/jira/browse/MYFACES-1278), which explains 
> exactly my problem. But this issue was closed for a reason I can't 
> understand.
>
> Any comment and help, would be very appreciated.
>
> regards,
> Stephan
>
>
> java.lang.NullPointerException: null values not allowed
>    at 
> org.apache.commons.collections.map.AbstractReferenceMap.put(AbstractReferenceMap.java:251)
>    at 
> org.apache.myfaces.application.jsp.JspStateManagerImpl$SerializedViewCollection.add(JspStateManagerImpl.java:717)
>    at 
> org.apache.myfaces.application.jsp.JspStateManagerImpl.saveSerializedViewInServletSession(JspStateManagerImpl.java:493)
>    at 
> org.apache.myfaces.application.jsp.JspStateManagerImpl.saveSerializedView(JspStateManagerImpl.java:332)
>    at org.apache.myfaces.taglib.core.ViewTag.doAfterBody(ViewTag.java:122)
>    at org.apache.jsp.home_jsp._jspx_meth_f_view_0(home_jsp.java:153)
>    at org.apache.jsp.home_jsp._jspService(home_jsp.java:102)
>    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
>    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>    at 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
>    at 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
>    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
>    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>    at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
>    at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>    at 
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
>    at 
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474)
>    at 
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409)
>    at 
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
>    at 
> org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:416)
>    at 
> org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
>    at 
> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:367)
>    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
>    at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
>    at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>    at 
> org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
>    at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
>    at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>    at 
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
>    at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
>    at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>    at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
>    at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>    at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>    at 
> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
>    at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
>    at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>    at 
> org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
>    at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>    at 
> org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
>    at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>    at 
> org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:54)
>    at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>    at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>    at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
>    at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>    at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
>    at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>    at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>    at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>    at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>    at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>    at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>    at 
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>    at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
>    at 
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
>    at 
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
>    at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
>    at java.lang.Thread.run(Thread.java:534)
>
> 

Mime
View raw message