请教(关于RMI)
各位大侠,我在做RMI的时候注册远程对象到RMI的名称空间时出错了,在Naming.rebind("user",user);这一句,为什么呢?我不明白。
occur error: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: e
注册远程对象的程序:
package bbs;
import java.rmi.*;
import java.rmi.server.*;
public class userServer
{
public static void main(String argv[])
{
try
{
System.out.println("Initize Server Object...");
userImpl user=new userImpl();
System.out.println("regedit Server Object...");
Naming.rebind("user",user);
System.out.println("wait for client...");
}
catch(Exception ex)
{
System.out.println("occur error:"+ex);
}
}
}