users@glassfish.java.net

Standalone Client - exception invoking method on EJB3 method

From: <glassfish_at_javadesktop.org>
Date: Fri, 25 May 2007 14:45:00 PDT

I'm trying to make calls to my EJB3 been from a standalone client, but one method does not actually make a call and doesn't throw an exception, the second method throws a strange invoke exception. Any ideas?

  I can get a reference and lookup in JNDI but can't call the methods, the code for the client looks like:

                        RiskServer rs = (RiskServer)ic.lookup("com.theocc.interfaces.RiskServer");

                        rs.createTheoriticals(0,1000); //EJB never recieves this call, but doesn't throw an exception either...

                        RiskGroupPLIdxData rgData = rs.getFirstMostRiskAry();

2nd method throws the following exception:

javax.ejb.EJBException: nested exception is: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
        java.rmi.RemoteException
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
        java.rmi.RemoteException
        at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:188)
        at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:172)
        at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:119)
        at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(BCELStubBase.java:197)
        at com.theocc.interfaces.__RiskServer_Remote_DynamicStub.getFirstMostRiskAry(__RiskServer_Remote_DynamicStub.java)
        at com.theocc.interfaces._RiskServer_Wrapper.getFirstMostRiskAry(com.theocc.interfaces._RiskServer_Wrapper.java)
        at testjndi.main(testjndi.java:38)
Caused by: java.rmi.RemoteException
        at com.sun.enterprise.iiop.POAProtocolMgr.mapException(POAProtocolMgr.java:234)
        at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1280)
        at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:197)
        at com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:67)
        at $Proxy29.getFirstMostRiskAry(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:121)
        at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:650)
        at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:193)
        at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1705)
        at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1565)
        at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:947)
        at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:178)
        at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:717)
        at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:473)
        at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1270)
        at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:479)
javax.ejb.EJBException: nested exception is: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
        java.rmi.RemoteException
        at com.theocc.interfaces._RiskServer_Wrapper.getFirstMostRiskAry(com.theocc.interfaces._RiskServer_Wrapper.java)
        at testjndi.main(testjndi.java:38)
[Message sent by forum member 'mlingk' (mlingk)]

http://forums.java.net/jive/thread.jspa?messageID=219025