Forums Register Login

run j2ee tutorial example OrderBean, and get Exceptions followed.

+Pie Number of slices to send: Send
D:\j2eetutorial\examples\build\ejb\order>runclient -client OrderApp.ear -name OrderClient -textauth
Initiating login ...
Enter Username:user
Enter Password:user12
Binding name:`java:comp/env/ejb/SimpleOrder`
about to create
Caught an exception.
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: ejbLoad: Index: 0, Si
ze: 0; nested exception is:
javax.ejb.EJBException: ejbLoad: Index: 0, Size: 0
at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.mapSystemException(ShutdownUtilDelega
te.java:64)
at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
at _Order_Stub.getLineItems(Unknown Source)
at OrderClient.main(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:324)
at com.sun.enterprise.util.Utility.invokeApplicationMain(Utility.java:229)
at com.sun.enterprise.appclient.Main.main(Main.java:155)
Caused by: java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: ejbLoad: Index: 0,
Size: 0; nested exception is:
javax.ejb.EJBException: ejbLoad: Index: 0, Size: 0
at com.sun.enterprise.iiop.POAProtocolMgr.mapException(POAProtocolMgr.java:389)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:431)
at OrderBean_EJBObjectImpl.getLineItems(OrderBean_EJBObjectImpl.java:60)
at _OrderBean_EJBObjectImpl_Tie._invoke(Unknown Source)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(GenericPOAServerSC.jav
a:520)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(GenericPOAServerSC.java
:210)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(GenericPOAServerSC.java:112)
at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:255)
at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProcessor.java:84)
at com.sun.corba.ee.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:99)
Caused by: javax.ejb.EJBException: ejbLoad: Index: 0, Size: 0
at OrderBean.ejbLoad(Unknown Source)
at com.sun.ejb.containers.EntityContainer.callEJBLoad(EntityContainer.java:1632)
at com.sun.ejb.containers.EntityContainer.afterBegin(EntityContainer.java:848)
at com.sun.ejb.containers.BaseContainer.startNewTx(BaseContainer.java:1119)
at com.sun.ejb.containers.BaseContainer.preInvokeTx(BaseContainer.java:1030)
at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:375)
at OrderBean_EJBObjectImpl.getLineItems(OrderBean_EJBObjectImpl.java:54)
... 7 more
-------------------------------------------------
thanks.
You'll never get away with this you overconfident blob! The most you will ever get is this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 853 times.
Similar Threads
Still getting duplicate in JPA ManyToMany Entity Relationship
Session bean for sending e-mail
Problem in EJB reference Example
Help with CMP implementation.
JCA Consuming legacy System WebService
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 19:28:53.