4 Replies Latest reply on Nov 11, 2010 9:16 AM by Emre He

    jboss 5.1: jboss.mq:service=PersistenceManager is not registered

    Emre He Newbie

      I am trying to setup jbossmq on jboss5.1.0.GA, i always has the DEBUG/ERROR with exception info like below, and same situation happened on others:

           jboss.admin:service=PluginManager

           jboss:service=invoker,type=http

           jboss.mq:service=MessageCache

           jboss.bean:service=JBossBeanDeployer

           jboss:service=C3P0PooledDataSource

           ...

       

      how could i resolve this issue? many thanks!

       

       

      2010-11-10 22:55:17,956 DEBUG [org.jboss.management.j2ee.MBean] (main) Failed to register as listener of: jboss.mq:service=PersistenceManager
      javax.management.InstanceNotFoundException: jboss.mq:service=PersistenceManager is not registered.
      at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:526)
      at org.jboss.mx.server.MBeanServerImpl.isInstanceOf(MBeanServerImpl.java:974)
      at org.jboss.management.j2ee.MBean.postCreation(MBean.java:151)
      at org.jboss.management.j2ee.J2EEManagedObject.postRegister(J2EEManagedObject.java:314)
      at org.jboss.mx.server.AbstractMBeanInvoker.invokePostRegister(AbstractMBeanInvoker.java:974)
      at org.jboss.mx.server.AbstractMBeanInvoker.postRegister(AbstractMBeanInvoker.java:681)
      at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:335)
      at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
      at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1431)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1426)
      at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:376)
      at org.jboss.management.j2ee.MBean.create(MBean.java:79)
      at org.jboss.management.j2ee.deployers.ServiceModuleJSR77Deployer.deployJsr77(ServiceModuleJSR77Deployer.java:62)
      at org.jboss.management.j2ee.deployers.ServiceModuleJSR77Deployer.deployJsr77(ServiceModuleJSR77Deployer.java:40)
      at org.jboss.management.j2ee.deployers.AbstractVFSJSR77Deployer.deployJsr77(AbstractVFSJSR77Deployer.java:46)
      at org.jboss.management.j2ee.deployers.AbstractJSR77Deployer.deploy(AbstractJSR77Deployer.java:173)
      at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
      at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
      at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
      at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
      at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
      at org.jboss.Main.boot(Main.java:221)
      at org.jboss.Main$1.run(Main.java:556)
      at java.lang.Thread.run(Thread.java:595)

      {code}2010-11-10 22:55:17,956 DEBUG [org.jboss.management.j2ee.MBean] (main) Failed to register as listener of: jboss.mq:service=PersistenceManager

      javax.management.InstanceNotFoundException: jboss.mq:service=PersistenceManager is not registered.

           at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:526)

           at org.jboss.mx.server.MBeanServerImpl.isInstanceOf(MBeanServerImpl.java:974)

           at org.jboss.management.j2ee.MBean.postCreation(MBean.java:151)

           at org.jboss.management.j2ee.J2EEManagedObject.postRegister(J2EEManagedObject.java:314)

           at org.jboss.mx.server.AbstractMBeanInvoker.invokePostRegister(AbstractMBeanInvoker.java:974)

           at org.jboss.mx.server.AbstractMBeanInvoker.postRegister(AbstractMBeanInvoker.java:681)

           at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:335)

           at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source)

           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

           at java.lang.reflect.Method.invoke(Method.java:585)

           at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

           at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

           at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)

           at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)

           at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)

           at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)

           at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

           at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1431)

           at java.security.AccessController.doPrivileged(Native Method)

           at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1426)

           at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:376)

           at org.jboss.management.j2ee.MBean.create(MBean.java:79)

           at org.jboss.management.j2ee.deployers.ServiceModuleJSR77Deployer.deployJsr77(ServiceModuleJSR77Deployer.java:62)

           at org.jboss.management.j2ee.deployers.ServiceModuleJSR77Deployer.deployJsr77(ServiceModuleJSR77Deployer.java:40)

           at org.jboss.management.j2ee.deployers.AbstractVFSJSR77Deployer.deployJsr77(AbstractVFSJSR77Deployer.java:46)

           at org.jboss.management.j2ee.deployers.AbstractJSR77Deployer.deploy(AbstractJSR77Deployer.java:173)

           at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

           at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)

           at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)

           at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)

           at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)

           at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)

           at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

           at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

           at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

           at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

           at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

           at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

           at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

           at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)

           at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)

           at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)

           at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)

           at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

           at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)

           at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

           at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

           at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

           at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

           at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

           at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

           at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

           at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)

           at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)

           at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)

           at org.jboss.Main.boot(Main.java:221)

           at org.jboss.Main$1.run(Main.java:556)

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

      {code}

       

       

       

      {code}2010-11-10 22:55:17,986 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Start: name=jboss.mq:service=MessageCache state=Create mode=Manual requiredState=Installed

      javax.management.InstanceNotFoundException: jboss.mq:service=PersistenceManager is not registered.

           at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:526)

           at org.jboss.mx.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:559)

           at org.jboss.mq.server.MessageCache.startService(MessageCache.java:427)

           at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)

           at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:322)

           at sun.reflect.GeneratedMethodAccessor80.invoke(Unknown Source)

           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

           at java.lang.reflect.Method.invoke(Method.java:585)

           at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

           at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

           at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

           at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

           at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:189)

           at $Proxy38.start(Unknown Source)

           at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)

           at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)

           at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

           at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

           at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

           at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

           at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)

           at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

           at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

           at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

           at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

           at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

           at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

           at org.jboss.system.ServiceController.doChange(ServiceController.java:688)

           at org.jboss.system.ServiceController.start(ServiceController.java:460)

           at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)

           at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)

           at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)

           at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

           at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)

           at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)

           at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)

           at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)

           at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)

           at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)

           at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

           at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

           at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

           at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

           at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

           at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

           at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

           at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)

           at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)

           at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)

           at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)

           at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

           at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)

           at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

           at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

           at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

           at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

           at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

           at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

           at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

           at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)

           at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)

           at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)

           at org.jboss.Main.boot(Main.java:221)

           at org.jboss.Main$1.run(Main.java:556)

           at java.lang.Thread.run(Thread.java:595){code}

        • 1. Re: jboss 5.1: jboss.mq:service=PersistenceManager is not registered
          Wolf-Dieter Fink Master

          You have to deploy the PersistenceManager for MQ as well.

          In 4.2 it is located in server/all/deploy-hasingleton/jms/hsqldb-jdbc2-service.xml (default for HSQLDB should not be used in production)

          You should look into docs/examples/jms for your prefered database.

           

          But at least I recommend to use JBM with JBoss5 instead of JBossMQ!

          • 2. Re: jboss 5.1: jboss.mq:service=PersistenceManager is not registered
            Emre He Newbie

            Wolf-Dieter,

             

            thanks for your response!

            i have server/myserver/deploy/jms/mysql-jdbc2-service.xml which includes PersistenceManager for MQ:

             

             

              <mbean code="org.jboss.mq.pm.jdbc2.PersistenceManager"
            name="jboss.mq:service=PersistenceManager">
                <depends optional-attribute-name="ConnectionManager">jboss.jca:service=DataSourceBinding,name=ticketDS</depends>
                <attribute name="SqlProperties">
                  BLOB_TYPE=BYTES_BLOB
                  INSERT_TX = INSERT INTO JMS_TRANSACTIONS (TXID) values(?)
                  INSERT_MESSAGE = INSERT INTO JMS_MESSAGES (MESSAGEID, DESTINATION, MESSAGEBLOB, TXID, TXOP) VALUES(?,?,?,?,?)
                  SELECT_ALL_UNCOMMITED_TXS = SELECT TXID FROM JMS_TRANSACTIONS
                  SELECT_MAX_TX = SELECT MAX(TXID) FROM JMS_MESSAGES

            {code} <mbean code="org.jboss.mq.pm.jdbc2.PersistenceManager"

            name="jboss.mq:service=PersistenceManager">

                <depends optional-attribute-name="ConnectionManager">jboss.jca:service=DataSourceBinding,name=ticketDS</depends>

                <attribute name="SqlProperties">

                  BLOB_TYPE=BYTES_BLOB

                  INSERT_TX = INSERT INTO JMS_TRANSACTIONS (TXID) values(?)

                  INSERT_MESSAGE = INSERT INTO JMS_MESSAGES (MESSAGEID, DESTINATION, MESSAGEBLOB, TXID, TXOP) VALUES(?,?,?,?,?)

                  SELECT_ALL_UNCOMMITED_TXS = SELECT TXID FROM JMS_TRANSACTIONS

                  SELECT_MAX_TX = SELECT MAX(TXID) FROM JMS_MESSAGES {code}

             

            but, i have the error/debug said "jboss.mq:service=PersistenceManager is not registered"

             

            now my question is {color:red}if my thought setup jbossmq on jboss 5.1 Possible?{color} does jboss 5.1 support the old jbossmq? 
            • 3. Re: jboss 5.1: jboss.mq:service=PersistenceManager is not registered
              Wolf-Dieter Fink Master

              Sorry, I'm not sure.

              But I suppose it will be difficult because of different TXManager (it's also changed from 4.x to 5.x from jboss-in-memory to arjuna).

              And it might have other side effects

              • 4. Re: jboss 5.1: jboss.mq:service=PersistenceManager is not registered
                Emre He Newbie

                Thanks Wolf-Dieter,

                 

                Yes i think the "not registered" issue is part of the "side effect", we can not imagine other potential issue.

                 

                thanks,

                Emre