my dog learned polymorphism*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Exception UnmarshalException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Exception UnmarshalException" Watch "Exception UnmarshalException" New topic
Author

Exception UnmarshalException

Val Dra
Ranch Hand

Joined: Jan 26, 2001
Posts: 439
i get this error when i get to call one of my methods from the server the error only happens with one method all the others are working fine. What can cause this? Thanks.
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.net.MalformedURLException: unknown protocol: c unexpected error.


Val SCJP <BR>going for SCJD
Terry McKee
Ranch Hand

Joined: Sep 29, 2000
Posts: 173
I am receiving this error too. Any thoughts?
Terry McKee
Ranch Hand

Joined: Sep 29, 2000
Posts: 173
I figured out why this was happening. When defining the java.rmi.server.codebase property make sure you are using the proper protocol. I originally was defining this property like this,
-Djava.rmi.server.codebase=C:\java\project\root\
It should have been defined like this:
-Djava.rmi.server.codebase=file:\\c:\java\project\root\
Hope this helps anyone who comes across this in the future.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exception UnmarshalException
 
Similar Threads
StreamCorruptedException error
Help with this error
NullPointerException
Unable to get the home of ejb after certain requests
Cant find Stub