It's not a secret anymore!*
The moose likes EJB and other Java EE Technologies and the fly likes run j2ee tutorial example OrderBean, and get Exceptions followed. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "run j2ee tutorial example OrderBean, and get Exceptions followed." Watch "run j2ee tutorial example OrderBean, and get Exceptions followed." New topic
Author

run j2ee tutorial example OrderBean, and get Exceptions followed.

tao jiang
Greenhorn

Joined: May 26, 2002
Posts: 5
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: run j2ee tutorial example OrderBean, and get Exceptions followed.