Push in Richfaces 4.2 final with Firefox
jason.klassen Feb 29, 2012 6:01 PMI'm using JSF 2.0 with a4jPush from Richfaces 4.2 final and firefox and coming accross a bunch of these errors. Predictably the page is not updating with the push event. The code works fine in Chrome and IE9 which leads me to believe it's an atmosphere/firefox issue.
2012-02-29 16:48:51.462:WARN::EXCEPTION
java.lang.IllegalStateException: Request object no longer valid. This object has been cancelled
at org.atmosphere.cpr.AtmosphereResourceImpl.getRequest(AtmosphereResourceImpl.java:384)
at org.atmosphere.cpr.AtmosphereResourceImpl.getRequest(AtmosphereResourceImpl.java:403)
at org.atmosphere.container.Jetty7CometSupport.action(Jetty7CometSupport.java:178)
at org.atmosphere.container.Jetty7CometSupport.action(Jetty7CometSupport.java:65)
at org.atmosphere.cpr.AtmosphereResourceImpl.cancel(AtmosphereResourceImpl.java:673)
at org.atmosphere.container.Jetty7CometSupport$1.onComplete(Jetty7CometSupport.java:103)
at org.eclipse.jetty.server.AsyncContinuation.doComplete(AsyncContinuation.java:610)
at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:649)
at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:393)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:535)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:529)
at java.lang.Thread.run(Thread.java:662)
I'm setup with maven running jetty 8.0.0M3 RichFaces 4.2 with the following and can see that it downloads atmosphere 0.8.4
<properties>
<org.richfaces.bom.version>4.2.0.Final</org.richfaces.bom.version>
</properties>
...
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>8.0.0.M3</version>
</plugin>
...
<dependencyManagement>
<dependency>
<groupId>org.richfaces</groupId>
<artifactId>richfaces-bom</artifactId>
<version>${org.richfaces.bom.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencyManagement>
...
<dependencies>
<dependency>
<groupId>org.richfaces.ui</groupId>
<artifactId>richfaces-components-ui</artifactId>
<exclusions>
<exclusion>
<artifactId>jsf-api</artifactId>
<groupId>com.sun.faces</groupId>
</exclusion>
<exclusion>
<artifactId>jsf-impl</artifactId>
<groupId>com.sun.faces</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.richfaces.core</groupId>
<artifactId>richfaces-core-impl</artifactId>
</dependency>
<dependency>
<groupId>org.atmosphere</groupId>
<artifactId>atmosphere-runtime</artifactId>
</dependency>
</dependencies>
In web.xml i have
<context-param>
<param-name>org.richfaces.push.jms.disable</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>org.richfaces.push.initializeOnStartup</param-name>
<param-value>true</param-value>
</context-param>
Any Ideas?