10 Replies Latest reply on Jan 22, 2012 5:41 PM by typek_pb

    richfaces 4.1 a4j:push usage problem

    typek_pb

      Hi all,

       

      while trying to use the JMS-free push in richfaces 4.1 I get the following warning:

       

      2012-01-03 13:06:45.734:WARN:oejs.ServletHandler:/yourpresenter/rfRes/org.richfaces.resource.PushResource.jsf

      java.lang.IllegalArgumentException

          at org.richfaces.resource.PushResource.encode(PushResource.java:85)

          at org.richfaces.resource.UserResourceWrapperImpl.encode(UserResourceWrapperImpl.java:188)

          at org.richfaces.resource.ResourceHandlerImpl.handleResourceRequest(ResourceHandlerImpl.java:222)

          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:407)

          at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:547)

          at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1355)

          at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)

          at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

          at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326)

          at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:479)

          at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)

          at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)

          at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)

          at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:940)

          at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)

          at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)

          at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:874)

          at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)

          at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)

          at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)

          at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)

          at org.eclipse.jetty.server.Server.handle(Server.java:349)

          at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)

          at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:904)

          at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:565)

          at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:217)

          at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:46)

          at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:545)

          at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:43)

          at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)

          at java.lang.Thread.run(Thread.java:619)

       

       

      my relevant jsf page chunk looks like this:

      ...

      <h:form>

           <a4j:push id="statePush" address="statePushTopic" ondataavailable="alert('pushed');" />

      </h:form>

      ...

       

      Moreover I've noticed that no popup window is beeing open.

      Any idea how to fix this?

      thanks