4 Replies Latest reply on Jul 8, 2011 1:22 AM by Karthik N

    exception thrown in JBoss AS 6.0.0 final server while loading HornetQ connection factory "JmsXA"

    Karthik N Newbie

      I manually upgraded JBoss AS 6.0.0 to use Hornetq 2.2.2 by replacing the hornetq jar files in common/lib.

      I am able to connect to hornetq and post messages by using the /ConnectionFactory

      But, when I try to use /jmsXA connection factory, i get the following exception:

      I think I have to update some other jar files because it looks like JBoss is still using the old hornetq APIs to create connection factory.

       

      17:23:52,404 WARN  [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Throwable while attempting to get a new connection: null: javax.resource.ResourceException: Error during setup

          at org.hornetq.ra.HornetQRAManagedConnection.<init>(HornetQRAManagedConnection.java:151) [:6.0.0.Final]

          at org.hornetq.ra.HornetQRAManagedConnectionFactory.createManagedConnection(HornetQRAManagedConnectionFactory.java:161) [:6.0.0.Final]

          at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:648) [:6.0.0.Final]

          at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:272) [:6.0.0.Final]

          at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:690) [:6.0.0.Final]

          at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:403) [:6.0.0.Final]

          at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:414) [:6.0.0.Final]

          at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:496) [:6.0.0.Final]

          at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:941) [:6.0.0.Final]

          at org.hornetq.ra.HornetQRASessionFactoryImpl.allocateConnection(HornetQRASessionFactoryImpl.java:837) [:6.0.0.Final]

          at org.hornetq.ra.HornetQRASessionFactoryImpl.createSession(HornetQRASessionFactoryImpl.java:470) [:6.0.0.Final]

          at org.springframework.jms.support.JmsAccessor.createSession(JmsAccessor.java:196) [:3.0.5.RELEASE]

          at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:457) [:3.0.5.RELEASE]

          at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:534) [:3.0.5.RELEASE]

          at com.corelogic.platform.services.corelems.client.LEMSQueuePopulator.sendMessagetoQ(LEMSQueuePopulator.java:102) [:]

          at com.corelogic.platform.services.corelems.client.LEMSClient.sendErrorMessage(LEMSClient.java:129) [:]

          at com.corelogic.platformconvergence.common.logging.ServiceLogger.sendErrorMessage(ServiceLogger.java:143) [:]

          at com.corelogic.platform.services.corelems.TestServlet.doPost(TestServlet.java:78) [:]

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [:1.0.0.Final]

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.Final]

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:6.0.0.Final]

          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:6.0.0.Final]

          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0.Final]

          at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final]

          at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final]

          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0.Final]

          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0.Final]

          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:6.0.0.Final]

          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.0.0.Final]

          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0.Final]

          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.0.0.Final]

          at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0.Final]

          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.0.0.Final]

          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.0.0.Final]

          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [:6.0.0.Final]

          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.0.0.Final]

          at java.lang.Thread.run(Thread.java:662) [:1.6.0_25]

      Caused by: java.lang.NoSuchMethodError: org.hornetq.api.jms.HornetQJMSClient.createConnectionFactory(Lorg/hornetq/api/core/TransportConfiguration;Lorg/hornetq/api/core/TransportConfiguration;)Lorg/hornetq/jms/client/HornetQConnectionFactory;

          at org.hornetq.ra.HornetQResourceAdapter.createHornetQConnectionFactory(HornetQResourceAdapter.java:1392) [:6.0.0.Final]

          at org.hornetq.ra.HornetQRAManagedConnectionFactory.getHornetQConnectionFactory(HornetQRAManagedConnectionFactory.java:768) [:6.0.0.Final]

          at org.hornetq.ra.HornetQRAManagedConnection.setup(HornetQRAManagedConnection.java:802) [:6.0.0.Final]

          at org.hornetq.ra.HornetQRAManagedConnection.<init>(HornetQRAManagedConnection.java:140) [:6.0.0.Final]

          ... 38 more

       

      17:23:52,420 ERROR [org.hornetq.ra.HornetQRASessionFactoryImpl] Could not create session: javax.resource.ResourceException: Unable to get managed connection for JmsXA

          at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:441) [:6.0.0.Final]

          at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:414) [:6.0.0.Final]

          at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:496) [:6.0.0.Final]

          at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:941) [:6.0.0.Final]

          at org.hornetq.ra.HornetQRASessionFactoryImpl.allocateConnection(HornetQRASessionFactoryImpl.java:837) [:6.0.0.Final]

          at org.hornetq.ra.HornetQRASessionFactoryImpl.createSession(HornetQRASessionFactoryImpl.java:470) [:6.0.0.Final]

          at org.springframework.jms.support.JmsAccessor.createSession(JmsAccessor.java:196) [:3.0.5.RELEASE]

          at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:457) [:3.0.5.RELEASE]

          at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:534) [:3.0.5.RELEASE]

          at com.corelogic.platform.services.corelems.client.LEMSQueuePopulator.sendMessagetoQ(LEMSQueuePopulator.java:102) [:]

          at com.corelogic.platform.services.corelems.client.LEMSClient.sendErrorMessage(LEMSClient.java:129) [:]

          at com.corelogic.platformconvergence.common.logging.ServiceLogger.sendErrorMessage(ServiceLogger.java:143) [:]

          at com.corelogic.platform.services.corelems.TestServlet.doPost(TestServlet.java:78) [:]

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [:1.0.0.Final]

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.Final]

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:6.0.0.Final]

          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:6.0.0.Final]

          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0.Final]

          at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final]

          at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final]

          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0.Final]

          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0.Final]

          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:6.0.0.Final]

          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.0.0.Final]

          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0.Final]

          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.0.0.Final]

          at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0.Final]

          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.0.0.Final]

          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.0.0.Final]

          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [:6.0.0.Final]

          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.0.0.Final]

          at java.lang.Thread.run(Thread.java:662) [:1.6.0_25]

      Caused by: javax.resource.ResourceException: Error during setup

          at org.hornetq.ra.HornetQRAManagedConnection.<init>(HornetQRAManagedConnection.java:151) [:6.0.0.Final]

          at org.hornetq.ra.HornetQRAManagedConnectionFactory.createManagedConnection(HornetQRAManagedConnectionFactory.java:161) [:6.0.0.Final]

          at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:648) [:6.0.0.Final]

          at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:272) [:6.0.0.Final]

          at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:690) [:6.0.0.Final]

          at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:403) [:6.0.0.Final]

          ... 33 more

      Caused by: java.lang.NoSuchMethodError: org.hornetq.api.jms.HornetQJMSClient.createConnectionFactory(Lorg/hornetq/api/core/TransportConfiguration;Lorg/hornetq/api/core/TransportConfiguration;)Lorg/hornetq/jms/client/HornetQConnectionFactory;

          at org.hornetq.ra.HornetQResourceAdapter.createHornetQConnectionFactory(HornetQResourceAdapter.java:1392) [:6.0.0.Final]

          at org.hornetq.ra.HornetQRAManagedConnectionFactory.getHornetQConnectionFactory(HornetQRAManagedConnectionFactory.java:768) [:6.0.0.Final]

          at org.hornetq.ra.HornetQRAManagedConnection.setup(HornetQRAManagedConnection.java:802) [:6.0.0.Final]

          at org.hornetq.ra.HornetQRAManagedConnection.<init>(HornetQRAManagedConnection.java:140) [:6.0.0.Final]

          ... 38 more