Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exception UnmarshalException

 
Val Dra
Ranch Hand
Posts: 439
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Terry McKee
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am receiving this error too. Any thoughts?
 
Terry McKee
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic