永中首页 | 产品聚焦 | 销售渠道 | 服务支持 | 教育专栏 | 二次开发 | 在线订购 | 产品注册 | 免费下载 | 新闻中心 | 关于永中
发新话题
打印

请教(关于RMI)

请教(关于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);
    }
  }
}

TOP

发新话题