Problem shutting down server instances
vanithap Apr 22, 2010 4:25 PMI have 2 server instances on jboss 5.1.0 node1 and node2.
I start node1 with the command -c node1 -b 127.0.0.1 -Djboss.messaging.ServerPeerID=1 -Djboss.service.binding.set=ports-default
I start node2 with the command -c node2 -b 127.0.0.1 -Djboss.messaging.ServerPeerID=2 -Djboss.service.binding.set=ports-01
I have deployed 2 different esbs on node1 and node2.
I start the server instances in the following order node1 and node2.
When the files come in thro email, ftp will be picked by queues on node1.
esb on node 2 will pick up the files from node1 and process it.
If I shut down node1 first and node2 second, I get the following exceptions
It shuts down node1 first but I see the log on node2 as follows
15:36:40,704 INFO [JmsCourier] JMS error. Attempting JMS reconnect. javax.jms.IllegalStateException : The object is closed at org.jboss.jms.client.container.ClosedInterceptor.invoke( ClosedInterceptor.java:157) at org.jboss.aop.advice.PerInstanceInterceptor.invoke( PerInstanceInterceptor.java:86) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext( MethodInvocation.java:102) at org.jboss.jms.client.delegate.ClientConsumerDelegate.receive(ClientConsumerDelegate.java) at org.jboss.jms.client.JBossMessageConsumer.receive( JBossMessageConsumer.java:86) at sun.reflect.GeneratedMethodAccessor407.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke( Method.java:597) at org.jboss.internal.soa.esb.rosetta.pooling.JmsSession$ExceptionHandler.invoke( JmsSession.java:479) at $Proxy363.receive(Unknown Source) at org.jboss.internal.soa.esb.couriers.JmsCourier.internalPickupPayload( JmsCourier.java:504) at org.jboss.internal.soa.esb.couriers.JmsCourier.pickupPayload( JmsCourier.java:465) at org.jboss.internal.soa.esb.couriers.JmsCourier.pickup( JmsCourier.java:458) at org.jboss.internal.soa.esb.couriers.TwoWayCourierImpl.pickup( TwoWayCourierImpl.java:228) at org.jboss.internal.soa.esb.couriers.TwoWayCourierImpl.pickup( TwoWayCourierImpl.java:204) at org.jboss.soa.esb.listeners.message.MessageAwareListener.waitForEventAndProcess( MessageAwareListener.java:297) at org.jboss.soa.esb.listeners.message.MessageAwareListener.doRun( MessageAwareListener.java:253) at org.jboss.soa.esb.listeners.lifecycle.AbstractThreadedManagedLifecycle.run( AbstractThreadedManagedLifecycle.java:115) at java.lang.Thread.run( Thread.java:619) Now when I shut down node 2, I get the following error Exception in thread "main" javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:1099 [Root exception is javax.naming.CommunicationException: Failed to connect to server localhost/127.0.0.1:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost/127.0.0.1:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]] at org.jnp.interfaces.NamingContext.checkRef( NamingContext.java:1763) at org.jnp.interfaces.NamingContext.lookup( NamingContext.java:693) at org.jnp.interfaces.NamingContext.lookup( NamingContext.java:686) at javax.naming.InitialContext.lookup( InitialContext.java:392) at org.jboss.Shutdown.main( Shutdown.java:219) Caused by: javax.naming.CommunicationException: Failed to connect to server localhost/127.0.0.1:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost/127.0.0.1:1099 [Root exception is java.net.ConnectException: Connection refused: connect]] at org.jnp.interfaces.NamingContext.getServer( NamingContext.java:335) at org.jnp.interfaces.NamingContext.checkRef( NamingContext.java:1734) ... 4 more Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server localhost/127.0.0.1:1099 [Root exception is java.net.ConnectException: Connection refused: connect] at org.jnp.interfaces.NamingContext.getServer( NamingContext.java:305) ... 5 more
If I shut down node2 first and node1 second, I get the following exceptions
it shuts down node1 first and the log on node2 shows
15:36:40,704 INFO [JmsCourier] JMS error. Attempting JMS reconnect. javax.jms.IllegalStateException : The object is closed at org.jboss.jms.client.container.ClosedInterceptor.invoke( ClosedInterceptor.java:157) at org.jboss.aop.advice.PerInstanceInterceptor.invoke( PerInstanceInterceptor.java:86) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext( MethodInvocation.java:102) at org.jboss.jms.client.delegate.ClientConsumerDelegate.receive(ClientConsumerDelegate.java) at org.jboss.jms.client.JBossMessageConsumer.receive( JBossMessageConsumer.java:86) at sun.reflect.GeneratedMethodAccessor407.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke( Method.java:597) at org.jboss.internal.soa.esb.rosetta.pooling.JmsSession$ExceptionHandler.invoke( JmsSession.java:479) at $Proxy363.receive(Unknown Source) at org.jboss.internal.soa.esb.couriers.JmsCourier.internalPickupPayload( JmsCourier.java:504) at org.jboss.internal.soa.esb.couriers.JmsCourier.pickupPayload( JmsCourier.java:465) at org.jboss.internal.soa.esb.couriers.JmsCourier.pickup( JmsCourier.java:458) at org.jboss.internal.soa.esb.couriers.TwoWayCourierImpl.pickup( TwoWayCourierImpl.java:228) at org.jboss.internal.soa.esb.couriers.TwoWayCourierImpl.pickup( TwoWayCourierImpl.java:204) at org.jboss.soa.esb.listeners.message.MessageAwareListener.waitForEventAndProcess( MessageAwareListener.java:297) at org.jboss.soa.esb.listeners.message.MessageAwareListener.doRun( MessageAwareListener.java:253) at org.jboss.soa.esb.listeners.lifecycle.AbstractThreadedManagedLifecycle.run( AbstractThreadedManagedLifecycle.java:115) at java.lang.Thread.run( Thread.java:619) Could someone help me with this issue Thanks Vanitha