I have a JMS queue connection factory and queue deployed on Sun Application Server 8.2 that I am trying to access through jndi. I am able to look up the queues using JNDI when I run a command line test program. It sets the context using my jndi.properties file.

java.naming.factory.initial=com.sun.appserv.naming.S1ASCtxFactory
java.naming.provider.url=iiop://smosi-1:3360
b2bconnection.queueConnectionFactory=jms/B2BintegrationMDBDestinationFactory
b2bconnection.queueName=jms/B2BintegrationMDBBean



When I run the code from within another application server called pramati, I get the stack trace printed out below. Pramati is the application server from where I'm trying to access the JMS qeueus located on sun application server. It looks like a marshalling error. I did some digging around, and found out that I am able to read all of the objects from JNDI ( i.e. jms, jdbc, ejb, etc ) except for a mysterious context called __SYSTEM that is being used by the java libraries to load the jmsra resource adapter. This context can be loaded from the command line, but not within the pramati application server. Any attempt to load it gives the error below... If I can solve this, I'll be the star of the development team for sure. PLEASE help me if you can. Thanks.

Other things to note are that both servers have been configured to use the same JDK version, which is 1.4.2_12.




Aug 16, 2006 4:42:32 PM com.sun.corba.ee.impl.encoding.CDRInputStream_1_0 read_v
alue
WARNING: "IOP00810210: (MARSHAL) Error from readValue on ValueHandler in CDRInpu
tStream"
org.omg.CORBA.MARSHAL: vmcid: SUN minor code: 210 completed: Maybe
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.valuehandlerRead
Error(ORBUtilSystemException.java:6646)
at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInput
Stream_1_0.java:1048)
at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInput
Stream_1_0.java:879)
at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_abstract_inter
face(CDRInputStream_1_0.java:873)
at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_abstract_inter
face(CDRInputStream_1_0.java:863)
at com.sun.corba.ee.impl.encoding.CDRInputStream.read_abstract_interface
(CDRInputStream.java:275)
at com.sun.corba.ee.impl.io.IIOPInputStream.readObjectDelegate(IIOPInput
Stream.java:363)
at com.sun.corba.ee.impl.io.IIOPInputStream.readObjectOverride(IIOPInput
Stream.java:526)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:333)
at java.util.Hashtable.readObject(Hashtable.java:848)
at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.corba.ee.impl.io.IIOPInputStream.invokeObjectReader(IIOPInput
Stream.java:1694)
at com.sun.corba.ee.impl.io.IIOPInputStream.inputObject(IIOPInputStream.
java:1212)
at com.sun.corba.ee.impl.io.IIOPInputStream.simpleReadObject(IIOPInputSt
ream.java:400)
at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValueInternal(ValueHand
lerImpl.java:330)
at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.
java:296)
at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInput
Stream_1_0.java:1034)
at com.sun.corba.ee.impl.encoding.CDRInputStream.read_value(CDRInputStre
am.java:259)
at com.sun.corba.ee.impl.io.IIOPInputStream.inputObjectField(IIOPInputSt
ream.java:1989)
at com.sun.corba.ee.impl.io.IIOPInputStream.inputClassFields(IIOPInputSt
ream.java:2213)
at com.sun.corba.ee.impl.io.IIOPInputStream.inputObject(IIOPInputStream.
java:1221)
at com.sun.corba.ee.impl.io.IIOPInputStream.simpleReadObject(IIOPInputSt
ream.java:400)
at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValueInternal(ValueHand
lerImpl.java:330)
at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.
java:296)
at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInput
Stream_1_0.java:1034)
at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInput
Stream_1_0.java:879)
at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_abstract_inter
face(CDRInputStream_1_0.java:873)
at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_abstract_inter
face(CDRInputStream_1_0.java:863)
at com.sun.corba.ee.impl.encoding.CDRInputStream.read_abstract_interface
(CDRInputStream.java:275)
at com.sun.corba.ee.impl.io.IIOPInputStream.readObjectDelegate(IIOPInput
Stream.java:363)
at com.sun.corba.ee.impl.io.IIOPInputStream.readObjectOverride(IIOPInput
Stream.java:526)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:333)
at java.util.Hashtable.readObject(Hashtable.java:848)
at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.corba.ee.impl.io.IIOPInputStream.invokeObjectReader(IIOPInput
Stream.java:1694)
at com.sun.corba.ee.impl.io.IIOPInputStream.inputObject(IIOPInputStream.
java:1212)
at com.sun.corba.ee.impl.io.IIOPInputStream.simpleReadObject(IIOPInputSt
ream.java:400)
at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValueInternal(ValueHand
lerImpl.java:330)
at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.
java:296)
at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInput
Stream_1_0.java:1034)
at com.sun.corba.ee.impl.encoding.CDRInputStream.read_value(CDRInputStre
am.java:259)
at com.sun.corba.ee.impl.io.IIOPInputStream.inputObjectField(IIOPInputSt
ream.java:1989)
at com.sun.corba.ee.impl.io.IIOPInputStream.inputClassFields(IIOPInputSt
ream.java:2213)
at com.sun.corba.ee.impl.io.IIOPInputStream.inputObject(IIOPInputStream.
java:1221)
at com.sun.corba.ee.impl.io.IIOPInputStream.simpleReadObject(IIOPInputSt
ream.java:400)
at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValueInternal(ValueHand
lerImpl.java:330)
at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.
java:296)
at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInput
Stream_1_0.java:1034)
at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInput
Stream_1_0.java:879)
at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_abstract_inter
face(CDRInputStream_1_0.java:873)
at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_abstract_inter
face(CDRInputStream_1_0.java:863)
at com.sun.corba.ee.impl.encoding.CDRInputStream.read_abstract_interface
(CDRInputStream.java:275)
at com.sun.corba.ee.impl.io.IIOPInputStream.readObjectDelegate(IIOPInput
Stream.java:363)
at com.sun.corba.ee.impl.io.IIOPInputStream.readObjectOverride(IIOPInput
Stream.java:526)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:333)
at java.util.Hashtable.readObject(Hashtable.java:848)
at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.corba.ee.impl.io.IIOPInputStream.invokeObjectReader(IIOPInput
Stream.java:1694)
at com.sun.corba.ee.impl.io.IIOPInputStream.inputObject(IIOPInputStream.
java:1212)
at com.sun.corba.ee.impl.io.IIOPInputStream.simpleReadObject(IIOPInputSt
ream.java:400)
at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValueInternal(ValueHand
lerImpl.java:330)
at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.
java:296)
at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInput
Stream_1_0.java:1034)
at com.sun.corba.ee.impl.encoding.CDRInputStream.read_value(CDRInputStre
am.java:259)
at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl$14
.read(DynamicMethodMarshallerImpl.java:333)
at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl.re
adResult(DynamicMethodMarshallerImpl.java:424)
at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invo
ke(StubInvocationHandlerImpl.java:133)
at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(Unkno
wn Source)
at com.sun.enterprise.naming._SerialContextProvider_DynamicStub.list(_Se
rialContextProvider_DynamicStub.java)
at com.sun.enterprise.naming.SerialContext.list(SerialContext.java:478)
at javax.naming.InitialContext.list(InitialContext.java:395)
at com.sun.b2b.connection.B2BConnector.printContext(B2BConnector.java:72