1 Reply Latest reply on Jul 20, 2007 10:17 AM by Charlie

    JMS config problem?

    Charlie Newbie

      Hi,

      I am trying to get the jboss-EJB-3.0_Embeddable_ALPHA_9 to work with a JMS qeue. The following problem comes up when ite trys to start:

      ERROR 20-07 14:16:53,227 (AbstractController.java:incrementState:440) -Error installing to Configured: name=jboss.mq:service=ThreadPool state=Instantiated
      org.jboss.joinpoint.spi.JoinpointException: Property blockingModeString not found for AbstractBeanInfo@18e80a6{name=org.jboss.util.threadpool.BasicThreadPool classInfo= properties=[minimumPoolSize, threadGroup, class, blockingMode, maximumPoolSize, threadGroupName, maximumQueueSize, poolNumber, instance, queueSize, keepAliveTime, poolSize, name] methods=[hashCode, access$400, getNextTimeout, waitForTasks, waitForTasks, setMaximumPoolSize, getKeepAliveTime, getPoolSize, clone, setMaximumQueueSize, access$300, getPoolNumber, getThreadGroup, getMaximumPoolSize, getInstance, executeOnThread, setThreadGroupName, getMaximumQueueSize, getMinimumPoolSize, waitForTask, stop, stop, equals, wait, wait, wait, registerNatives, checkTimeoutMonitor, notify, getClass, runTaskWrapper, class$, toString, toString, notifyAll, setName, execute, setBlockingMode, setBlockingMode, finalize, getQueueSize, runTask, getThreadGroupName, access$100, setMinimumPoolSize, getName, access$200, getBlockingMode, run, run, setKeepAliveTime] constructors=[, , ] events=}
      at org.jboss.kernel.plugins.config.Configurator.resolveProperty(Configurator.java:668)
      at org.jboss.kernel.plugins.config.Configurator.getPropertySetterJoinPoint(Configurator.java:442)
      at org.jboss.kernel.plugins.config.Configurator.getPropertySetterJoinPoints(Configurator.java:407)
      at org.jboss.kernel.plugins.config.AbstractKernelConfigurator.getPropertySetterJoinPoints(AbstractKernelConfigurator.java:120)
      at org.jboss.kernel.plugins.dependency.ConfigureAction.installAction(ConfigureAction.java:52)
      at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.install(KernelControllerContextAction.java:100)
      at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:226)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:709)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:429)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:538)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:472)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:274)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:177)
      at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:291)
      at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:261)
      at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:117)
      at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:95)
      at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.deployXmlResource(EJB3StandaloneBootstrap.java:97)
      at com.gsk.mdr.cis.ejb.CIS3EmbeddedServer.startServer(CIS3EmbeddedServer.java:23)
      at com.gsk.mdr.cis.ejb.session.CisDataSearchTest.start(CisDataSearchTest.java:30)
      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.junit.internal.runners.BeforeAndAfterRunner.invokeMethod(BeforeAndAfterRunner.java:74)
      at org.junit.internal.runners.BeforeAndAfterRunner.runBefores(BeforeAndAfterRunner.java:50)
      at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:33)
      at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
      at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
      at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
      1891 [main] ERROR org.jboss.kernel.plugins.dependency.AbstractKernelController - Error installing to Configured: name=jboss.mq:service=ThreadPool state=Instantiated
      org.jboss.joinpoint.spi.JoinpointException: Property blockingModeString not found for AbstractBeanInfo@18e80a6{name=org.jboss.util.threadpool.BasicThreadPool classInfo= properties=[minimumPoolSize, threadGroup, class, blockingMode, maximumPoolSize, threadGroupName, maximumQueueSize, poolNumber, instance, queueSize, keepAliveTime, poolSize, name] methods=[hashCode, access$400, getNextTimeout, waitForTasks, waitForTasks, setMaximumPoolSize, getKeepAliveTime, getPoolSize, clone, setMaximumQueueSize, access$300, getPoolNumber, getThreadGroup, getMaximumPoolSize, getInstance, executeOnThread, setThreadGroupName, getMaximumQueueSize, getMinimumPoolSize, waitForTask, stop, stop, equals, wait, wait, wait, registerNatives, checkTimeoutMonitor, notify, getClass, runTaskWrapper, class$, toString, toString, notifyAll, setName, execute, setBlockingMode, setBlockingMode, finalize, getQueueSize, runTask, getThreadGroupName, access$100, setMinimumPoolSize, getName, access$200, getBlockingMode, run, run, setKeepAliveTime] constructors=[, , ] events=}
      at org.jboss.kernel.plugins.config.Configurator.resolveProperty(Configurator.java:668)
      at org.jboss.kernel.plugins.config.Configurator.getPropertySetterJoinPoint(Configurator.java:442)
      at org.jboss.kernel.plugins.config.Configurator.getPropertySetterJoinPoints(Configurator.java:407)
      at org.jboss.kernel.plugins.config.AbstractKernelConfigurator.getPropertySetterJoinPoints(AbstractKernelConfigurator.java:120)
      at org.jboss.kernel.plugins.dependency.ConfigureAction.installAction(ConfigureAction.java:52)
      at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.install(KernelControllerContextAction.java:100)
      at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:226)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:709)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:429)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:538)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:472)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:274)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:177)
      at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:291)
      at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:261)
      at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:117)
      at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:95)
      at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.deployXmlResource(EJB3StandaloneBootstrap.java:97)
      at com.gsk.mdr.cis.ejb.CIS3EmbeddedServer.startServer(CIS3EmbeddedServer.java:23)
      at com.gsk.mdr.cis.ejb.session.CisDataSearchTest.start(CisDataSearchTest.java:30)
      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.junit.internal.runners.BeforeAndAfterRunner.invokeMethod(BeforeAndAfterRunner.java:74)
      at org.junit.internal.runners.BeforeAndAfterRunner.runBefores(BeforeAndAfterRunner.java:50)
      at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:33)
      at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
      at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
      at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)



      It looks like a config problem. Any idea how i can fix it?

        • 1. Re: JMS config problem?
          Charlie Newbie

          I have sloved it in the jboss-jms-beans.xml this a extra property is inculded. So comment it out you be fine.
          Before:


          JMSThread
          JBossMQ Server Threads
          <!-- The max number of threads in the pool -->
          10
          <!-- The max number of tasks before the queue is full -->
          1000
          <!-- The behavior of the pool when a task is added and the queue is full.
          abort - a RuntimeException is thrown
          run - the calling thread executes the task
          wait - the calling thread blocks until the queue has room
          discard - the task is silently discarded without being run
          discardOldest - check to see if a task is about to complete and enque
          the new task if possible, else run the task in the calling thread
          -->
          run




          After:


          JMSThread
          JBossMQ Server Threads
          <!-- The max number of threads in the pool -->
          10
          <!-- The max number of tasks before the queue is full -->
          1000
          <!-- The behavior of the pool when a task is added and the queue is full.
          abort - a RuntimeException is thrown
          run - the calling thread executes the task
          wait - the calling thread blocks until the queue has room
          discard - the task is silently discarded without being run
          discardOldest - check to see if a task is about to complete and enque
          the new task if possible, else run the task in the calling thread

          run
          -->