wood burning stoves 2.0*
The moose likes Java in General and the fly likes java.rmi.UnmarshalException: Help! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "java.rmi.UnmarshalException: Help!" Watch "java.rmi.UnmarshalException: Help!" New topic
Author

java.rmi.UnmarshalException: Help!

Jared Sheehan
Greenhorn

Joined: Mar 26, 2008
Posts: 11
Hi,

We are running Weblogic in a clustered environment (2 servers), Citrix as our presentation servers (2) and Oracle as our database backend. We are getting this stacktrace...

java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: Failed to load class com.ams.SomeObject...
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:195)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:338)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:252)
at com.ams.enboss.worksheets.server.ejb.sessionbean.Worksheet_8ljdvz_EOImpl_920_WLStub.saveWorksheet(Unknown Source)
at com.ams.enboss.projdoc.client.worksheets.WorksheetPanel.save(WorksheetPanel.java:708)
at com.ams.enboss.projdoc.client.worksheets.WorksheetPanel.cleanup(WorksheetPanel.java:1321)
at com.ams.enboss.projdoc.client.Project.cleanup(Project.java:1650)
at com.ams.enboss.projdoc.client.ProjDoc$SaveProjectAction.saveProject(ProjDoc.java:1419)
at com.ams.enboss.projdoc.client.ProjDoc$SaveProjectAction.access$4200(ProjDoc.java:1388)
at com.ams.enboss.projdoc.client.ProjDoc$SaveProjectAction$1.construct(ProjDoc.java:1401)
at com.ams.some.swing.workerclass.run(workerclass.java:138)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.ClassNotFoundException: Failed to load class com.ams.workerclass
at weblogic.rmi.utils.WLRMIClassLoaderDelegate.loadClass(WLRMIClassLoaderDelegate.java:203)
at weblogic.rmi.utils.WLRMIClassLoaderDelegate.loadClass(WLRMIClassLoaderDelegate.java:128)
at weblogic.rmi.utils.Utilities.loadClass(Utilities.java:308)
at weblogic.rmi.utils.Utilities.loadClass(Utilities.java:344)
at weblogic.rjvm.MsgAbbrevInputStream.resolveClass(MsgAbbrevInputStream.java:400)
at weblogic.utils.io.ChunkedObjectInputStream$NestedObjectInputStream.resolveClass(ChunkedObjectInputStream.java:255)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.util.ArrayList.readObject(ArrayList.java:592)
at java.lang.LangAccessImpl.readObject(Unknown Source)
at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:195)
at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:565)
at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:191)
at someSessionBean.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:517)
at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:224)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:407)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:357)
at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:56)
at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:934)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

It says it cannot load our class but when checking our ear the jar file is there. Any ideas?

Thanks soo much, Jared and Mike
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
How have you placed the JAR file on the classpath?


SCJP 1.4, SCWCD 1.3, SCBCD 1.3
Jared Sheehan
Greenhorn

Joined: Mar 26, 2008
Posts: 11
We used ant to build it and deployed it using the Weblogic builtin admin console deployer to deploy to the other members of the cluster. Previous versions do not work either. Same error.
Kevin Smither
Ranch Hand

Joined: Oct 22, 2007
Posts: 30
where is the jar within the EAR, is it in APP-INF/lib? Have you tried setting the WL server classpath to point to the jar?
Jared Sheehan
Greenhorn

Joined: Mar 26, 2008
Posts: 11
Yes, we ran from the commandline and referenced the jar directly with no success.
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
we ran from the commandline and referenced the jar directly with no success

What does this mean? We still have no idea how you attempted to get the JAR file onto the classpath.
Jared Sheehan
Greenhorn

Joined: Mar 26, 2008
Posts: 11
Hi Thank you everyone for your help. It was a configuration problem. Someone had changed the ip for the class loaders on accident. We found this out by doing a Beyond Compare of the Weblogic configuration file between the Test Environment (Environment that was hosed) and the production environment (Environment that was not hosed).
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: java.rmi.UnmarshalException: Help!