RMI编译错误 [英] RMI compiling error

查看:50
本文介绍了RMI编译错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我是rmi和linux环境的新手,我一直试图在uinx上测试这个代码(java),其中

是三台机器:

-One作为控制器

-执行主机

- 提交者


我执行以下操作来运行它们:

- 键入make在所有机器中编译所有java类以及远程对象。

- 然后在所有机器上运行rmiregistry

- 然后运行Controller类

- 在主机类中运行报告给控制器periodecally

- 提交申请


问题是当我运行Host类时它给出了以下例外情况:

[user @ machine1 code] $ java主机10.70.50.99

绑定报告失败:java.rmi.ServerException:服务器线程中发生RemoteException;嵌套异常是:

java.rmi.UnmarshalException:错误解组参数;嵌套异常是:

java.lang.ClassNotFoundException:Report_Stub

Binding Runn失败:java.rmi.ServerException:服务器线程中发生RemoteException;嵌套异常是:

java.rmi.UnmarshalException:错误解组参数;嵌套异常是:

java.lang.ClassNotFoundException:Runn_Stub


我在所有机器上使用jdk1.5,但代码是用jdk1.4编写的影响编译??

Hello,

I am new to rmi and linux enviroment, I have been trying to test this code (java) on uinx where there
are three machines:
-One as a Controller
-an execution host
- a submitter

I do the following to run them:
- type "make" in all the machines to compile the all the java classes along with the remote objects.
- then run rmiregistry on all the machines
- then run the Controller class
- run the host class the reports to the Controller periodecally
- submit an application

the problem is when I run the Host class it gives me the following exceptions:
[user@machine1 code]$ java Host 10.70.50.99
Binding Report failed: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: Report_Stub
Binding Runn failed: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: Runn_Stub

I use jdk1.5 on all the machines althought the code is written with jdk1.4 is that affecting the compiling??

推荐答案

java主机10.70.50.99

绑定报告失败:java.rmi.ServerException:服务器中发生RemoteException线;嵌套异常是:

java.rmi.UnmarshalException:错误解组参数;嵌套异常是:

java.lang.ClassNotFoundException:Report_Stub

Binding Runn失败:java.rmi.ServerException:服务器线程中发生RemoteException;嵌套异常是:

java.rmi.UnmarshalException:错误解组参数;嵌套异常是:

java.lang.ClassNotFoundException:Runn_Stub


我在所有机器上使用jdk1.5,但代码是用jdk1.4编写的影响编译??
java Host 10.70.50.99
Binding Report failed: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: Report_Stub
Binding Runn failed: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: Runn_Stub

I use jdk1.5 on all the machines althought the code is written with jdk1.4 is that affecting the compiling??


您应该为Runn和Report文件运行rmic编译器。编译器

为这些类生成存根;将thos stubes存储在报告异常的

主机的类路径中。顺便说一句,它与Java 1.4无关,或者与
Java 1.5无关。非常旧版本的Java(1.2左右)也需要骨架文件但是

你不再需要它们了。


亲切的问候,

Jos
You should run the rmic compiler for the Runn and Report files. The compiler
generates stubs for those classes; store thos stubes in the classpaths on the
hosts that reported the Exceptions. btw, it has nothing to do with Java 1.4 or
Java 1.5. Very old versions of Java (1.2 or so) also needed skeleton files but
you don''t need those anymore.

kind regards,

Jos



您应该为Runn和Report文件运行rmic编译器。编译器

为这些类生成存根;将thos stubes存储在报告异常的

主机的类路径中。顺便说一句,它与Java 1.4无关,或者与
Java 1.5无关。非常旧版本的Java(1.2左右)也需要骨架文件但是

你不再需要它们了。


亲切的问候,

Jos
You should run the rmic compiler for the Runn and Report files. The compiler
generates stubs for those classes; store thos stubes in the classpaths on the
hosts that reported the Exceptions. btw, it has nothing to do with Java 1.4 or
Java 1.5. Very old versions of Java (1.2 or so) also needed skeleton files but
you don''t need those anymore.

kind regards,

Jos



请不要提醒我们骷髅。

Please don''t remind us of the skeletons.


这篇关于RMI编译错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