users@glassfish.java.net

gfv2ur2 both b03/b04 source -- message queue exceptions

From: <glassfish_at_javadesktop.org>
Date: Sat, 17 May 2008 15:47:05 PDT

just for fun/review/learning i have agn gone thru all the examples in the nb41/j2ee1.4 tutorial code base --- it included the PDF -- "The J2EE 1.4 Tutorial for NetBeans IDE 4.1 -- For Sun Java System Application Server Platform Edition 8.1" with a date of May 18, 2005; this code tree/server made use of pointbase -- not javadb/derby.

there were a bunch of bugs i managed to fix -- to get every thing working great -- but ONE new problem has surfaced.

the ejb/simplemessage project -- uses a simple java client to access the JMS api.

i never had any problems i thought in the past -- so to verify -- i today tested this project with nb41/as81 -- and with nb61/as81 --combination -- and both combinations work seemingly perfect.

but when using the code with nb61/gfv2ur2 i get exceptions -- none show up in the server log -- but i have not tweaked any logging levels at this time.

the exception only show up in the java client -- the same client code that runs fine when using the as81 server.

the setup dir -- for containg sun-resources file -- ie. sun-resources.xml, and 2 jms config files with .sun-resource extension -- result in errors indicated between the nb messages :
Start registering the project's server resources
--- error messages --
Finished registering server resources

with nb61, but not with nb41 -- incidental info.

i get seeming same errors with or without optional jvm args of:
-Dorg.omg.CORBA.ORBInitialPort=3700 -Dorg.omg.CORBA.ORBInitialHost=localhost

following is the runtime exception stack:

any insight on resolving this would be appreciated;

i have manually configured the jms resources into the gfv2ur2 server -- and compared them to the as81 server -- they appear identical -- as far as i can tell.

stack info:

init:
deps-jar:
init:
deps-jar:
compile:
library-inclusion-in-archive:
Building jar: C:\Sun\j2eetutorial14NB4_1gfv2ur2nb61\j2eetutorial14\examples\ejb\simplemessage\SimpleMessage\dist\SimpleMessage.jar
dist:
compile:
run:
May 17, 2008 3:27:03 PM com.sun.corba.ee.spi.logging.LogWrapperBase doLog
INFO: "IOP00710299: (INTERNAL) Successfully created IIOP listener on the specified host/port: all interfaces/3161"
May 17, 2008 3:27:03 PM com.sun.corba.ee.impl.encoding.CDRInputStream_1_0 read_value
WARNING: "IOP00810211: (MARSHAL) Exception from readValue on ValueHandler in CDRInputStream"
org.omg.CORBA.MARSHAL: vmcid: SUN minor code: 211 completed: Maybe
        at com.sun.corba.ee.impl.logging.ORBUtilSystemException.valuehandlerReadException(ORBUtilSystemException.java:6731)
        at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1045)
        at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:879)
        at com.sun.corba.ee.impl.encoding.CDRInputStream.read_value(CDRInputStream.java:255)
        at com.sun.corba.ee.impl.corba.TCUtility.unmarshalIn(TCUtility.java:269)
        at com.sun.corba.ee.impl.corba.AnyImpl.read_value(AnyImpl.java:559)
        at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_any(CDRInputStream_1_0.java:739)
        at com.sun.corba.ee.impl.encoding.CDRInputStream.read_any(CDRInputStream.java:226)
        at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.readAny(Util.java:422)
        at javax.rmi.CORBA.Util.readAny(Util.java:92)
        at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl$10.read(DynamicMethodMarshallerImpl.java:251)
        at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl.readResult(DynamicMethodMarshallerImpl.java:424)
        at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:133)
        at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(Unknown Source)
        at com.sun.enterprise.naming._SerialContextProvider_DynamicStub.lookup(_SerialContextProvider_DynamicStub.java)
        at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:290)
        at javax.naming.InitialContext.lookup(InitialContext.java:392)
        at com.sun.enterprise.naming.factory.ConnectorObjectFactory.getObjectInstance(ConnectorObjectFactory.java:62)
        at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
        at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:304)
        at javax.naming.InitialContext.lookup(InitialContext.java:392)
        at simplemessageclient.Main.main(Main.java:73)
