jQuery in Action, 2nd edition*
The moose likes Distributed Java and the fly likes .UnmarshalException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark ".UnmarshalException" Watch ".UnmarshalException" New topic
Author

.UnmarshalException

Tunc Ozbilgen
Greenhorn

Joined: Jul 03, 2001
Posts: 4
Hi,
I get the message below when I execute my jsp.I use Weblogic Server.While deploying there is no error message.But when I attempt to execute the jsp I got this error..How can I fix This error...

Multiplexer - failedjava.rmi.UnmarshalException: failed to unmarshal class java.util.Vector; nested exception is
:
java.io.InvalidClassException: com.bea.diskart.model.MusteriBilgisiRec2; Local class not compatible: stream
classdesc serialVersionUID=0 local class serialVersionUID=-6180702947725537079
java.rmi.UnmarshalException: failed to unmarshal class java.util.Vector; nested exception is:
java.io.InvalidClassException: com.bea.diskart.model.MusteriBilgisiRec2; Local class not compatible: stream
classdesc serialVersionUID=0 local class serialVersionUID=-6180702947725537079
java.io.InvalidClassException: com.bea.diskart.model.MusteriBilgisiRec2; Local class not compatible: stream clas
sdesc serialVersionUID=0 local class serialVersionUID=-6180702947725537079
at java.io.ObjectStreamClass.validateLocalClass(ObjectStreamClass.java:523)
at java.io.ObjectStreamClass.setClass(ObjectStreamClass.java:567)
at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:936)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:366)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
at java.io.ObjectInputStream.inputArray(ObjectInputStream.java:1142)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:374)
at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2262)
at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
at weblogic.rmi.internal.CBVInputStream.readObjectInternal(CBVInputStream.java:196)
at weblogic.rmi.internal.CBVInputStream.readObject(CBVInputStream.java:187)
at weblogic.rmi.internal.CBVInputStream.readObject(CBVInputStream.java:174)
at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:47)
at weblogic.rmi.internal.BasicRemoteRef.unmarshalReturn(BasicRemoteRef.java:136)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:251)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:225)

Brian Glodde
Ranch Hand

Joined: Jun 27, 2001
Posts: 171
The only time I have seen this type of error is when the RMIC stub and skeleton are mismatched. Have you tried to regenerate those already?
Tunc Ozbilgen
Greenhorn

Joined: Jul 03, 2001
Posts: 4
I solve the problem.I forgot to put a few class while compiling.I put the classes into the jar file.I solved the problem.
Hong Ho
Greenhorn

Joined: Sep 16, 2001
Posts: 11
Hi Guys -
I am also getting the same error, can any one tell me what are all the files are required with compilation to avoid error.
Thanks in advance
Roy Rosales
Greenhorn

