• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java RMI UnmarshalException

 
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Its been 3 days in stretch cant find solution to all this error sometimes i get UnmarshalException (server)

package structure
rmiService
--com.trial.server

-----|Addition.java

---- |AdditionInterface.java

---- |AdditionServer.java

-----security policy
security policy


grant {
permission java.security.AllPermission;
};



Addition.java




AdditionInterface



AdditionServer


after giving arguments -Djava.security.policy and -Djava.rmi.server.codebase still get this error.
Addition Server failed: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: com.trial.server.AdditionInterface


Thank you
 
Mark Yevgeny
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i dont know whats going wrong.
 
Marshal
Posts: 28177
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The error message says that something can't find a particular class. I believe it's trying to look in the codebase to find that class. So my guess is that it isn't in your codebase. You said that you set "-Djava.rmi.server.codebase" but you didn't say what you set it to, or whether you checked that you set it correctly after seeing this message.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic