2 Replies Latest reply on Dec 21, 2011 9:49 AM by Simon Martinelli

    NPE when trying to setup queues

    Simon Martinelli Novice

      Hi,

       

      I got the following NPE:

       

      10:10:08,479 ERROR [AbstractKernelController] Error installing to Start: name=jboss.esb.quickstart.destination:name=cus-esb,service=Queue state=Create mode=Manual requiredState=Installed

      java.lang.NullPointerException

                at org.jboss.jms.server.ServerPeer.getPostOfficeInstance(ServerPeer.java:1683)

                at org.jboss.jms.server.destination.DestinationServiceSupport.setMaxSizeForQueues(DestinationServiceSupport.java:287)

                at org.jboss.jms.server.destination.DestinationServiceSupport.startService(DestinationServiceSupport.java:124)

                at org.jboss.jms.server.destination.QueueService.startService(QueueService.java:65)

                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(Unknown Source)

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

                at java.lang.reflect.Method.invoke(Unknown Source)

                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 $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:297)

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

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

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

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

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

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

                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:55)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                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:403)

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

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

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

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

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

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

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

                at org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(AbstractProfileService.java:308)

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

                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(Unknown Source)

       

      The queue definition is in the deploy directory and looks as follow:

       

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

      <server>

      <mbean code="org.jboss.jms.server.destination.QueueService"

          name="jboss.esb.quickstart.destination:service=Queue,name=cus-inbound"

          xmbean-dd="xmdesc/Queue-xmbean.xml">

          <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>

        </mbean>

        <mbean code="org.jboss.jms.server.destination.QueueService"

          name="jboss.esb.quickstart.destination:service=Queue,name=cus-esb"

          xmbean-dd="xmdesc/Queue-xmbean.xml">

          <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>

        </mbean>

      </server>

       

      Thanks for your help.

      Simon