请教一个RMI异常。

storm
05-07-28 2 141

同样的代码别人机子上能运行,我的机子上就不行。所以,排除代码原因。还有什么能抛出这种异常呢?

java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.net.MalformedURLException: no protocol: 5.0/webapps/beb.com.cn/WEB-INF/classes/
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292)
sun.rmi.transport.Transport$1.run(Transport.java:148)
java.security.AccessController.doPrivileged(Native Method)
sun.rmi.transport.Transport.serviceCall(Transport.java:144)
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
java.lang.Thread.run(Thread.java:534)
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
Remote.HospRemoteImpl_Stub.Hosp_Info_Update(Unknown Source)
Servlet.HospForwardFacade.Index(HospForwardFacade.java:103)
Servlet.HospForwardFacade.Main(HospForwardFacade.java:33)
Servlet.MainServlet.processRequest(MainServlet.java:62)
Servlet.MainServlet.doPost(MainServlet.java:29)
javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

storm
2005-07-28 16:21

可能原因是服务端的方法在同一时间只能被一个客户端调用。

mythmoon
2005-07-30 11:56

不会吧!RMI被设计成的单机班!我猜是资源争用的问题!如果使用的多线程的话!没有靠滤到同步问题!

___________________________
顶出来,高手解决下!
"写程序没有高手,只有谁最快把Bug找出来!"