JBoss hang at startup when UIL2Service ClientAddress is specified
timwebster99 Mar 15, 2010 5:32 AMHi,
I see from various other threads that to enable remote JMS connections, the ClientAddress attribute must be specified in the uil2-service.xml file. In my case, this file in under the deploy-hasingleton directory (not sure if that makes a difference). I see that -Djava.rmi.server.hostname must also be set in the Jboss startup script. I'm using JBoss 4.2.2 on Ubuntu.
In any case, when I set the ClientAddress attribute to the box's public (NAT) IP address, Jboss hangs on startup. Can anyone help?
Here's the last bit of the log file:
07:16:24,228 DEBUG [BaseLocalProxyFactory] com.jr.eventhandler.engine.callback.queue.CallbackEJB cannot be Bound, doesn't have local and local home interfaces
07:16:24,229 DEBUG [ServiceController] starting service jboss.j2ee:service=EJB,plugin=pool,jndiName=local/com.jr.eventhandler.engine.callback.queue.CallbackEJB@26471365
07:16:24,229 DEBUG [MessageDrivenInstancePool] Starting jboss.j2ee:service=EJB,plugin=pool,jndiName=local/com.jr.eventhandler.engine.callback.queue.CallbackEJB@26471365
07:16:24,229 DEBUG [MessageDrivenInstancePool] Started jboss.j2ee:service=EJB,plugin=pool,jndiName=local/com.jr.eventhandler.engine.callback.queue.CallbackEJB@26471365
07:16:24,229 DEBUG [ServiceController] Starting dependent components for: jboss.j2ee:service=EJB,plugin=pool,jndiName=local/com.jr.eventhandler.engine.callback.queue.CallbackEJB@26471365 dependent components: []
07:16:24,229 DEBUG [ServiceController] starting service jboss.j2ee:service=EJB,plugin=invoker,binding=message-driven-bean,jndiName=local/com.jr.eventhandler.engine.callback.queue.CallbackEJB@26471365
07:16:24,229 DEBUG [JMSContainerInvoker] Starting jboss.j2ee:service=EJB,plugin=invoker,binding=message-driven-bean,jndiName=local/com.jr.eventhandler.engine.callback.queue.CallbackEJB@26471365
07:16:24,229 DEBUG [JMSContainerInvoker] Initializing
07:16:24,229 DEBUG [JMSContainerInvoker] Looking up provider adapter: java:/DefaultJMSProvider
07:16:24,229 DEBUG [JMSContainerInvoker] Provider adapter: org.jboss.jms.jndi.JNDIProviderAdapter@b368f
07:16:24,232 DEBUG [DLQHandler] Creating DLQHandler
07:16:24,491 DEBUG [SpyConnectionFactoryObjectFactory] Extracting SpyConnectionFactory from reference
07:16:24,497 DEBUG [SpyConnectionFactoryObjectFactory] The GenericConnectionFactory is: GenericConnectionFactory[server=org.jboss.mq.il.uil2.UILServerIL@8bca43 connectionProperties={ClientILService=org.jboss.mq.il.uil2.UILClientILService, UIL_TCPNODELAY_KEY=yes, UIL_CHUNKSIZE_KEY=1000000, UIL_CONNECTADDRESS_KEY=null, UIL_CONNECTPORT_KEY=0, UIL_SOTIMEOUT_KEY=120000, UIL_RECEIVE_REPLIES_KEY=No, UIL_ADDRESS_KEY=10.210.104.170, UIL_PORT_KEY=8093, PingPeriod=60000, UIL_BUFFERSIZE_KEY=2048}]
07:16:24,498 DEBUG [DLQHandler] Using factory: org.jboss.mq.SpyXAConnectionFactory@18c10af
07:16:24,519 DEBUG [Connection] Setting the clockDaemon's thread factory
After a while (about 1.5 hours), it's evident that a timeout is occurring: 07:51:03,531 DEBUG [NestedThrowable] org.jboss.util.NestedThrowable.parentTraceEnabled=true 07:51:03,531 DEBUG [NestedThrowable] org.jboss.util.NestedThrowable.nestedTraceEnabled=false 07:51:03,531 DEBUG [NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true 08:25:42,523 DEBUG [DLQHandler] Initialization failed DLQHandler org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable: (java.net.ConnectException: Connection timed out) at org.jboss.mq.SpyJMSException.getAsJMSException(SpyJMSException.java:72) at org.jboss.mq.SpyJMSException.rethrowAsJMSException(SpyJMSException.java:57) at org.jboss.mq.Connection.authenticate(Connection.java:1071) at org.jboss.mq.Connection.<init>(Connection.java:252) at org.jboss.mq.Connection.<init>(Connection.java:323) at org.jboss.mq.SpyConnection.<init>(SpyConnection.java:116) at org.jboss.mq.SpyConnectionFactory.internalCreateConnection(SpyConnectionFactory.java:137) at org.jboss.mq.SpyConnectionFactory.createQueueConnection(SpyConnectionFactory.java:108) at org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:187) at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260) at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:188) at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerStartDelivery(JMSContainerInvoker.java:510) at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:839) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) 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:597) 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)