当前位置: 技术问答>java相关
UnmarshalException问题。
来源: 互联网 发布时间:2015-11-20
本文导语: 我作为web server在我的sevlet里调用远程ejb server。 当我调用sessionbean 里的方法时出现了如下错误。 我想知道什么情况下会出现这样的情况? java.rmi.UnmarshalException: Could not marshal method ID; nested exception is: java.rmi.U...
我作为web server在我的sevlet里调用远程ejb server。
当我调用sessionbean 里的方法时出现了如下错误。
我想知道什么情况下会出现这样的情况?
java.rmi.UnmarshalException: Could not marshal method ID; nested exception is:
java.rmi.UnmarshalException: Method not found: 'cancelReceipt(Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;)'
Start server side stack trace:
java.rmi.UnmarshalException: Could not marshal method ID; nested exception is:
java.rmi.UnmarshalException: Method not found: 'cancelReceipt(Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;)'
java.rmi.UnmarshalException: Method not found: 'cancelReceipt(Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;)'
at weblogic.rmi.internal.MethodDescriptor.init(MethodDescriptor.java:144)
at weblogic.rmi.internal.BasicServerRef.dispatch(BasicServerRef.java:149)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:194)
at weblogic.rjvm.RJVMImpl.dispatchRequest(RJVMImpl.java:624)
at weblogic.rjvm.RJVMImpl.dispatch(RJVMImpl.java:581)
at weblogic.rjvm.ConnectionManagerServer.handleRJVM(ConnectionManagerServer.java:164)
at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:640)
at weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:454)
at weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:643)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:24)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
End server side stack trace
; nested exception is:
java.rmi.UnmarshalException: Method not found: 'cancelReceipt(Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;)'
Start server side stack trace:
java.rmi.UnmarshalException: Method not found: 'cancelReceipt(Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;)'
at weblogic.rmi.internal.MethodDescriptor.init(MethodDescriptor.java:144)
at weblogic.rmi.internal.BasicServerRef.dispatch(BasicServerRef.java:149)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:194)
at weblogic.rjvm.RJVMImpl.dispatchRequest(RJVMImpl.java:624)
at weblogic.rjvm.RJVMImpl.dispatch(RJVMImpl.java:581)
at weblogic.rjvm.ConnectionManagerServer.handleRJVM(ConnectionManagerServer.java:164)
at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:640)
at weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:454)
at weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:643)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:24)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
End server side stack trace
java.rmi.UnmarshalException: Method not found: 'cancelReceipt(Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;)'
Start server side stack trace:
java.rmi.UnmarshalException: Method not found: 'cancelReceipt(Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;)'
at weblogic.rmi.internal.MethodDescriptor.init(MethodDescriptor.java:144)
at weblogic.rmi.internal.BasicServerRef.dispatch(BasicServerRef.java:149)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:194)
at weblogic.rjvm.RJVMImpl.dispatchRequest(RJVMImpl.java:624)
at weblogic.rjvm.RJVMImpl.dispatch(RJVMImpl.java:581)
at weblogic.rjvm.ConnectionManagerServer.handleRJVM(ConnectionManagerServer.java:164)
at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:640)
at weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:454)
at weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:643)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:24)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
End server side stack trace
当我调用sessionbean 里的方法时出现了如下错误。
我想知道什么情况下会出现这样的情况?
java.rmi.UnmarshalException: Could not marshal method ID; nested exception is:
java.rmi.UnmarshalException: Method not found: 'cancelReceipt(Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;)'
Start server side stack trace:
java.rmi.UnmarshalException: Could not marshal method ID; nested exception is:
java.rmi.UnmarshalException: Method not found: 'cancelReceipt(Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;)'
java.rmi.UnmarshalException: Method not found: 'cancelReceipt(Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;)'
at weblogic.rmi.internal.MethodDescriptor.init(MethodDescriptor.java:144)
at weblogic.rmi.internal.BasicServerRef.dispatch(BasicServerRef.java:149)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:194)
at weblogic.rjvm.RJVMImpl.dispatchRequest(RJVMImpl.java:624)
at weblogic.rjvm.RJVMImpl.dispatch(RJVMImpl.java:581)
at weblogic.rjvm.ConnectionManagerServer.handleRJVM(ConnectionManagerServer.java:164)
at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:640)
at weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:454)
at weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:643)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:24)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
End server side stack trace
; nested exception is:
java.rmi.UnmarshalException: Method not found: 'cancelReceipt(Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;)'
Start server side stack trace:
java.rmi.UnmarshalException: Method not found: 'cancelReceipt(Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;)'
at weblogic.rmi.internal.MethodDescriptor.init(MethodDescriptor.java:144)
at weblogic.rmi.internal.BasicServerRef.dispatch(BasicServerRef.java:149)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:194)
at weblogic.rjvm.RJVMImpl.dispatchRequest(RJVMImpl.java:624)
at weblogic.rjvm.RJVMImpl.dispatch(RJVMImpl.java:581)
at weblogic.rjvm.ConnectionManagerServer.handleRJVM(ConnectionManagerServer.java:164)
at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:640)
at weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:454)
at weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:643)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:24)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
End server side stack trace
java.rmi.UnmarshalException: Method not found: 'cancelReceipt(Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;)'
Start server side stack trace:
java.rmi.UnmarshalException: Method not found: 'cancelReceipt(Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;)'
at weblogic.rmi.internal.MethodDescriptor.init(MethodDescriptor.java:144)
at weblogic.rmi.internal.BasicServerRef.dispatch(BasicServerRef.java:149)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:194)
at weblogic.rjvm.RJVMImpl.dispatchRequest(RJVMImpl.java:624)
at weblogic.rjvm.RJVMImpl.dispatch(RJVMImpl.java:581)
at weblogic.rjvm.ConnectionManagerServer.handleRJVM(ConnectionManagerServer.java:164)
at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:640)
at weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:454)
at weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:643)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:24)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
End server side stack trace
|
有:
你要返回的是一个什么类型的值?这个值必须是可序列化的,不能是一个接口!
你要返回的是一个什么类型的值?这个值必须是可序列化的,不能是一个接口!
|
感觉是interface定义的method在bean中没有实现
/**
感觉而已
*/
/**
感觉而已
*/
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。