4 Replies Latest reply on Jul 11, 2012 8:47 PM by Bryan Pugh

    ICEpush 3.0.1 causes no response in JBoss 7.1.1

    Bryan Pugh Newbie

      I posted this on the Icesoft forum, and got no response.  I am hoping someone here can help.

       

      I have a relatively complex EAR deployment, and one of the modules is a web app. It works great with ICEfaces 3.0.1. I have the interface working fine. However, if I add the icepush.jar and the web.xml entries the web app fails to respond to the browser request. The browser just 'spins' and never gets a response.


      Is there some configuration that I can post to get some help with this, or is there some logging I could turn on to see what is happening?


      Thanks.


      <servlet>

      <servlet-name>icepush</servlet-name>

      <servlet-class>org.icepush.servlet.ICEpushServlet</servlet-class>

      <load-on-startup>1</load-on-startup>

      </servlet>

      <servlet-mapping>

      <servlet-name>icepush</servlet-name>

      <url-pattern>*.icepush</url-pattern>

      </servlet-mapping>


      Environment:

      Java 1.6.0_26

      JBoss 7.1.1 (standalone)

      ICEfaces 3.0.1 (Build number: 7, Revision: 28541)

      ICEpush 3.0.1 (Build number: 2, Revision: 28519)

        • 1. Re: ICEpush 3.0.1 causes no response in JBoss 7.1.1
          jaikiran pai Master

          Bryan Pugh wrote:

           


          is there some logging I could turn on to see what is happening?

          Generate some thread dumps on the server as explained here http://community.jboss.org/wiki/ThreadDump and see what's going on.

          • 2. Re: ICEpush 3.0.1 causes no response in JBoss 7.1.1
            Bryan Pugh Newbie

            I did a little more testing.  I created a web filter and put logging statements right before and after its chain.doFilter(request, response);  The chain is executed, but never returns.

             

            I generated some dumps and the problem seems to be in threads 1 and 2, but I don't know what they mean other than the threads get parked without rendering the page.

             

            "http-localhost-127.0.0.1-8080-2" daemon prio=10 tid=0x00007f9e50001000 nid=0x63ce waiting on condition [0x00007f9e3ad99000]

               java.lang.Thread.State: WAITING (parking)

                      at sun.misc.Unsafe.park(Native Method)

                      - parking to wait for  <0x00000000fe1973e0> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)

                      at java.util.concurrent.locks.LockSupport.park(LockSupport.java:156)

                      at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitUninterruptibly(AbstractQueuedSynchronizer.java:1923)

                      at org.icefaces.impl.push.servlet.ICEpushResourceHandler$BlockingICEpushResourceHandlerWrapper.isResourceRequest(ICEpushResourceHandler.java:402)

                      at org.icefaces.impl.push.servlet.ICEpushResourceHandler.isResourceRequest(ICEpushResourceHandler.java:131)

                      at org.icefaces.impl.push.DynamicResourceDispatcher.isResourceRequest(DynamicResourceDispatcher.java:68)

                      at javax.faces.application.ResourceHandlerWrapper.isResourceRequest(ResourceHandlerWrapper.java:137)

                      at org.icefaces.impl.application.WindowScopeManager.isSessionAwareResourceRequest(WindowScopeManager.java:80)

                      at org.icefaces.impl.application.SessionAwareResourceHandlerWrapper.isResourceRequest(SessionAwareResourceHandlerWrapper.java:32)

                      at org.icefaces.impl.application.SessionTimeoutMonitor.isSessionAwareResourceRequest(SessionTimeoutMonitor.java:42)

                      at org.icefaces.impl.application.SessionAwareResourceHandlerWrapper.isResourceRequest(SessionAwareResourceHandlerWrapper.java:32)

                      at org.icefaces.ace.component.fileentry.FileEntryResourceHandler.isResourceRequest(FileEntryResourceHandler.java:70)

                      at javax.faces.application.ResourceHandlerWrapper.isResourceRequest(ResourceHandlerWrapper.java:137)

                      at javax.faces.application.ResourceHandlerWrapper.isResourceRequest(ResourceHandlerWrapper.java:137)

                      at org.icefaces.impl.util.CharacterEncodingHandler.isResourceRequest(CharacterEncodingHandler.java:73)

                      at javax.faces.application.ResourceHandlerWrapper.isResourceRequest(ResourceHandlerWrapper.java:137)

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

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

                      at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

                      at com.ucentive.tbm.web.filter.TBMFilter.doFilter(TBMFilter.java:134)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

                      at com.ucentive.tbm.web.filter.TBMFilter.doFilter(TBMFilter.java:134)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

                      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

                      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

                      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:489)

                      at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)

                      at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)

                      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)

                      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

                      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

                      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)

                      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

                      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)

                      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)

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

             

             

            "http-localhost-127.0.0.1-8080-1" daemon prio=10 tid=0x00007f9e5000a000 nid=0x63c3 waiting on condition [0x00007f9e3aebf000]

               java.lang.Thread.State: WAITING (parking)

                      at sun.misc.Unsafe.park(Native Method)

                      - parking to wait for  <0x00000000fe1973e0> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)

                      at java.util.concurrent.locks.LockSupport.park(LockSupport.java:156)

                      at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitUninterruptibly(AbstractQueuedSynchronizer.java:1923)

                      at org.icefaces.impl.push.servlet.ICEpushResourceHandler$BlockingICEpushResourceHandlerWrapper.isResourceRequest(ICEpushResourceHandler.java:402)

                      at org.icefaces.impl.push.servlet.ICEpushResourceHandler.isResourceRequest(ICEpushResourceHandler.java:131)

                      at org.icefaces.impl.push.DynamicResourceDispatcher.isResourceRequest(DynamicResourceDispatcher.java:68)

                      at javax.faces.application.ResourceHandlerWrapper.isResourceRequest(ResourceHandlerWrapper.java:137)

                      at org.icefaces.impl.application.WindowScopeManager.isSessionAwareResourceRequest(WindowScopeManager.java:80)

                      at org.icefaces.impl.application.SessionAwareResourceHandlerWrapper.isResourceRequest(SessionAwareResourceHandlerWrapper.java:32)

                      at org.icefaces.impl.application.SessionTimeoutMonitor.isSessionAwareResourceRequest(SessionTimeoutMonitor.java:42)

                      at org.icefaces.impl.application.SessionAwareResourceHandlerWrapper.isResourceRequest(SessionAwareResourceHandlerWrapper.java:32)

                      at org.icefaces.ace.component.fileentry.FileEntryResourceHandler.isResourceRequest(FileEntryResourceHandler.java:70)

                      at javax.faces.application.ResourceHandlerWrapper.isResourceRequest(ResourceHandlerWrapper.java:137)

                      at javax.faces.application.ResourceHandlerWrapper.isResourceRequest(ResourceHandlerWrapper.java:137)

                      at org.icefaces.impl.util.CharacterEncodingHandler.isResourceRequest(CharacterEncodingHandler.java:73)

                      at javax.faces.application.ResourceHandlerWrapper.isResourceRequest(ResourceHandlerWrapper.java:137)

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

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

                      at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

                      at com.ucentive.tbm.web.filter.TBMFilter.doFilter(TBMFilter.java:134)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

                      at com.ucentive.tbm.web.filter.TBMFilter.doFilter(TBMFilter.java:134)

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

                      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

                      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

                      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:489)

                      at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)

                      at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)

                      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)

                      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

                      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

                      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)

                      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

                      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)

                      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)

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

             

            Thanks for any help.

            • 3. Re: ICEpush 3.0.1 causes no response in JBoss 7.1.1
              Bryan Pugh Newbie

              With some further testing I learned that if my root-logger's level is INFO it works fine. But if I turn that down to FINE or lower it hangs when a page is rendered.


              I am not certain if it is related to JBoss or ICEpush, but any insight would be appreciated.


              Thanks.

              • 4. Re: ICEpush 3.0.1 causes no response in JBoss 7.1.1
                Bryan Pugh Newbie

                zageyiff has found the actual problem, and like me just used the work around of keeping the log level at INFO or higher.

                 

                http://jforum.icesoft.org/JForum/posts/list/20819.page#73402