我的Java知识库
随笔 - 21, 文章 - 10, 评论 - 4, 引用 - 0
数据加载中……

org.omg.CORBA.MARSHAL: Unable to read value from underlying bridge问题原因

在开发过程中,已经做好的程序出现了上述错误.
我的程序是用程序解析xml文件,然后用rmi返回结果.
在网上查了一下有这样的回复:

Most likely the object that the remote ejb client trying to marshall is not serializable or the object has changed meaning you might have added or deleted data member from that object. I had the later problem. Hope this helps.

然后我用以前生成的xml文件就没有出现这种错误,这说明是这个新生成的xml文件的问题.
到底问题出在哪,正在研究中.

其他的一些说法:
This problem occurs when you try to read from a EJB with a standalone client.

There at at least two causes for this:

1.) Either some class in your Bean interface is not serializable
or
2.) By using a JRE "incompatible" with WAS JRE when running your app with eclipse. ie. any other JRE than the WAS runs with...


You can correct these by
1.) checking your interface for unserializable classes, and classpath for any references for wrong version of the classes in the interface

2.) Add the WAS JRE to eclipse and use it as a default JRE
2.1) Select Window -> Preferences and JAVA -> Installed JRE's
2.2) Add {YOUR_WAS_HOME}/java/jre set it as a default
但是这种说法显然对我这种情况不适合!

posted on 2007-03-12 13:35 yangrui 阅读(1868) 评论(0)  编辑  收藏


只有注册用户登录后才能发表评论。


网站导航: