EJB lookup throws error: org.omg.CORBA.MARSHAL: vmcid: SUN minor code: 257 completed: Maybe

rjoshi picture rjoshi · Oct 1, 2009 · Viewed 8.4k times · Source

When my application does EJB lookup using remote interface, I get following exception. It was working fine and in recently build something has changed which broke it.


java.rmi.MarshalException: CORBA MARSHAL 1398079745 Maybe; nested exception is:
        org.omg.CORBA.MARSHAL:   vmcid: SUN  minor code: 257 completed: Maybe
        at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:279)
        at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:205)
        at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:152)
        at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(BCELStubBase.java:225)

Answer

Will Hartung picture Will Hartung · Oct 1, 2009

Most likely this is a version discrepancy between the client and the server. For example, you recompiled the client code and the shared classes for the client, but they differ from the same classes on the server.