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