delagol
11-12-2003, 18:02
salve a tutti da delagol. volevo apere se a qualcuno è capitato di avere questo messaggio di errore mandando in esecuzione un server RMI molto scemo, che in pratica ha in input due stringhe e resituisce la concatenazione:
RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: SrvImpl_Stub
la definizione del metodo nel file SrvImpl.java è:
public String concatena(String a, String b) throws RemoteException {
return a+b;
}
ho generato Stub e Skeleton e mando in esecuzione il SrvImpl.class con il comando
java -Djava.security.policy="nomefile.policy" SrvImpl
non credo debba generare errori...:muro: :muro:
RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: SrvImpl_Stub
la definizione del metodo nel file SrvImpl.java è:
public String concatena(String a, String b) throws RemoteException {
return a+b;
}
ho generato Stub e Skeleton e mando in esecuzione il SrvImpl.class con il comando
java -Djava.security.policy="nomefile.policy" SrvImpl
non credo debba generare errori...:muro: :muro: