1 Reply Latest reply on Mar 20, 2003 8:01 PM by Adrian Brock

    A problem integration JBoss and SonicMQ

    Alexander Rabinowitz Newbie

      I am working with JBoss 3.0.6 and SonicMQ 5.0

      I just double checked I am using the right ContainerInvoker in my standardjboss.xml file:

      <container-name>Standard Message Driven Bean</container-name>
      <call-logging>false</call-logging>
      <!--container-invoker>org.jboss.ejb.plugins.jms.JMSContainerInvoker</container-invoker-->
      <container-invoker>com.sonicsw.pso.jboss.SonicMQContainerInvoker</container-invoker>
      ..................
      <container-invoker-conf>
      <!--JMSProviderAdapterJNDI>DefaultJMSProvider</JMSProviderAdapterJNDI-->
      SonicMQJMSProvider
      <!--ServerSessionPoolFactoryJNDI>StdJMSPool</ServerSessionPoolFactoryJNDI-->
      SonicMQJMSPool
      <!--MaximumSize>15</MaximumSize-->
      <!--MaxMessages>1</MaxMessages-->
      5
      5

      10

      <!--DestinationQueue>queue/DLQ</DestinationQueue-->
      jms/SonicMQ/DLQ
      10
      0


      </container-invoker-conf>

      I suppose, that is correct.

      However, I am having the following error messages, can anybody help:

      12:23:13,316 INFO [DLQHandler] Starting
      12:23:13,316 WARN [JMSContainerInvoker] JMS provider failure detected:
      javax.jms.JMSException: can not return a created XATopicSession as a TopicSessio
      n.
      at progress.message.jimpl.JMSExceptionUtil.createJMSException(Unknown So
      urce)
      at progress.message.jimpl.xa.XATopicConnection.createTopicSession(Unknow
      n Source)
      at progress.message.jimpl.aspi.en.(Unknown Source)
      at progress.message.jimpl.aspi.CCFactory.createConnectionConsumer(Unknow
      n Source)
      at progress.message.jimpl.TopicConnection.createConnectionConsumer(Unkno
      wn Source)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContaine
      rInvoker.java:733)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContain
      erInvoker.java:824)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
      65)
      at org.jboss.ejb.MessageDrivenContainer.start(MessageDrivenContainer.jav
      a:200)
      at org.jboss.ejb.Container.invoke(Container.java:756)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
      ler.java:1003)
      at $Proxy4.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:413)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy17.start(Unknown Source)
      at org.jboss.ejb.EjbModule.startService(EjbModule.java:430)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
      65)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
      ler.java:1003)
      at $Proxy4.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:413)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy8.start(Unknown Source)
      at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:395)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy3.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
      tScanner.java:435)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDe
      ploymentScanner.java:656)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
      canner.java:507)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A
      bstractDeploymentScanner.java:261)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
      65)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
      ler.java:1003)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:413)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy2.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:230)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:575)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:325)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:222)
      at org.jboss.Main.boot(Main.java:148)
      at org.jboss.Main$1.run(Main.java:381)
      at java.lang.Thread.run(Thread.java:479)
      12:23:13,326 INFO [JMSContainerInvoker] Trying to reconnect to JMS provider
      12:23:13,326 INFO [DLQHandler] Started
      12:23:13,357 INFO [JMSContainerInvoker] Started
      12:23:14,248 INFO [EjbModule] Started
      12:23:14,248 INFO [MainDeployer] Deployed package: file:/C:/jboss-3.0.6-PDREpro
      ject-sonic-working/server/default/deploy/PeerdirectMasterServer.jar
      12:23:14,248 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss
      -3.0.6-PDREproject-sonic-working/server/default/deploy/jmx-console.war/
      12:23:14,268 INFO [Manager] cloning Manager: org.mortbay.j2ee.session.Manager@1
      66e5
      12:23:14,268 INFO [JBossWebApplicationContext] setDistributableSessionManager o
      rg.mortbay.j2ee.session.Manager@6aa42e
      12:23:14,348 INFO [jbossweb] Registered jboss.web:Jetty=0,JBossWebApplicationCo
      ntext=1,context=/jmx-console
      12:23:14,929 INFO [jbossweb] Started WebApplicationContext[/jmx-console,file:/C
      :/jboss-3.0.6-PDREproject-sonic-working/server/default/deploy/jmx-console.war/]
      12:23:14,949 INFO [jbossweb] successfully deployed file:/C:/jboss-3.0.6-PDREpro
      ject-sonic-working/server/default/deploy/jmx-console.war/ to /jmx-console
      12:23:14,949 INFO [MainDeployer] Deployed package: file:/C:/jboss-3.0.6-PDREpro
      ject-sonic-working/server/default/deploy/jmx-console.war/
      12:23:14,959 INFO [URLDeploymentScanner] Started
      12:23:14,959 INFO [MainDeployer] Deployed package: file:/C:/jboss-3.0.6-PDREpro
      ject-sonic-working/server/default/conf/jboss-service.xml
      12:23:14,969 INFO [Server] JBoss (MX MicroKernel) [3.0.6 (CVSTag=JBoss_3_0_6 Da
      te=200301260037)] Started in 0m:16s:404ms
      12:23:23,361 INFO [JMSContainerInvoker] Stopping
      12:24:57,879 INFO [DLQHandler] Stopping
      12:24:57,899 ERROR [DLQHandler] Stopping failed
      javax.jms.JMSException: Thread interrupted
      at progress.message.jimpl.JMSExceptionUtil.createJMSException(Unknown So
      urce)
      at progress.message.jimpl.QueueConnection.stop(Unknown Source)
      at org.jboss.ejb.plugins.jms.DLQHandler.stopService(DLQHandler.java:143)

      at org.jboss.system.ServiceMBeanSupport.stop(ServiceMBeanSupport.java:20
      0)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.stopService(JMSContaine
      rInvoker.java:863)
      at org.jboss.system.ServiceMBeanSupport.stop(ServiceMBeanSupport.java:20
      0)
      at org.jboss.system.ServiceMBeanSupport.destroy(ServiceMBeanSupport.java
      :227)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.o
      nException(JMSContainerInvoker.java:1096)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker$1.run(JMSContainerInvok
      er.java:835)
      12:24:57,899 INFO [JMSContainerInvoker] Stopped
      12:24:57,899 INFO [JMSContainerInvoker] Destroying
      12:24:57,899 INFO [DLQHandler] Destroying
      12:24:57,899 INFO [DLQHandler] Destroyed
      12:24:58,129 INFO [JMSContainerInvoker] Destroyed
      12:24:58,139 INFO [DLQHandler] Creating
      12:25:00,222 INFO [DLQHandler] Created
      12:25:02,305 ERROR [JMSContainerInvoker] Reconnect failed: JMS provider failure
      detected
      javax.jms.JMSException: can not return a created XATopicSession as a TopicSessio
      n.
      at progress.message.jimpl.JMSExceptionUtil.createJMSException(Unknown So
      urce)
      at progress.message.jimpl.xa.XATopicConnection.createTopicSession(Unknow
      n Source)
      at progress.message.jimpl.aspi.en.(Unknown Source)
      at progress.message.jimpl.aspi.CCFactory.createConnectionConsumer(Unknow
      n Source)
      at progress.message.jimpl.TopicConnection.createConnectionConsumer(Unkno
      wn Source)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContaine
      rInvoker.java:733)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.access$100(JMSContainer
      Invoker.java:61)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.o
      nException(JMSContainerInvoker.java:1097)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker$1.run(JMSContainerInvok
      er.java:835)