File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

run j2ee tutorial example OrderBean, and get Exceptions followed.

 
tao jiang
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic