]
mel turphin updated RF-13726:
-----------------------------
looks related to [richfaces-issues] [JBoss JIRA] (RF-13685)
partialViewContext.release triggering assertNotReleased
-------------------------------------------------------
Key: RF-13726
URL:
https://issues.jboss.org/browse/RF-13726
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: core
Affects Versions: 4.3.7
Environment: JSF 2.2 Mojarra + Richfaces 4.3
Eclipse + Tomcat
Reporter: mel turphin
Priority: Critical
when the release method is called on
com.sun.faces.context.FacesContextImpl
the first thing that is done is to mark relased=true
released = true;
later on partialViewContext.release can be called
partialViewContext.release();
this is following some set of calls that ends with getAttributes and assertNotReleased
raising an exception since the context was already marked as released
ExtendedPartialViewContextImpl
org.richfaces.context.ExtendedPartialViewContext.release()
setInstance(facesContext, null);
facesContext.getAttributes().put(ATTRIBUTE_NAME, instance);
getAttributes --> assertNotReleased();
stack trace:
SEVERE: Servlet.service() for servlet [Faces Servlet] in context with path [/rf43] threw
exception
java.lang.IllegalStateException
at com.sun.faces.context.FacesContextImpl.assertNotReleased(FacesContextImpl.java:705)
at com.sun.faces.context.FacesContextImpl.getAttributes(FacesContextImpl.java:237)
at
org.richfaces.context.ExtendedPartialViewContext.setInstance(ExtendedPartialViewContext.java:55)
at
org.richfaces.context.ExtendedPartialViewContext.release(ExtendedPartialViewContext.java:64)
at
org.richfaces.context.ExtendedPartialViewContextImpl.release(ExtendedPartialViewContextImpl.java:424)
at com.sun.faces.context.FacesContextImpl.release(FacesContextImpl.java:591)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:665)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:744)