Joined: Feb 17, 2004
Posts: 1
Overview: My client jar was missing classes that the server return type was referencing.
I thought I would add to this trail. I was receiving unmarshall exceptions and FVD exception. (see below) On the client side(talking thru an EJB stub to a stateless session bean on the server) I was expecting to receive a JDOM Document. On the server side I was upcasting from a class that extended the JDOM Document as return value to the client. I had thought that the upcast would simply be a document on the client side. I was wrong. The fact that the call was remote did not change the fact that the JDOM Document I was returning from the server was still my extended class type. Thus the FVD error shown below. Basically this means that the client cannot find the forward reference (FullValueDescription) to the more derived class. Pretty clever but a drag to troubleshoot. Hope this helps someone!
CLIENT:
ManagerRemoteHome home = (ManagerRemoteHome)
PortableRemoteObject.narrow(ref,ManagerRemoteHome.class);
ManagerRemote manager = home.create();
Document respDoc = manager.process(new Document(...Request...) ;
SERVER:
public class DerivedDoc extends org.jdom.Document {
...
}
ManagerSession {
public Document process(Document jdoc) {
...
...
return new DerivedDoc(...Response...);// upcast here
//**** the returned document is really a DerivedDoc class
//**** NOT just a jdom Document class
//**** this below is actually correct -->
//**** return new DerivedDoc(...Response...).getJdomDocument();
}
}
Roy
RuntimeException thrown by rmi server: weblogic.corba.cos.codebase.CodeBaseImpl.meta(Ljava.lang.String
org.omg.CORBA.BAD_PARAM: Could not find FVD class for: RMI:sessions.errors.BaseRespDocument:5E24954A679738E0:4F8C6A6D58118691 vmcid: 0x0 minor code: 0 completed: No.
org.omg.CORBA.BAD_PARAM: Could not find FVD class for: RMI:sessions.errors.BaseRespDocument:5E24954A679738E0:4F8C6A6D58118691 vmcid: 0x0 minor code: 0 completed: No
at weblogic.corba.cos.codebase.CodeBaseImpl.meta(Ljava.lang.String Lorg.omg.CORBA.ValueDefPackage.FullValueDescription;(CodeBaseImpl.java:104)
at weblogic.corba.cos.codebase.CodeBaseImpl_WLSkel.invoke(ILweblogic.rmi.spi.InboundRequest;Lweblogic.rmi.spi.OutboundResponse;Ljava.lang.Object Lweblogic.rmi.spi.OutboundResponse;(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(Lweblogic.rmi.extensions.server.RuntimeMethodDescriptor;Lweblogic.rmi.spi.InboundRequest;Lweblogic.rmi.spi.OutboundResponse V(BasicServerRef.java:477)
at weblogic.rmi.internal.BasicServerRef$1.run()Ljava.lang.Object;(BasicServerRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.PrivilegedExceptionAction Ljava.lang.Object;(AuthenticatedSubject.java:353)
at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedExceptionAction Ljava.lang.Object;(SecurityManager.java:144)
at weblogic.rmi.internal.BasicServerRef.handleRequest(Lweblogic.rmi.spi.InboundRequest V(BasicServerRef.java:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute(Lweblogic.kernel.ExecuteThread V(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest V(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:170)
at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread V(Unknown Source)
Oly Diesel
Greenhorn

Joined: Sep 21, 2004
Posts: 5
I still have this problem on Oracle Weblogic 10.3.1.0.

I cannot send the entity bean to my standalone client.
I made sure the Entity Bean class file is the same on the server and the client (in the same lib I put a DTO, when I copy the entity data into the DTO the
client receives all data).
I expect the standalone client to receive a 'detached' entity bean but instead I
receive the error:

------------------------------
<15.08.2009 15:06 Uhr MESZ> <Warning> <RMI> <BEA-080003> <RuntimeException throw
n by rmi server: weblogic.corba.cos.codebase.CodeBaseImpl.meta(Ljava.lang.String
;)
org.omg.CORBA.BAD_PARAM: Could not find FVD class for: RMI:helloworld.persisten
ce.GreetedName:F7278CC14D027040:164D3331F7A9B8B9 vmcid: 0x0 minor code: 0 com
pleted: No.
org.omg.CORBA.BAD_PARAM: Could not find FVD class for: RMI:helloworld.persistenc
e.GreetedName:F7278CC14D027040:164D3331F7A9B8B9 vmcid: 0x0 minor code: 0 comp
leted: No
at weblogic.corba.cos.codebase.CodeBaseImpl.meta(CodeBaseImpl.java:104)
at org.omg.SendingContext._CodeBaseImplBase._invoke(_CodeBaseImplBase.ja
va:94)
at weblogic.corba.idl.CorbaServerRef.invoke(CorbaServerRef.java:249)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:363)
Truncated. see log file for complete stacktrace
>


And on the client:
--------------------------------

javax.ejb.EJBException: CORBA BAD_PARAM 0 No; nested exception is:
org.omg.CORBA.BAD_PARAM: vmcid: 0x0 minor code: 0 completed: No; nested exception is: org.omg.CORBA.BAD_PARAM: vmcid: 0x0 minor code: 0 completed: No
org.omg.CORBA.BAD_PARAM: vmcid: 0x0 minor code: 0 completed: No
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.getSystemException(MessageBase.java:897)
at com.sun.corba.se.impl.protocol.giopmsgheaders.ReplyMessage_1_2.getSystemException(ReplyMessage_1_2.java:99)
at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.getSystemExceptionReply(CorbaMessageMediatorImpl.java:572)
at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.processResponse(CorbaClientRequestDispatcherImpl.java:430)
at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete(CorbaClientRequestDispatcherImpl.java:326)
at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaClientDelegateImpl.java:129)
at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)
at com.sun.org.omg.SendingContext._CodeBaseStub.meta(_CodeBaseStub.java:105)
at com.sun.corba.se.impl.encoding.CachedCodeBase.meta(CachedCodeBase.java:89)
at com.sun.corba.se.impl.io.IIOPInputStream.getOrderedDescriptions(IIOPInputStream.java:1276)
at com.sun.corba.se.impl.io.IIOPInputStream.inputObjectUsingFVD(IIOPInputStream.java:1455)
at com.sun.corba.se.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:398)
at com.sun.corba.se.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:327)
at com.sun.corba.se.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:293)
at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1034)
at com.sun.corba.se.impl.encoding.CDRInputStream.read_value(CDRInputStream.java:253)
at helloworld._HelloWorldBean_kap09s_HelloWorldIntf_Stub.find(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:73)
at $Proxy0.find(Unknown Source)
at helloworld.HelloWorldClient2.main(HelloWorldClient2.java:26)
javax.ejb.EJBException: CORBA BAD_PARAM 0 No; nested exception is:
org.omg.CORBA.BAD_PARAM: vmcid: 0x0 minor code: 0 completed: No; nested exception is: org.omg.CORBA.BAD_PARAM: vmcid: 0x0 minor code: 0 completed: No
at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.unwrapRemoteException(RemoteBusinessIntfProxy.java:109)
at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:91)
at $Proxy0.find(Unknown Source)
at helloworld.HelloWorldClient2.main(HelloWorldClient2.java:26)
Caused by: org.omg.CORBA.BAD_PARAM: vmcid: 0x0 minor code: 0 completed: No
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.getSystemException(MessageBase.java:897)
at com.sun.corba.se.impl.protocol.giopmsgheaders.ReplyMessage_1_2.getSystemException(ReplyMessage_1_2.java:99)
at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.getSystemExceptionReply(CorbaMessageMediatorImpl.java:572)
at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.processResponse(CorbaClientRequestDispatcherImpl.java:430)
at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete(CorbaClientRequestDispatcherImpl.java:326)
at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaClientDelegateImpl.java:129)
at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)
at com.sun.org.omg.SendingContext._CodeBaseStub.meta(_CodeBaseStub.java:105)
at com.sun.corba.se.impl.encoding.CachedCodeBase.meta(CachedCodeBase.java:89)
at com.sun.corba.se.impl.io.IIOPInputStream.getOrderedDescriptions(IIOPInputStream.java:1276)
at com.sun.corba.se.impl.io.IIOPInputStream.inputObjectUsingFVD(IIOPInputStream.java:1455)
at com.sun.corba.se.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:398)
at com.sun.corba.se.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:327)
at com.sun.corba.se.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:293)
at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1034)
at com.sun.corba.se.impl.encoding.CDRInputStream.read_value(CDRInputStream.java:253)
at helloworld._HelloWorldBean_kap09s_HelloWorldIntf_Stub.find(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:73)
... 2 more


Lloyd Smith
Greenhorn

Joined: Aug 17, 2009
Posts: 1
I ran into the same problem above

I was resolved by adding /usr/local/bea/wlserver_10.3/server/lib/weblogic.jar: to my classpath.

Poornima Trivedi
Greenhorn

Joined: Oct 20, 2010
Posts: 1
I faced the same problem while accessing a session bean function from a client. Parametrization of the returned object of the session bean's function solved my problem.
Hope this helps someone!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: .UnmarshalException
 
Similar Threads
Problems with class version using WL 6 and WL 8
Problem in Calling EJB from Tomcat 5.0
Help Please...unable to start the managed server
failed to unmarshal cookie
local class incompatible error