7 Replies Latest reply on Jan 6, 2010 10:06 AM by angusm

    Persistence Manager Problem - null-persistence-service.xml

    droberts18

      I have taken the JBoss 5.0.0 GA distribution and everything is working nicely when I use the default hsqldb-persistence-service.xml configuration (hypersonic).

      However, I wanted to see what performance gains I could get with the null-persistence-service.xml (no persistence) and I can't get the system to start properly. I pulled this file from JBOSS_HOME\docs\examples\jms.

      An ideas on how to resolve this problem will be greatly appreciated.


      15:19:44,612 ERROR [ExceptionUtil] org.jboss.jms.server.plugin.JDBCJMSUserManagerService@8b28e0 startService
      java.lang.RuntimeException: Unable to locate the transaction manager
       at org.jboss.tm.TransactionManagerLocator.locate(TransactionManagerLocator.java:134)
       at org.jboss.tm.TransactionManagerLocator.locate(TransactionManagerLocator.java:113)
       at org.jboss.messaging.core.jmx.JDBCServiceSupport.getTransactionManagerReference(JDBCServiceSupport.java:175)
       at org.jboss.jms.server.plugin.JDBCJMSUserManagerService.startService(JDBCJMSUserManagerService.java:74)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
       at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:269)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       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.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
       at $Proxy36.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:1598)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
       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:146)
       at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:104)
       at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)
       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:1598)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
       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:545)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
       at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
       at org.jboss.Main.boot(Main.java:209)
       at org.jboss.Main$1.run(Main.java:547)
       at java.lang.Thread.run(Thread.java:595)
      15:19:44,612 ERROR [AbstractKernelController] Error installing to Start: name=jboss.messaging:service=JMSUserManager state=Create mode=Manual requiredState=Installed
      java.lang.RuntimeException: Unable to locate the transaction manager
       at org.jboss.tm.TransactionManagerLocator.locate(TransactionManagerLocator.java:134)
       at org.jboss.tm.TransactionManagerLocator.locate(TransactionManagerLocator.java:113)
       at org.jboss.messaging.core.jmx.JDBCServiceSupport.getTransactionManagerReference(JDBCServiceSupport.java:175)
       at org.jboss.jms.server.plugin.JDBCJMSUserManagerService.startService(JDBCJMSUserManagerService.java:74)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
       at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:269)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       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.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
       at $Proxy36.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:1598)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
       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:146)
       at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:104)
       at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)
       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:1598)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
       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:545)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
       at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
       at org.jboss.Main.boot(Main.java:209)
       at org.jboss.Main$1.run(Main.java:547)
       at java.lang.Thread.run(Thread.java:595)
      15:19:44,628 ERROR [AbstractKernelController] Error installing to Real: name=vfsfile:/C:/jboss-5/server/default/deploy/messaging/null-persistence-service.xml state=PreReal mode=Manual requiredState=Real
      org.jboss.deployers.spi.DeploymentException: Error deploying: jboss.messaging:service=JMSUserManager
       at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
       at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:123)
       at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)
       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:1598)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
       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:545)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
       at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
       at org.jboss.Main.boot(Main.java:209)
       at org.jboss.Main$1.run(Main.java:547)
       at java.lang.Thread.run(Thread.java:595)
      Caused by: java.lang.RuntimeException: Unable to locate the transaction manager
       at org.jboss.tm.TransactionManagerLocator.locate(TransactionManagerLocator.java:134)
       at org.jboss.tm.TransactionManagerLocator.locate(TransactionManagerLocator.java:113)
       at org.jboss.messaging.core.jmx.JDBCServiceSupport.getTransactionManagerReference(JDBCServiceSupport.java:175)
       at org.jboss.jms.server.plugin.JDBCJMSUserManagerService.startService(JDBCJMSUserManagerService.java:74)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
       at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:269)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       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.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
       at $Proxy36.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:1598)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
       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:146)
       at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:104)
       ... 23 more


        • 1. Re: Persistence Manager Problem - null-persistence-service.x
          ataylor

          It looks like the dependency is missing. try adding

          <depends optional-attribute-name="TransactionManager">jboss:service=TransactionManager</depends>


          • 2. Re: Persistence Manager Problem - null-persistence-service.x
            droberts18

            Thanks for the tip. That seemed to fix it.

            I added that line to the PostOffice and the JMSUserManager. I also had to comment out a few things: ChannelFactoryName and GroupName

            I'll let you guys know if there are and adverse effects.

            <?xml version="1.0" encoding="UTF-8"?>
            
            <!--
             Null persistence config.
            
             Use this if you don't actually want to persist anything
            
             $Id$
             -->
            
            <server>
            
             <!-- Persistence Manager MBean configuration
             ======================================== -->
            
             <mbean code="org.jboss.messaging.core.jmx.NullPersistenceManagerService"
             name="jboss.messaging:service=PersistenceManager"
             xmbean-dd="xmdesc/NullPersistenceManager-xmbean.xml">
             <!--
             <depends optional-attribute-name="TransactionManager">jboss:service=TransactionManager</depends>
             -->
             </mbean>
            
             <!-- Messaging Post Office MBean configuration
             ========================================= -->
            
             <mbean code="org.jboss.messaging.core.jmx.MessagingPostOfficeService"
             name="jboss.messaging:service=PostOffice"
             xmbean-dd="xmdesc/MessagingPostOffice-xmbean.xml">
            
             <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
             <depends optional-attribute-name="TransactionManager">jboss:service=TransactionManager</depends>
             <!-- The name of the post office -->
            
             <attribute name="PostOfficeName">JMS post office</attribute>
            
             <!-- This post office is clustered. If you don't want a clustered post office then set to false -->
            
             <attribute name="Clustered">false</attribute>
            
             <!-- All the remaining properties only have to be specified if the post office is clustered.
             You can safely comment them out if your post office is non clustered -->
            
             <!-- The JGroups group name that the post office will use -->
             <!--
             <attribute name="GroupName">${jboss.messaging.groupname:MessagingPostOffice}</attribute>
             -->
             <!-- Max time to wait for state to arrive when the post office joins the cluster -->
            
             <attribute name="StateTimeout">30000</attribute>
            
             <!-- Max time to wait for a synchronous call to node members using the MessageDispatcher -->
            
             <attribute name="CastTimeout">30000</attribute>
            
             <!-- Set this to true if you want failover of connections to occur when a node is shut down -->
            
             <attribute name="FailoverOnNodeLeave">false</attribute>
             <!--
             <depends optional-attribute-name="ChannelFactoryName">jboss.jgroups:service=ChannelFactory</depends>
             <attribute name="ControlChannelName">jbm-control</attribute>
             <attribute name="DataChannelName">jbm-data</attribute>
             <attribute name="ChannelPartitionName">${jboss.partition.name:DefaultPartition}-JMS</attribute>
             -->
             </mbean>
            
             <!-- Messaging JMS User Manager MBean config
             ======================================= -->
            
             <mbean code="org.jboss.jms.server.plugin.JDBCJMSUserManagerService"
             name="jboss.messaging:service=JMSUserManager"
             xmbean-dd="xmdesc/JMSUserManager-xmbean.xml">
             <depends optional-attribute-name="TransactionManager">jboss:service=TransactionManager</depends>
             </mbean>
            
            </server>
            


            • 3. Re: Persistence Manager Problem - null-persistence-service.x
              clebert.suconic

               

              "droberts18" wrote:

              I also had to comment out a few things: ChannelFactoryName and GroupName


              https://jira.jboss.org/jira/browse/JBMESSAGING-1471

              • 4. Re: Persistence Manager Problem - null-persistence-service.x

                >> I'll let you guys know if there are and adverse effects.

                The suggested modifications certainly worked in getting around problems during start-up.

                However, now that I'm using the null-persistence-manager, I see the following errors when deploying MDBs (ejb3) ... (I get this dump for each MDB I have).

                10:25:41,120 ERROR [ExceptionUtil] ConnectionFactoryEndpoint[jboss.messaging.connectionfactory:service=ConnectionFactory] createFailoverConnectionDelegate [7b-w0i3pmuf-1-lvt1pmuf-mxc4dw-c2aba]
                javax.jms.JMSSecurityException: User null is NOT authenticated
                at org.jboss.jms.server.jbosssx.JBossASSecurityMetadataStore.authenticate(JBossASSecurityMetadataStore.java:223)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:93)
                at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:27)
                at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:208)
                at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:120)
                at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:262)
                at javax.management.StandardMBean.invoke(StandardMBean.java:391)
                at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
                at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                at $Proxy89.authenticate(Unknown Source)
                at org.jboss.jms.server.endpoint.ServerConnectionFactoryEndpoint.createConnectionDelegateInternal(ServerConnectionFactoryEndpoint.java:233)
                at org.jboss.jms.server.endpoint.ServerConnectionFactoryEndpoint.createConnectionDelegate(ServerConnectionFactoryEndpoint.java:171)
                at org.jboss.jms.server.endpoint.advised.ConnectionFactoryAdvised.org$jboss$jms$server$endpoint$advised$ConnectionFactoryAdvised$createConnectionDelegate$aop(ConnectionFactoryAdvised.java:108)
                at org.jboss.jms.server.endpoint.advised.ConnectionFactoryAdvised.createConnectionDelegate(ConnectionFactoryAdvised.java)
                at org.jboss.jms.wireformat.ConnectionFactoryCreateConnectionDelegateRequest.serverInvoke(ConnectionFactoryCreateConnectionDelegateRequest.java:91)
                at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:143)
                at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:908)
                at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:106)
                at org.jboss.remoting.Client.invoke(Client.java:1708)
                at org.jboss.remoting.Client.invoke(Client.java:612)
                at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDelegate.java:171)
                at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeTarget(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
                at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
                at org.jboss.jms.client.container.StateCreationAspect.handleCreateConnectionDelegate(StateCreationAspect.java:81)
                at org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect_z_handleCreateConnectionDelegate_9491698.invoke(StateCreationAspect_z_handleCreateConnectionDelegate_9491698.java)
                at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createConnectionDelegate(ClientConnectionFactoryDelegate.java)
                at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:205)
                at org.jboss.jms.client.JBossConnectionFactory.createQueueConnection(JBossConnectionFactory.java:101)
                at org.jboss.jms.client.JBossConnectionFactory.createQueueConnection(JBossConnectionFactory.java:95)
                at org.jboss.resource.adapter.jms.inflow.dlq.AbstractDLQHandler.setupDLQConnection(AbstractDLQHandler.java:137)
                at org.jboss.resource.adapter.jms.inflow.dlq.AbstractDLQHandler.setup(AbstractDLQHandler.java:83)
                at org.jboss.resource.adapter.jms.inflow.dlq.JBossMQDLQHandler.setup(JBossMQDLQHandler.java:48)
                at org.jboss.resource.adapter.jms.inflow.JmsActivation.setupDLQ(JmsActivation.java:413)
                at org.jboss.resource.adapter.jms.inflow.JmsActivation.setup(JmsActivation.java:351)
                at org.jboss.resource.adapter.jms.inflow.JmsActivation$SetupActivation.run(JmsActivation.java:729)
                at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:213)
                at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:260)
                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've tried to give the MDBs in question a user and password via an ActivationConfigProperty, but it has had little effect.

                Instead of saying "user null is NOT authenticated", it says "user guest is not authenticated".

                Interestingly enough, I only see these errors during deployment. If I deploy with the hypersonic persistence manager, then shutdown jboss, then restart, I don't see these errors.

                I can see identical failures (user not authenticated) using the hypersonic persistence manager, if I comment out the POPULATE.TABLES stuff in the SqlProperties attribute.

                Any assistance would be appreciated, cheers.

                • 5. Re: Persistence Manager Problem - null-persistence-service.x

                  I've managed to come up with a resolution, for now.

                  If I copy the portion of the hsqldb-persistence-service.xml file related to the JMS User Manager MBean config into the null-persistence-service.xml, the problem is resolved.

                  • 6. Re: Persistence Manager Problem - null-persistence-service.x

                    JBoss Messaging Null Persistence Service
                    ===========================

                    Purpose: To disable the Database Persistence Policy and introducing Null Persistence Service.
                    --------
                    Step 1: we have to delete the existing \server\default\deploy\messaging\hsqldb-persistence-service.xml.
                    --------
                    Step 2: delete the following messaging security policy from the \server\default\deploy\messaging\messaging-jboss-beans.xml file
                    --------

                    <!-- messaging application-policy definition -->
                    <application-policy xmlns="urn:jboss:security-beans:1.0" name="messaging">

                    <login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag="required">
                    <module-option name="unauthenticatedIdentity">guest</module-option>
                    <module-option name="dsJndiName">java:/DefaultDS</module-option>
                    <module-option name="principalsQuery">SELECT PASSWD FROM JBM_USER WHERE USER_ID=?</module-option>
                    <module-option name="rolesQuery">SELECT ROLE_ID, 'Roles' FROM JBM_ROLE WHERE USER_ID=?</module-option>
                    </login-module>

                    </application-policy>


                    Step 3: Include the messaging policy in the \server\default\conf\login-config.xml file as the follows,
                    -------

                    <!-- A template configuration for messaging. This
                    defaults to the UsersRolesLoginModule the same as other and should be
                    changed to a stronger authentication mechanism as required.
                    -->
                    <application-policy name="messaging">

                    <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule"
                    flag="required">
                    <module-option name = "unauthenticatedIdentity">guest</module-option>
                    <module-option name="usersProperties">props/messaging-users.properties</module-option>
                    <module-option name="rolesProperties">props/messaging-roles.properties</module-option>
                    </login-module>

                    </application-policy>



                    And also place the following properties files in the directory \server\default\conf\props

                    1. messaging-users.properties
                    ------------------------------
                    #
                    # user=password
                    #
                    guest=guest

                    2. messaging-roles.properties
                    -------------------------------
                    #
                    # user=role1,role2,...
                    #
                    guest=guest


                    Step 4: Place the null-persistence-service.xml file with the following contents under the directory \server\default\deploy\messaging
                    -------


                    <?xml version="1.0" encoding="UTF-8"?>

                    <!--
                    Null persistence config.
                    Use this if you don't actually want to persist anything
                    $Id$
                    -->



                    <!-- Persistence Manager MBean configuration
                    ======================================== -->

                    <mbean code="org.jboss.messaging.core.jmx.NullPersistenceManagerService"
                    name="jboss.messaging:service=PersistenceManager"
                    xmbean-dd="xmdesc/NullPersistenceManager-xmbean.xml"/>

                    <!-- Messaging Post Office MBean configuration
                    ========================================= -->

                    <mbean code="org.jboss.messaging.core.jmx.MessagingPostOfficeService"
                    name="jboss.messaging:service=PostOffice"
                    xmbean-dd="xmdesc/MessagingPostOffice-xmbean.xml">

                    <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer
                    <depends optional-attribute-name="TransactionManager">jboss:service=TransactionManager
                    <!-- The name of the post office -->

                    JMS post office

                    <!-- This post office is clustered. If you don't want a clustered post office then set to false -->

                    false



                    <!-- Messaging JMS User Manager MBean config
                    ======================================= -->

                    <mbean code="org.jboss.jms.server.plugin.JDBCJMSUserManagerService"
                    name="jboss.messaging:service=JMSUserManager"
                    xmbean-dd="xmdesc/JMSUserManager-xmbean.xml">
                    <depends optional-attribute-name="TransactionManager">jboss:service=TransactionManager





                    • 7. Re: Persistence Manager Problem - null-persistence-service.x

                      The above contribution lost a few (rather critical) bits of XML. Hopefully i will do a little better (though I am not all all sure) *JBoss Messaging Null Persistence Service*  *Purpose:* To disable the Database Persistence Policy and introducing Null Persistence Service. *Step 1:* we have to delete the existing {color:green}\server\default\deploy\messaging\hsqldb-persistence-service.xml{color}. *Step 2:* delete the following *messaging* security policy from the {color:green}\server\default\deploy\messaging\messaging-jboss-beans.xml{color} file {code:xml}    <!-- messaging application-policy definition -->    <application-policy xmlns="urn:jboss:security-beans:1.0" name="messaging">       <authentication>          <login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag="required">             <module-option name="unauthenticatedIdentity">guest</module-option>             <module-option name="dsJndiName">java:/DefaultDS</module-option>             <module-option name="principalsQuery">SELECT PASSWD FROM JBM_USER WHERE USER_ID=?</module-option>             <module-option name="rolesQuery">SELECT ROLE_ID, 'Roles' FROM JBM_ROLE WHERE USER_ID=?</module-option>          </login-module>       </authentication>    </application-policy> {code} *Step 3:* Include the messaging policy in the {color:green}\server\default\conf\login-config.xml{color} file as the follows, {code:xml}       <!-- A template configuration for messaging. This defaults to the UsersRolesLoginModule the same as other and should be changed to a stronger authentication mechanism as required. --> <application-policy name="messaging"> <authentication>    <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule" flag="required">       <module-option name = "unauthenticatedIdentity">guest</module-option>       <module-option name="usersProperties">props/messaging-users.properties</module-option>       <module-option name="rolesProperties">props/messaging-roles.properties</module-option>    </login-module>   </authentication> </application-policy> {code} And also place the following properties files in the directory {color:green}\server\default\conf\props{color} {code} 1. messaging-users.properties ------------------------------ # # user=password # guest=guest 2. messaging-roles.properties ------------------------------- # # user=role1,role2,... # guest=guest {code} *Step 4:* Place the null-persistence-service.xml file with the following contents under the directory {color:green}\server\default\deploy\messaging{color} {code:xml} <?xml version="1.0" encoding="UTF-8"?> <!--      Null persistence config.           Use this if you don't actually want to persist anything           $Id$ --> <server>    <!-- Persistence Manager MBean configuration        ======================================== -->    <mbean code="org.jboss.messaging.core.jmx.NullPersistenceManagerService"       name="jboss.messaging:service=PersistenceManager"       xmbean-dd="xmdesc/NullPersistenceManager-xmbean.xml"/>         <!-- Messaging Post Office MBean configuration         ========================================= -->    <mbean code="org.jboss.messaging.core.jmx.MessagingPostOfficeService"       name="jboss.messaging:service=PostOffice"       xmbean-dd="xmdesc/MessagingPostOffice-xmbean.xml">       <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>       <depends optional-attribute-name="TransactionManager">jboss:service=TransactionManager</depends>             <!-- The name of the post office -->       <attribute name="PostOfficeName">JMS post office</attribute>            <!-- This post office is clustered. If you don't want a clustered post office then set to false -->       <attribute name="Clustered">false</attribute>    </mbean>    <!-- Messaging JMS User Manager MBean config         ======================================= -->    <mbean code="org.jboss.jms.server.plugin.JDBCJMSUserManagerService"       name="jboss.messaging:service=JMSUserManager"       xmbean-dd="xmdesc/JMSUserManager-xmbean.xml">         <depends optional-attribute-name="TransactionManager">jboss:service=TransactionManager</depends>    </mbean> </server> {code}