users@glassfish.java.net

Re: JUnit Test for EJB Client Failing

From: <glassfish_at_javadesktop.org>
Date: Tue, 25 Mar 2008 14:44:12 PST

Ken,

   First, thank you so much for guiding me through this experience. Once I read your explainnation I knew what I had to do. I looked at your link and tried to follow it the best I could.

  Once I changed my JNDI Name to the one declared within the EJB, I felt it was a matter of time before I got the right connection.
  
  Once I referenced the correct jar files on the glassfish server many of my missing class issues were resolved.

  I even re-read the FAQ and tried to follow it. While I am making a connection, I am still failing.

  The top exception is:

[code]
javax.ejb.EJBException: nested exception is: java.rmi.MarshalException: CORBA MARSHAL 1398079699 Maybe; nested exception is:
        org.omg.CORBA.MARSHAL: vmcid: SUN minor code: 211 completed: Maybe
[/code]

When I get down to the middle of the stacktrace I see something that looks like my application error.

  [code]
Caused by: java.io.IOException: Mismatched serialization UIDs : Source (Rep. IDRMI:jtdi.cm.ejb.bean.entity.JtdiLocation:15E69BAC4F660D68:43E80A394980C329) = 43E80A394980C329 whereas Target (Rep. ID RMI:jtdi.cm.ejb.bean.entity.JtdiLocation:E869DD6F7EA5B01A:799B3362171DD95C) = 799B3362171DD95C
        at com.sun.corba.ee.impl.util.RepositoryId.useFullValueDescription(RepositoryId.java:650)
        at com.sun.corba.ee.impl.io.ValueHandlerImpl.useFullValueDescription(ValueHandlerImpl.java:420)
        at com.sun.corba.ee.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:419)
        at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:362)
        at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:328)
        at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.readRMIIIOPValueType(CDRInputStream_1_0.java:966)
        ... 58 more
  [/code]

  Any suggestions would be appreciated.......

Russ
[Message sent by forum member 'russ205' (russ205)]

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