我正在测试简单的企业应用程序,但是当我调用远程方法时,我会遇到以下错误。
类型异常报告
MessageInternal Server错误
描述服务器遇到了阻止它的内部错误 从满足此请求。
例外
org.apache.jasper.jasperexception:javax.ejb.ejbexception: Java.rmi.Marshalexception:Corba Marshal 1330446393也许;嵌套 例外是:org.omg.corba.marshal:警告:00810057:无法 加载类EntityData.customer VMCID:OMG次要代码:57完成: 也许
根本原因
javax.ejb.ejbexception:java.rmi.marshalexception:Corba元帅 也许1330446393;嵌套的例外是:org.omg.corba.marshal: 警告:00810057:无法加载类EntityData.customer VMCID: OMG次要代码:57完成:也许
根本原因
java.rmi.marshalexception:Corba元帅1330446393;嵌套 例外是:org.omg.corba.marshal:警告:00810057:无法 加载类EntityData.customer VMCID:OMG次要代码:57完成: 也许
根本原因
org.omg.corba.marshal:警告:00810057:无法加载类 EntityData.customer VMCID:OMG次要代码:57完成:也许
sessionbean
public Object SearchData(Integer id) {
Customer cust = em.find(Customer.class, id);
return cust;
}
remotelibrary
@Remote
public interface CustomerSessionBeansRemote {
Object SearchData(Integer id);
}
JSP
Object o = ic.lookup(CustomerSessionBeansRemote.class.getName());
CustomerSessionBeansRemote custSession = (CustomerSessionBeansRemote) o;
Customer customer = (Customer)custSession.SearchData(1);
if(customer!=null){
out.print(customer.getName());
}
我在战争项目中添加了EJB和remotelibrary项目,因此,我的JSP HASA访问我的客户类。
任何帮助都将被应用。谢谢。
" corba.marshal"意味着您在本地和远程程序中使用的IDL并不相同,并且/或远程方法正在抛出异常,而IDL中未定义的异常。
这全都假设您在两侧都使用兼容的球体,并且两侧的设置都是兼容的。