"IllegalArgumentException: JBAS018062: Specified attribute cannot be replicated" when using RichFaces push in distributable application
Issue
After making our application distributable across the cluster we are seeing errors dealing with the richfaces push servlet. We create our push topics in a session scoped backing bean (UserBean).
The application works as expected as long as our .war is not marked as distributable. The push functionality seems to work fine despite the errors.
Servlet.service() for servlet Push Servlet threw exception: java.lang.IllegalArgumentException: JBAS018062: Specified attribute cannot be replicated
at org.jboss.as.web.session.ClusteredSession.setAttribute(ClusteredSession.java:814) [jboss-as-web-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
at org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:130) [jbossweb-7.0.17.Final-redhat-1.jar:]
at org.atmosphere.container.Servlet30CometSupport.suspend(Servlet30CometSupport.java:141) [atmosphere-runtime-0.8.4.jar:0.8.4]
at org.atmosphere.container.Servlet30CometSupport.service(Servlet30CometSupport.java:90) [atmosphere-runtime-0.8.4.jar:0.8.4]
at org.atmosphere.cpr.AtmosphereServlet.doCometSupport(AtmosphereServlet.java:1217) [atmosphere-runtime-0.8.4.jar:0.8.4]
at org.atmosphere.cpr.AtmosphereServlet.doPost(AtmosphereServlet.java:1176) [atmosphere-runtime-0.8.4.jar:0.8.4]
...
Environment
- RichFaces 4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.