3 Replies Latest reply on May 14, 2010 10:29 PM by Nicklas Karlsson

    How to handle ConversationManager in weld-core-1.0.2-SNAPSHOT?

    he youlin Novice

      How to handle ConversationManager in weld-core-1.0.2-SNAPSHOT?


      Is it like seam-remoting modelHandler?


      use @Inject ConversationManager2 conversationManager?

        • 1. Re: How to handle ConversationManager in weld-core-1.0.2-SNAPSHOT?
          Nicklas Karlsson Master

          Yep. At some point it will be renamed to ConversationManager but the name was taken by the wrapper that maintain backwards compatibility...

          • 2. Re: How to handle ConversationManager in weld-core-1.0.2-SNAPSHOT?
            he youlin Novice
            
            When use AsyncContext throw
            
            java.lang.NullPointerException
                 at org.jboss.weld.servlet.ServletLifecycle.getServletContext(ServletLifecycle.java:205)
                 at org.jboss.weld.servlet.ServletLifecycle.teardownConversation(ServletLifecycle.java:199)
                 at org.jboss.weld.servlet.ServletLifecycle.endRequest(ServletLifecycle.java:181)
                 at org.jboss.weld.servlet.WeldListener.requestDestroyed(WeldListener.java:159)
                 at org.jboss.weld.servlet.api.helpers.ForwardingServletListener.requestDestroyed(ForwardingServletListener.java:42)
                 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:216)
                 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:138)
                 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:108)
                 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
                 at org.apache.catalina.connector.CoyoteAdapter.asyncDispatch(CoyoteAdapter.java:311)
                 at org.apache.coyote.http11.Http11NioProcessor.asyncDispatch(Http11NioProcessor.java:262)
                 at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.event(Http11NioProtocol.java:301)
                 at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1543)
                 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
                 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
                 at java.lang.Thread.run(Thread.java:619)
            
            I test in tomcat 7
            
            


            • 3. Re: How to handle ConversationManager in weld-core-1.0.2-SNAPSHOT?
              Nicklas Karlsson Master

              Could you file a JIRA with some code to reproduce? I haven't tried it with asynchronous requests...