java.rmi.ServerException: RemoteException occurred in server thread java.lang.ClassNotFoundException
来源:互联网 发布:中国社交网络使用排名 编辑:程序博客网 时间:2024/06/03 19:20
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.lang.ClassNotFoundException: compute.Compute
在根据http://docs.oracle.com/javase/tutorial/rmi/running.html学习RIM,不过在启动server的时候老是报如上的错误
官方文档的命令行命令有误:
c:\home\ann\src>start rmiregistry -J-Djava.rmi.server.codebase=file:///c:/home/ann/public_html/classes/compute.jar
c:\home\ann\src>java -cp c:\home\ann\src;c:\home\ann\public_html\classes\compute.jar -Djava.rmi.server.codebase=file:///c:/home/ann/public_html/classes/compute.jar -Djava.rmi.server.hostname=localhost -Djava.security.policy=server.policy engine.ComputeEngineComputeEngine bound
现在是服务端可以启动了,但是客户端却总是报错误
c:\home\ann\src>start rmiregistry -J-Djava.rmi.server.useCodebaseOnly=false
c:\home\ann\src>java -cp c:\home\ann\src;c:\home\ann\public_html\classes\compute.jar -Djava.rmi.server.useCodebaseOnly=false -Djava.rmi.server.codebase=file:///c:/home/ann/public_html/classes/compute.jar -Djava.rmi.server.hostname=localhost -Djava.security.policy=server.policy engine.ComputeEngine
c:\home\jones\src>java -cp c:\home\jones\src;c:\home\jones\public_html\classes\compute.jar -Djava.rmi.server.codebase=file:/c:/home/jones/public_html/classes/ -Djava.security.policy=client.policy client.ComputePi 127.0.0.1 45
完整源代码:http://www.kuaipan.cn/file/id_122162699692933140.htm?source=1
1 0
- java.rmi.ServerException: RemoteException occurred in server thread java.lang.ClassNotFoundException
- RemoteException occurred in server thread; nested exception is:
- Exception in thread "main" java.lang.ClassNotFoundException
- 异常:Exception in thread "main" java.lang.ClassNotFoundException: Student
- intelij idea: Exception in thread "main" java.lang.ClassNotFoundException
- IntelliJ IDEA Exception in thread "main" java.lang.ClassNotFoundException
- intelij idea: Exception in thread "main" java.lang.ClassNotFoundException
- Exception in thread "main" java.lang.ClassNotFoundException: xxxx
- RMI Stub class java.lang.ClassNotFoundException
- java.rmi.UnmarshalException:errorunmarshalling return; java.lang.ClassNotFoundException的解决方法
- Exception in thread "RMI TCP Connection(idle)" java.lang.OutOfMemoryError: PermGen space
- Intellij出现错误Exception in thread "RMI TCP Connection(idle)" java.lang.OutOfMemoryError: PermGen space
- IDEA - MySql / Spring mvc : Exception in thread "RMI TCP Connection(idle)" java.lang.OutOfMemoryErro
- Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/rmi/extensions/DisconnectListene
- 异常--Exception in thread "RMI TCP Connection(idle)" java.lang.OutOfMemoryError: PermGen space
- Exception in thread "main" java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
- idea找不到导入的包和类,intelij idea: Exception in thread "main" java.lang.ClassNotFoundException
- hadoop 伪分布式系统命令行运行java类报Exception in thread "main" java.lang.ClassNotFoundException:解决办法
- [新技术]Google Code上的15个出色的WEB工具与素材(转载)
- FFT的频谱分辨率
- javascript add(1)(2)(3)(4)解析
- UML实战之Statechart Diagrams
- MySQL外键约束方式
- java.rmi.ServerException: RemoteException occurred in server thread java.lang.ClassNotFoundException
- ios下拉刷新
- COCOS2DX 动画
- [新技术]10 个顶级 JavaScript 库(转载)
- C语言编程过程详解
- 第三周作业
- 图论之最小生成树
- 排列公式
- 实现调用Android手机的拍照功能