Hello Everybody
I am facing very big issue in Prod environment(SUSE Linux) when we deploy our application in a machine(acting as DHCP) which
have two LAN
cards.
Our application is built on J2SDK.1.4.2 with
JBoss Messaging(jboss-messaging-1.0.1.GA)
we have tested our application well in terms of messaging also.
I will just explain the scenario
MachineA - machine with LAN Card-A,IP Address-172.19.6.6
MachineB(acting as DHCP) - machine with LAN Card-A,IP Address-172.19.6.7 and LAN Card-B,IP Address-10.0.18.101
MachineC - machine with LAN Card-B,IP Address-10.0.18.102
All the machine has got SUSE Linux
Messaging should flow from MachineB to MachineA and vice versa
Messaging should flow from MachineB to MachineC and vice versa
But any point of time , MachineC cannot communicate directly to MachineA.It can be only thru MachineB
I have JBoss Messaging Server running in MachineA and MachineB alone.
I have also specified the following below entries.I have also changed the IP address respective to thier JBoss Messaging Server
in the below entries
Config details
==============
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming

rg.jnp.interfaces
java.naming.provider.url=jnp://127.0.0.1:1099
All topic related configurations are done already and messaging flows cleanly when tested with
machine having single LAN
cards Now MachineB(with Two LAN Card) wants to receive the message from MachineA
all config details specified above are done duly at MachineB in order to connect with JBoss Messaging server running on MachineA
and also tested when MachineB has single LAN card.
when i start the receiver at MachineB(With two LAN card) , i get exception at receiver side.
I have attached the logs along with the exception for your reference .
Following is the information i got when i execute "ifconfig" in SUSE Linux:
starahdsat:/opt/test # ifconfig
eth0 Link encap:Ethernet HWaddr 00:19

B:2F:24:F9
inet addr:10.0.18.101 Bcast:10.0.18.255 Mask:255.255.255.0
inet6 addr: fe80::219

bff:fe2f:24f9/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:7876 errors:0 dropped:0 overruns:0 frame:0
TX packets:15737 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:516182 (504.0 Kb) TX bytes:23280180 (22.2 Mb)
Interrupt:11
eth1 Link encap:Ethernet HWaddr 00:80:C8:04:6E:39
inet addr:172.19.6.7 Bcast:172.19.6.255 Mask:255.255.255.0
inet6 addr: fe80::280:c8ff:fe04:6e39/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:9697 errors:0 dropped:0 overruns:0 frame:0
TX packets:1598 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:860343 (840.1 Kb) TX bytes:250335 (244.4 Kb)
Interrupt:10 Base address:0xbc00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:373 errors:0 dropped:0 overruns:0 frame:0
TX packets:373 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:42085 (41.0 Kb) TX bytes:42085 (41.0 Kb)
Exception
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=fileName<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading
string with utfSize=31 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString:

ulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=methodName
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=methodName<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=6 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString:

ulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=declaringClass
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=declaringClass<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=56 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString:

ulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 objectFromDescription::reading new definition
DEBUG 2007-Apr-09 03:20:17 Reading object for id=16 classLoader=sun.misc.Launcher$AppClassLoader@542e4b1b className = java.lang.StackTraceElement
DEBUG 2007-Apr-09 03:20:17 defaultRead::class java.lang.StackTraceElement contains 1 slots
DEBUG 2007-Apr-09 03:20:17 defaultRead::slot[0]=java.lang.StackTraceElement
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=lineNumber
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=fileName
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=fileName<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=18 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString:

ulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=methodName
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=methodName<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=6 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString:

ulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=declaringClass
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=declaringClass<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=32 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString:

ulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 objectFromDescription::reading new definition
DEBUG 2007-Apr-09 03:20:17 Reading object for id=20 classLoader=sun.misc.Launcher$AppClassLoader@542e4b1b className = java.lang.StackTraceElement
DEBUG 2007-Apr-09 03:20:17 defaultRead::class java.lang.StackTraceElement contains 1 slots
DEBUG 2007-Apr-09 03:20:17 defaultRead::slot[0]=java.lang.StackTraceElement
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=lineNumber
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=fileName
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=fileName<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=18 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString:

ulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=methodName
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=methodName<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=6 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString:

ulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=declaringClass
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=declaringClass<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=32 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString:

ulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 objectFromDescription::reading new definition
DEBUG 2007-Apr-09 03:20:17 Reading object for id=24 classLoader=sun.misc.Launcher$AppClassLoader@542e4b1b className = java.lang.StackTraceElement
DEBUG 2007-Apr-09 03:20:17 defaultRead::class java.lang.StackTraceElement contains 1 slots
DEBUG 2007-Apr-09 03:20:17 defaultRead::slot[0]=java.lang.StackTraceElement
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=lineNumber
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=fileName
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=fileName<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=17 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString:

ulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=methodName
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=methodName<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=17 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString:

ulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=declaringClass
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=declaringClass<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=48 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString:

ulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 objectFromDescription::reading new definition
DEBUG 2007-Apr-09 03:20:17 Reading object for id=28 classLoader=sun.misc.Launcher$AppClassLoader@542e4b1b className = java.lang.StackTraceElement
DEBUG 2007-Apr-09 03:20:17 defaultRead::class java.lang.StackTraceElement contains 1 slots
DEBUG 2007-Apr-09 03:20:17 defaultRead::slot[0]=java.lang.StackTraceElement
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=lineNumber
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=fileName
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=fileName<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=17 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString:

ulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=methodName
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=methodName<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=5 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString:

ulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=declaringClass
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=declaringClass<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=48 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString:

ulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 objectFromDescription::reading new definition
DEBUG 2007-Apr-09 03:20:17 Reading object for id=32 classLoader=sun.misc.Launcher$AppClassLoader@542e4b1b className = java.lang.StackTraceElement
DEBUG 2007-Apr-09 03:20:17 defaultRead::class java.lang.StackTraceElement contains 1 slots
DEBUG 2007-Apr-09 03:20:17 defaultRead::slot[0]=java.lang.StackTraceElement
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=lineNumber
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=fileName
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=fileName<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=17 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString:

ulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=methodName
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=methodName<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=3 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString:

ulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=declaringClass
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=declaringClass<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=48 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString:

ulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=cause
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.Throwable field=cause<<-reading Object
DEBUG 2007-Apr-09 03:20:17 objectFromDescription::reading circular definition reference=3
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=detailMessage
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.Throwable field=detailMessage<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=60 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString:

ulling data to Buffer at pos 0 size= 0
DEBUG 2007-Apr-09 03:20:17 defaultRead::slot[1]=java.lang.Exception
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.Exception
DEBUG 2007-Apr-09 03:20:17 defaultRead::slot[2]=org.jboss.aop.DispatcherConnectException
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=org.jboss.aop.DispatcherConnectException
DEBUG 2007-Apr-09 03:20:17 defaultRead::slot[3]=org.jboss.aop.NotFoundInDispatcherException
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=org.jboss.aop.NotFoundInDispatcherException
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=oid
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=org.jboss.aop.NotFoundInDispatcherException field=oid<<-reading Object
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=isException
DEBUG 2007-Apr-09 03:20:17 FieldName on Read=sessionId
DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=org.jboss.remoting.InvocationResponse field=sessionId<<-reading Object
DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=34 isLong=false
DEBUG 2007-Apr-09 03:20:17 readString:

