将对象传递给远程会话bean

时间:2017-05-19 15:11:27

标签: java-ee glassfish ejb-3.0 corba

我在Glassfish 3上部署了2个模块,其中一个是EJB模块,它向会话bean业务方法公开远程接口,另一个是WAR模块,充当EJB模块中远程会话bean的客户端。

这里的问题我可以从远程会话bean中检索数据,但是我无法将任何数据传递给那些远程会话bean,如persist(myObject);

我得到了这个例外

Severe: Caused by: java.rmi.RemoteException: CORBA UNKNOWN 1330446338 Maybe; nested exception is: 
org.omg.CORBA.UNKNOWN: ----------BEGIN server-side stack trace----------

org.omg.CORBA.UNKNOWN:警告:IOP00010002:服务器抛出的未知用户异常 - 异常:java.lang.NullPointerException; message:null vmcid:OMG次要代码:2完成:可能     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)     at java.lang.reflect.Constructor.newInstance(Constructor.java:526)     at com.sun.corba.ee.spi.orbutil.logex.corba.CorbaExtension.makeException(CorbaExtension.java:248)     at com.sun.corba.ee.spi.orbutil.logex.corba.CorbaExtension.makeException(CorbaExtension.java:95)     at com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator.handleFullLogging(WrapperGenerator.java:387)     在com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator.access $ 400(WrapperGenerator.java:107)     at com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator $ 2.invoke(WrapperGenerator.java:511)     at com.sun.corba.ee.spi.orbutil.proxy.CompositeInvocationHandlerImpl.invoke(CompositeInvocationHandlerImpl.java:99)     在com.sun.proxy。$ Proxy122.runtimeexception(未知来源)     at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.convertThrowableToSystemException(CorbaMessageMediatorImpl.java:1843)     at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleThrowableDuringServerDispatch(CorbaMessageMediatorImpl.java:1793)     at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleThrowableDuringServerDispatch(CorbaMessageMediatorImpl.java:1758)     at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:255)     at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1624)     at com.sun.corba.ee.impl.protocol.SharedCDRClientRequestDispatcherImpl.marshalingComplete(SharedCDRClientRequestDispatcherImpl.java:126)     at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaClientDelegateImpl.java:273)     at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:200)     at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:152)     at com.sun.corba.ee.impl.presentation.rmi.codegen.CodegenStubBase.invoke(CodegenStubBase.java:227)     在com.dms.hr.remote.facade .__ PrsStpOptionFacadeRemote_Remote_DynamicStub.edit(com / dms / hr / remote / facade / __ PrsStpOptionFacadeRemote_Remote_DynamicStub.java)     at com.dms.hr.remote.facade._PrsStpOptionFacadeRemote_Wrapper.edit(com / dms / hr / remote / facade / _PrsStpOptionFacadeRemote_Wrapper.java)     在com.view.managed.StpOptionBean.save(StpOptionBean.java:547)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:606)     在com.sun.el.parser.AstValue.invoke(AstValue.java:254)     at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:302)     在org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:39)     在org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)     at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)     at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)     at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)     在javax.faces.component.UICommand.broadcast(UICommand.java:315)     在javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)     在javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)     at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)     在com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)     在com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)     在javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)     在org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1542)     在org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)     在org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)     在org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)     在org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)     在org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)     在org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)     在org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)     at com.sun.enterprise.v3.services.impl.ContainerMapper $ AdapterCallable.call(ContainerMapper.java:317)     at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)     at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)     在com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)     在com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)     在com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)     at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)     在com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)     在com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)     在com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)     at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)     在com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)     在com.sun.grizzly.ContextTask.run(ContextTask.java:71)     at com.sun.grizzly.util.AbstractThreadPool $ Worker.doWork(AbstractThreadPool.java:532)     在com.sun.grizzly.util.AbstractThreadPool $ Worker.run(AbstractThreadPool.java:513)     在java.lang.Thread.run(Thread.java:745) 引起:java.lang.NullPointerException     at com.sun.corba.ee.impl.orbutil.ClassInfoCache $ ClassInfo。(ClassInfoCache.java:156)     at com.sun.corba.ee.impl.orbutil.ClassInfoCache.get(ClassInfoCache.java:281)     at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1097)     at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:935)     at com.sun.corba.ee.impl.encoding.CDRInputObject.read_value(CDRInputObject.java:525)     at com.sun.corba.ee.impl.corba.TCUtility.unmarshalIn(TCUtility.java:289)     at com.sun.corba.ee.impl.corba.AnyImpl.read_value(AnyImpl.java:605)     at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_any(CDRInputStream_1_0.java:775)     at com.sun.corba.ee.impl.encoding.CDRInputObject.read_any(CDRInputObject.java:482)     at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.readAny(Util.java:452)     at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl $ 10.read(DynamicMethodMarshallerImpl.java:299)     at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl.readArguments(DynamicMethodMarshallerImpl.java:451)     在com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:172)     at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:528)     at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:199)     ......还有51个 ---------- END服务器端堆栈跟踪---------- vmcid:OMG次要代码:2完成:可能 严重:在com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:311) 严重:在com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:213) 严重:在com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:152) 严重:在com.sun.corba.ee.impl.presentation.rmi.codegen.CodegenStubBase.invoke(CodegenStubBase.java:227) 严重:在com.dms.hr.remote.facade .__ PrsStpOptionFacadeRemote_Remote_DynamicStub.edit(com / dms / hr / remote / facade / __ PrsStpOptionFacadeRemote_Remote_DynamicStub.java) 严重:... 44更多

0 个答案:

没有答案