[Messaging, JMS & JBossMQ] - queue statistics
by marcobaroetto
Hello, I'm new into JMS and JBoss MQ. I wonder if it is possibile to access to a javax.jms.Queue statistics using jboss mq. I found the MessageCounter class into org.jboss.mq.server package but i don't know how to access it starting from a javax.jms.queue.
What i want to do is to check the current number of message in the queue from code without using a QueueBrowser.
Here is my code:
| Properties props = new Properties();
| QueueSession queueSession;
| QueueSender queueSender;
|
| props.setProperty(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
| props.setProperty(Context.URL_PKG_PREFIXES, "org.jboss.naming.client" );
| props.setProperty(Context.PROVIDER_URL, "jnp://localhost:1099");
| props.setProperty("j2ee.clientName", "MessageClient");
| Context ctx= new InitialContext(props);
|
| QueueConnectionFactory queueConnectionFactory =
| (QueueConnectionFactory) ctx.lookup("ConnectionFactory");
|
| QueueConnection queueConnection =
| queueConnectionFactory.createQueueConnection();
|
| javax.jms.Queue queue = (javax.jms.Queue)ctx.lookup("queue/MyQueue");
|
| queueSession =
| (QueueSession)queueConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
|
| queueSender = queueSession.createSender(queue);
|
| queueSender.setDeliveryMode(DeliveryMode.PERSISTENT);
thank you!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127323#4127323
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127323
18 years, 2 months
[JNDI/Naming/Network] - Cannot bind transaction factory in CORBA naming service
by argonist
Hello,
I am running JBoss 4.0.5 with SDK6. On the server there are two Jboss and both server have the same problem. I am been tried only one Jboss and it is still problem. I don`t know, what ist problem.
anonymous wrote :
| =========================================================================
|
| JBoss Bootstrap Environment
|
| JBOSS_HOME: /home/jboss/JBoss-4.0.5.GA
|
| JAVA: /usr/lib64/jvm/java/bin/java
|
| JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=360000
| 0
|
| CLASSPATH: /home/jboss/JBoss-4.0.5.GA/bin/run.jar:/usr/lib64/jvm/java/lib/tools.jar
|
| =========================================================================
|
| 22:38:11,293 INFO [Server] Starting JBoss (MX MicroKernel)...
| 22:38:11,294 INFO [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)
| 22:38:11,295 INFO [Server] Home Dir: /home/jboss/JBoss-4.0.5.GA
| 22:38:11,295 INFO [Server] Home URL: file:/home/jboss/JBoss-4.0.5.GA/
| 22:38:11,296 INFO [Server] Patch URL: null
| 22:38:11,297 INFO [Server] Server Name: production
| 22:38:11,297 INFO [Server] Server Home Dir: /home/jboss/JBoss-4.0.5.GA/server/production
| 22:38:11,297 INFO [Server] Server Home URL: file:/home/jboss/JBoss-4.0.5.GA/server/production/
| 22:38:11,297 INFO [Server] Server Log Dir: /home/jboss/JBoss-4.0.5.GA/server/production/log
| 22:38:11,297 INFO [Server] Server Temp Dir: /home/jboss/JBoss-4.0.5.GA/server/production/tmp
| 22:38:11,298 INFO [Server] Root Deployment Filename: jboss-service.xml
| 22:38:11,610 INFO [ServerInfo] Java version: 1.5.0_13,Sun Microsystems Inc.
| 22:38:11,610 INFO [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 1.5.0_13-b05,Sun Microsystems Inc.
| 22:38:11,610 INFO [ServerInfo] OS-System: Linux 2.6.20.21-071108a,amd64
| 22:38:12,201 INFO [Server] Core system initialized
| 22:38:15,191 INFO [WebService] Using RMI server codebase: http://ponte-net.de:8083/
| 22:38:15,213 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
| 22:38:18,477 INFO [SocketServerInvoker] Invoker started for locator: InvokerLocator [socket://87.106.25.52:3873/]
| 22:38:25,282 INFO [ServiceEndpointManager] WebServices: jbossws-1.0.3.SP1 (date=200609291417)
| 22:38:26,013 INFO [SnmpAgentService] SNMP agent going active
| 22:38:26,987 INFO [CorbaNamingService] Naming: [IOR:000000000000002B49444C3A6F6D672E6F72672F436F734E616D696E672F4E616D696E67436F6E74657874
| 4578743A312E3000000000000200000000000000E8000102000000000D38372E3130362E32352E353200000DC8000000114A426F73732F4E616D696E672F726F6F740000000
| 00000050000000000000008000000004A414300000000010000001C000000000001000100000001050100010001010900000001050100010000002100000060000000000000
| 00010000000000000024000000200000007E00000000000000010000000D38372E3130362E32352E353200000DC900400000000000000000001004010008060667810201010
| 100000000000000000000000000000000000000000000002000000004000000000000001F000000040000000300000001000000200000000000000002000000200000000400
| 0000000000001F0000000400000003]
| 22:57:23,646 ERROR [CorbaTransactionService] Cannot bind transaction factory in CORBA naming service:
| org.omg.CORBA.TRANSIENT: Retries exceeded, couldn't reconnect to 87.106.25.52:3528 vmcid: 0x0 minor code: 0 completed: No
| at org.jacorb.orb.iiop.ClientIIOPConnection.connect(ClientIIOPConnection.java:219)
| at org.jacorb.orb.giop.GIOPConnection.sendMessage(GIOPConnection.java:839)
| at org.jacorb.orb.giop.GIOPConnection.sendRequest(GIOPConnection.java:809)
| at org.jacorb.orb.giop.ClientConnection.sendRequest(ClientConnection.java:309)
| at org.jacorb.orb.giop.ClientConnection.sendRequest(ClientConnection.java:289)
| at org.jacorb.orb.Delegate.invoke_internal(Delegate.java:919)
| at org.jacorb.orb.Delegate.invoke(Delegate.java:868)
| at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)
| at org.omg.CosNaming._NamingContextExtStub.to_name(_NamingContextExtStub.java:79)
| at org.jboss.tm.iiop.CorbaTransactionService.startService(CorbaTransactionService.java:143)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor2.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:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at org.jboss.system.ServiceController.start(ServiceController.java:435)
| at org.jboss.system.ServiceController.start(ServiceController.java:435)
| at sun.reflect.GeneratedMethodAccessor9.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:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor19.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:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| 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:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy8.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor2.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:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor9.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:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| 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:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| 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:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:490)
| at java.lang.Thread.run(Thread.java:595)
| 22:57:23,653 WARN [ServiceController] Problem starting service jboss:service=CorbaTransaction
| java.lang.Exception: Cannot bind transaction factory in CORBA naming service:
| org.omg.CORBA.TRANSIENT: Retries exceeded, couldn't reconnect to 87.106.25.52:3528 vmcid: 0x0 minor code: 0 completed: No
| at org.jboss.tm.iiop.CorbaTransactionService.startService(CorbaTransactionService.java:156)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor2.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:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at org.jboss.system.ServiceController.start(ServiceController.java:435)
| at org.jboss.system.ServiceController.start(ServiceController.java:435)
| at sun.reflect.GeneratedMethodAccessor9.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:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor19.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:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| 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:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy8.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor2.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:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor9.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:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| 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:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| 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:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:490)
| at java.lang.Thread.run(Thread.java:595)
| 22:57:24,745 INFO [Embedded] Catalina naming disabled
| 22:57:24,806 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
| 22:57:24,808 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
| 22:57:25,303 INFO [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
| 22:57:25,305 INFO [Catalina] Initialization processed in 497 ms
| 22:57:25,305 INFO [StandardService] Starting service jboss.web
| 22:57:25,310 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.20
| 22:57:25,380 INFO [StandardHost] XML validation disabled
| 22:57:25,766 INFO [Catalina] Server startup in 461 ms
| 22:57:25,907 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
| 22:57:26,215 INFO [WebappLoader] Dual registration of jndi stream handler: factory already defined
| 22:57:26,969 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
| 22:57:27,163 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/deploy/tmp31679jbossws-context-exp.war/
| 22:57:27,381 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
| 22:57:29,192 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
| 22:57:30,049 INFO [MailService] Mail Service bound to java:/Mail
| 22:57:30,208 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
| 22:57:30,299 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
| 22:57:30,393 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
| 22:57:30,421 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
| 22:57:30,491 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
| 22:57:30,520 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
| 22:57:30,561 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
| 22:57:30,571 INFO [QuartzResourceAdapter] start quartz!!!
| 22:57:30,638 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
| 22:57:30,664 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
| 22:57:30,667 INFO [RAMJobStore] RAMJobStore initialized.
| 22:57:30,667 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package
| : 'quartz.properties'
| 22:57:30,668 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
| 22:57:30,668 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
| 22:57:31,901 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'ja
| va:DefaultDS'
| 22:57:32,219 INFO [A] Bound to JNDI name: queue/A
| 22:57:32,221 INFO [B] Bound to JNDI name: queue/B
| 22:57:32,223 INFO [C] Bound to JNDI name: queue/C
| 22:57:32,225 INFO [D] Bound to JNDI name: queue/D
| 22:57:32,227 INFO [ex] Bound to JNDI name: queue/ex
| 22:57:32,247 INFO [testTopic] Bound to JNDI name: topic/testTopic
| 22:57:32,250 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
| 22:57:32,252 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
| 22:57:32,256 INFO [testQueue] Bound to JNDI name: queue/testQueue
| 22:57:32,308 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
| 22:57:32,347 INFO [DLQ] Bound to JNDI name: queue/DLQ
| 22:57:32,534 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JND
| I name 'java:JmsXA'
| 22:57:32,639 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=MySqlDS' to JNDI name 'java
| :MySqlDS'
| 22:57:32,719 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
| 22:57:32,957 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
|
| --- MBeans waiting for other MBeans ---
| ObjectName: jboss:service=CorbaTransaction
| State: FAILED
| Reason: java.lang.Exception: Cannot bind transaction factory in CORBA naming service:
| org.omg.CORBA.TRANSIENT: Retries exceeded, couldn't reconnect to 87.106.25.52:3528 vmcid: 0x0 minor code: 0 completed: No
| I Depend On:
| jboss:service=TransactionManager
| jboss:service=CorbaORB
| jboss:service=CorbaNaming
|
| --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
| ObjectName: jboss:service=CorbaTransaction
| State: FAILED
| Reason: java.lang.Exception: Cannot bind transaction factory in CORBA naming service:
| org.omg.CORBA.TRANSIENT: Retries exceeded, couldn't reconnect to 87.106.25.52:3528 vmcid: 0x0 minor code: 0 completed: No
| I Depend On:
| jboss:service=TransactionManager
| jboss:service=CorbaORB
| jboss:service=CorbaNaming
|
| 22:57:33,029 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
| 22:57:33,101 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
| 22:57:33,176 INFO [JkMain] Jk running ID=0 time=0/93 config=null
| 22:57:33,203 INFO [Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)] Started in 19m:21s:903ms
|
Have you any idea to solve that problem?
Manu
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127316#4127316
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127316
18 years, 2 months
[JBoss jBPM] - Re: handling bulk amounts of processinstances; transaction p
by macd
I'm using an Oracle9 database, set up with the jbpm-3.2.2 database scripts (including indexes).
I tryed several scenario's
1) create, signal and save every instance in it's own jbpmContext(transaction).
This actually works, buts costs the lot of 4 hours time.
2) creating batches of instances (400 at a time) within a single jbpmContext
and signalling instances in batches (100 at a time) withing a single jbpmContext.
This worked for 100, 500 and 1000 instances, but when trying 5000 it broke while signalling:
| 2008-01-28 09:31:58,156 WARN [logging.arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.BasicAction_58] - Abort of action id -3f57ce66:556:479d8cb7:86a invoked while multiple threads active within it.
| 2008-01-28 09:31:58,156 WARN [logging.arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.CheckedAction_2] - CheckedAction::check - atomic action -3f57ce66:556:479d8cb7:86a aborting with 1 threads active!
| 2008-01-28 09:31:58,187 WARN [util.JDBCExceptionReporter] SQL Error: 0, SQLState: null
| 2008-01-28 09:31:58,187 ERROR [util.JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57ce66:556:479d8cb7:86a status: ActionStatus.ABORTING >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57ce66:556:479d8cb7:86a status: ActionStatus.ABORTING >)
| 2008-01-28 09:31:58,203 ERROR [STDERR] org.hibernate.exception.GenericJDBCException: Cannot open connection
3) using an asynchronous forEachFork i can succesfully save the main proces, but then the job-executor takes over.
a) When the 1st node coming after the forEachFork is not asynchronous,
it appears all childTokens are created in a single transaction.
b)When the 1st node coming after the forEachFork is asynchronous,
every childToken gets created in it's own transaction.
ad. a)
This works for 100 to 9000 instances, but trying 10.000 instances the test breaks:
2008-02-01 10:01:46,171 WARN [logging.arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.BasicAction_58] - Abort of action id -3f57ce66:6d1:47a2cd67:1f0d invoked while multiple threads active within it.
| 2008-02-01 10:01:46,171 WARN [logging.arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.CheckedAction_2] - CheckedAction::check - atomic action -3f57ce66:6d1:47a2cd67:1f0d aborting with 1 threads active!
| 2008-02-01 10:02:13,562 WARN [logging.arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator_2] TwoPhaseCoordinator.beforeCompletion - failed for null
| org.hibernate.SessionException: Session is closed!
| at org.hibernate.impl.AbstractSessionImpl.errorIfClosed(AbstractSessionImpl.java:49)
| at org.hibernate.impl.SessionImpl.getJDBCContext(SessionImpl.java:1854)
ad.b)
basically it works, but it costs a lot of time (seconds per job) and it doesn't run flawless:
running 10.000 instances (childTokens) as a single job,
some jobs get a transaction exception:
2008-02-05 13:23:19,437 WARN [com.arjuna.ats.arjuna.logging.arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.BasicAction_58] - Abort of action id -3f57fef5:4af:47a851a6:651 invoked while multiple threads active within it.
| 2008-02-05 13:23:19,453 WARN [com.arjuna.ats.arjuna.logging.arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.CheckedAction_2] - CheckedAction::check - atomic action -3f57fef5:4af:47a851a6:651 aborting with 1 threads active!
| 2008-02-05 13:23:19,500 INFO [org.hibernate.jdbc.ConnectionManager] forcing batcher resource cleanup on transaction completion; forgot to close ScrollableResults/Iterator?
| 2008-02-05 13:23:20,281 WARN [org.hibernate.util.JDBCExceptionReporter] SQL Error: 0, SQLState: null
| 2008-02-05 13:23:20,281 ERROR [org.hibernate.util.JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57fef5:4af:47a851a6:651 status: ActionStatus.ABORTED >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57fef5:4af:47a851a6:651 status: ActionStatus.ABORTED >)
| 2008-02-05 13:23:20,390 INFO [org.hibernate.event.def.DefaultLoadEventListener] Error performing load command
| org.hibernate.exception.GenericJDBCException: Cannot open connection
I didn't get this test run to the end, because after executing about 1870 jobs i got a java.lang.OutOfMemoryError.
It appears strange to me that, whatever the scenario, every time it is the transaction that gets an error.
i found http://wiki.jboss.org/wiki/Wiki.jsp?page=TxMultipleThreads
which adresses the logged causes, but i didn't get me any further:
I tried doubling the timeout on the 3rd scenario, but it wasn't successfull.
I can imagine that increasing the timeout may be usefull when using one big transaction to create all instances.
But it doesn't apply to batches or jobs, which are reasonably small and should be on independend transactions.
So how come they do crash?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127310#4127310
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127310
18 years, 2 months