Caused by: java.io.IOException: Mismatched serialization UIDs : Source (Rep. IDRMI:com.sun.enterprise.deployment.ConnectorDescriptor:3766355A7E731D05:1C886CB59213196B) = 1C886CB59213196B whereas Target (Rep. ID RMI:com.sun.enterprise.deployment.ConnectorDescriptor:02C74FFA6C02EDE4:B379ED3E9C5AAF20) = B379ED3E9C5AAF20
        at com.sun.corba.ee.impl.util.RepositoryId.useFullValueDescription(RepositoryId.java:576)
        at com.sun.corba.ee.impl.io.ValueHandlerImpl.useFullValueDescription(ValueHandlerImpl.java:391)
        at com.sun.corba.ee.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:397)
        at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.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(CDRInputStream_1_0.java:1034)
        ... 20 more
May 17, 2008 3:27:03 PM com.sun.enterprise.naming.SerialContext lookup
SEVERE: NAM0004: Exception during name lookup : {0}
java.rmi.MarshalException: CORBA MARSHAL 1398079699 Maybe; nested exception is:
        org.omg.CORBA.MARSHAL: vmcid: SUN minor code: 211 completed: Maybe
        at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:197)
        at javax.rmi.CORBA.Util.mapSystemException(Util.java:67)
        at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:142)
        at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(Unknown Source)
        at com.sun.enterprise.naming._SerialContextProvider_DynamicStub.lookup(_SerialContextProvider_DynamicStub.java)
        at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:290)
        at javax.naming.InitialContext.lookup(InitialContext.java:392)
        at com.sun.enterprise.naming.factory.ConnectorObjectFactory.getObjectInstance(ConnectorObjectFactory.java:62)
        at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
        at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:304)
        at javax.naming.InitialContext.lookup(InitialContext.java:392)
        at simplemessageclient.Main.main(Main.java:73)
Caused by: org.omg.CORBA.MARSHAL: vmcid: SUN minor code: 211 completed: Maybe
        at com.sun.corba.ee.impl.logging.ORBUtilSystemException.valuehandlerReadException(ORBUtilSystemException.java:6731)
        at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1045)
        at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:879)
        at com.sun.corba.ee.impl.encoding.CDRInputStream.read_value(CDRInputStream.java:255)
        at com.sun.corba.ee.impl.corba.TCUtility.unmarshalIn(TCUtility.java:269)
        at com.sun.corba.ee.impl.corba.AnyImpl.read_value(AnyImpl.java:559)
        at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_any(CDRInputStream_1_0.java:739)
        at com.sun.corba.ee.impl.encoding.CDRInputStream.read_any(CDRInputStream.java:226)
        at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.readAny(Util.java:422)
        at javax.rmi.CORBA.Util.readAny(Util.java:92)
        at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl$10.read(DynamicMethodMarshallerImpl.java:251)
        at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl.readResult(DynamicMethodMarshallerImpl.java:424)
        at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:133)
        ... 9 more
Caused by: java.io.IOException: Mismatched serialization UIDs : Source (Rep. IDRMI:com.sun.enterprise.deployment.ConnectorDescriptor:3766355A7E731D05:1C886CB59213196B) = 1C886CB59213196B whereas Target (Rep. ID RMI:com.sun.enterprise.deployment.ConnectorDescriptor:02C74FFA6C02EDE4:B379ED3E9C5AAF20) = B379ED3E9C5AAF20
        at com.sun.corba.ee.impl.util.RepositoryId.useFullValueDescription(RepositoryId.java:576)
        at com.sun.corba.ee.impl.io.ValueHandlerImpl.useFullValueDescription(ValueHandlerImpl.java:391)
        at com.sun.corba.ee.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:397)
        at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.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(CDRInputStream_1_0.java:1034)
        ... 20 more
May 17, 2008 3:27:03 PM com.sun.enterprise.naming.SerialContext lookup
SEVERE: NAM0004: Exception during name lookup : {0}
com.sun.enterprise.connectors.ConnectorRuntimeException: Failed to look up ConnectorDescriptor from JNDI
        at com.sun.enterprise.naming.factory.ConnectorObjectFactory.getObjectInstance(ConnectorObjectFactory.java:68)
        at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
        at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:304)
JNDI lookup failed: javax.naming.CommunicationException: serial context communication ex [Root exception is com.sun.enterprise.connectors.ConnectorRuntimeException: Failed to look up ConnectorDescriptor from JNDI]
        at javax.naming.InitialContext.lookup(InitialContext.java:392)
        at simplemessageclient.Main.main(Main.java:73)
Java Result: 1
BUILD SUCCESSFUL (total time: 2 seconds)
[Message sent by forum member 'emiddio' (emiddio)]

http://forums.java.net/jive/thread.jspa?messageID=275031