ulling data to Buffer at pos 0 size= 0
ERROR 2007-Apr-09 03:20:17 Caught Exception:
org.jboss.aop.NotFoundInDispatcherException: Object with oid: -2147483646 was not found in the Dispatcher
at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:85)
at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:127)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:1008)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:857)
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:454)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:541)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:261)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:172)
at org.jboss.remoting.Client.invoke(Client.java:589)
at org.jboss.remoting.Client.invoke(Client.java:581)
at org.jboss.jms.client.delegate.DelegateSupport.invoke(DelegateSupport.java:111)
at org.jboss.jms.client.delegate.ClientConnectionDelegate$createSessionDelegate_6052335267724906805.invokeNext(ClientConnectionDelegate$createSessionDelegate_6052335267724906805.java)
at org.jboss.jms.client.container.StateCreationAspect.handleCreateSessionDelegate(StateCreationAspect.java:101)
at org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect1.invoke(StateCreationAspect1.java)
at org.jboss.jms.client.delegate.ClientConnectionDelegate$createSessionDelegate_6052335267724906805.invokeNext(ClientConnectionDelegate$createSessionDelegate_6052335267724906805.java)
at org.jboss.jms.client.container.ConnectionAspect.handleCreateSessionDelegate(ConnectionAspect.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:130)
at org.jboss.jms.client.delegate.ClientConnectionDelegate$createSessionDelegate_6052335267724906805.invokeNext(ClientConnectionDelegate$createSessionDelegate_6052335267724906805.java)
at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:182)
at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:117)
at org.jboss.jms.client.delegate.ClientConnectionDelegate$createSessionDelegate_6052335267724906805.invokeNext(ClientConnectionDelegate$createSessionDelegate_6052335267724906805.java)
at org.jboss.jms.client.container.ExceptionInterceptor.invoke(ExceptionInterceptor.java:69)
at org.jboss.jms.client.delegate.ClientConnectionDelegate$createSessionDelegate_6052335267724906805.invokeNext(ClientConnectionDelegate$createSessionDelegate_6052335267724906805.java)
at org.jboss.jms.client.container.ClientLogInterceptor.invoke(ClientLogInterceptor.java:107)
at org.jboss.jms.client.delegate.ClientConnectionDelegate$createSessionDelegate_6052335267724906805.invokeNext(ClientConnectionDelegate$createSessionDelegate_6052335267724906805.java)
at org.jboss.jms.client.delegate.ClientConnectionDelegate.createSessionDelegate(ClientConnectionDelegate.java)
at org.jboss.jms.client.JBossConnection.createSessionInternal(JBossConnection.java:255)
at org.jboss.jms.client.JBossConnection.createSession(JBossConnection.java:91)
at com.tcs.retail.framework.messaging.core.consumer.MsgConsumer.consumeProcess(MsgConsumer.java:144)
at com.tcs.retail.framework.messaging.core.receiver.MessageReceiver.createConsumer(MessageReceiver.java:201)
at com.tcs.retail.framework.messaging.core.receiver.MessageReceiver.activateNormalConsumers(MessageReceiver.java:97)
at com.tcs.retail.framework.messaging.core.receiver.MessageReceiver.receive(MessageReceiver.java:45)
at com.tcs.retail.framework.messaging.core.receiver.MessageReceiver.main(MessageReceiver.java:280)
ERROR 2007-Apr-09 03:20:17 MsgConsumer : Exception Occured
Exception Cause --> org.jboss.jms.client.container.ExceptionInterceptor(org.jboss.jms.util.MessagingJMSException: Caught exception)
Exception Cause --> org.jboss.jms.client.delegate.ClientConnectionDelegate$createSessionDelegate_6052335267724906805(org.jboss.jms.util.MessagingJMSException: Caught exception)
Exception Cause --> org.jboss.jms.client.container.ClientLogInterceptor(org.jboss.jms.util.MessagingJMSException: Caught exception)
Exception Cause --> org.jboss.jms.client.delegate.ClientConnectionDelegate$createSessionDelegate_6052335267724906805(org.jboss.jms.util.MessagingJMSException: Caught exception)
Exception Cause --> org.jboss.jms.client.delegate.ClientConnectionDelegate(org.jboss.jms.util.MessagingJMSException: Caught exception)
Exception Cause --> org.jboss.jms.client.JBossConnection(org.jboss.jms.util.MessagingJMSException: Caught exception)
Exception Cause --> org.jboss.jms.client.JBossConnection(org.jboss.jms.util.MessagingJMSException: Caught exception)