This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.rmi.UnmarshalException: Help!

 
Jared Sheehan
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How have you placed the JAR file on the classpath?
 
Jared Sheehan
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, we ran from the commandline and referenced the jar directly with no success.
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic