Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-2357

The equals() method of JCA connection handle always return false.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.12, 2.1.6, 2.2.3
    • Integration
    • None
    • Websphere 6.1.0.23.

    Description

      The symptom of this problem is that JCA outbound requests fail on every other call when the JCA connection is invoked inside an EJB running in WebSphere 6.1.0.23. But, invoking JCA connection inside a serlvet is not a problem. The error reported by WebSphere is as follow.

      [7/16/09 18:01:26:852 EDT] 00000024 MCWrapper E J2CA0079E: Method getNoTransactionWrapper has detected an internal illegal state and is throwing an IllegalStateException. The exception is: java.lang.IllegalStateException: getNoTransactionWrapper: illegal state exception. State = STATE_ACTIVE_FREE
      at com.ibm.ejs.j2c.MCWrapper.getNoTransactionWrapper(MCWrapper.java:1060)
      at com.ibm.ejs.j2c.ConnectionManager.initializeForUOW(ConnectionManager.java:1146)
      at com.ibm.ejs.j2c.ConnectionManager.reAssociate(ConnectionManager.java:1421)
      at com.ibm.ejs.j2c.HandleList.reAssociate(HandleList.java:361)
      at com.ibm.ejs.j2c.HandleCollaborator.preInvoke(HandleCollaborator.java:76)
      at com.ibm.ejs.container.StatelessBeanO.preInvoke(StatelessBeanO.java:382)
      at com.ibm.ejs.container.EJSContainer.preInvokeActivate(EJSContainer.java:3465)
      at com.ibm.ejs.container.EJSContainer.preInvoke(EJSContainer.java:2839)
      at demo.ejb.EJSRemoteStatelessTestEJB_b3bd2fe8.getResponseFromWebService(Unknown Source)
      at demo.ejb._TestEJB_Stub.getResponseFromWebService(_TestEJB_Stub.java:307)
      at demo.servlet.HelloWorldServlet.callEJB(HelloWorldServlet.java:82)
      at demo.servlet.HelloWorldServlet.writeMainBody(HelloWorldServlet.java:95)
      at demo.servlet.DemoServletBase.writeBody(Unknown Source)
      at demo.servlet.DemoServletBase.doGet(Unknown Source)
      at demo.servlet.HelloWorldServlet.doGet(HelloWorldServlet.java:52)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
      at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
      at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:92)
      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
      at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1425)
      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:92)
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:274)
      at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
      at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
      at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:556)
      at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:606)
      at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:979)
      at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1064)
      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1498)

      [7/16/09 18:01:26:953 EDT] 00000024 HandleList W PARK_OR_REASSOCIATE_FAILED_W_J2CA0083
      [7/16/09 18:01:27:005 EDT] 00000024 ExceptionUtil E CNTR0020E: EJB threw an unexpected (non-declared) exception during invocation of method "getResponseFromWebService" on bean "BeanId(HelloWorldEAR#helloworld-ejb.jar#TestEJB, null)". Exception data: java.rmi.RemoteException: ; nested exception is:
      javax.resource.ResourceException: Reassociate call Failed
      at com.ibm.ejs.container.StatelessBeanO.preInvoke(StatelessBeanO.java:385)
      at com.ibm.ejs.container.EJSContainer.preInvokeActivate(EJSContainer.java:3465)
      at com.ibm.ejs.container.EJSContainer.preInvoke(EJSContainer.java:2839)
      at demo.ejb.EJSRemoteStatelessTestEJB_b3bd2fe8.getResponseFromWebService(Unknown Source)
      at demo.ejb._TestEJB_Stub.getResponseFromWebService(_TestEJB_Stub.java:307)
      at demo.servlet.HelloWorldServlet.callEJB(HelloWorldServlet.java:82)
      at demo.servlet.HelloWorldServlet.writeMainBody(HelloWorldServlet.java:95)
      at demo.servlet.DemoServletBase.writeBody(Unknown Source)
      at demo.servlet.DemoServletBase.doGet(Unknown Source)
      at demo.servlet.HelloWorldServlet.doGet(HelloWorldServlet.java:52)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
      at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
      at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:92)
      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
      at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1425)
      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:92)
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:274)
      at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
      at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
      at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:556)
      at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:606)
      at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:979)
      at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1064)
      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1498)
      Caused by: javax.resource.ResourceException: Reassociate call Failed
      at com.ibm.ejs.j2c.HandleList.reAssociate(HandleList.java:395)
      at com.ibm.ejs.j2c.HandleCollaborator.preInvoke(HandleCollaborator.java:76)
      at com.ibm.ejs.container.StatelessBeanO.preInvoke(StatelessBeanO.java:382)
      ... 28 more

      Attachments

        1. CXF-2357.patch
          5 kB
          William Tam

        Activity

          People

            Unassigned Unassigned
            wtam William Tam
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: