wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes MusicCD store Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "MusicCD store" Watch "MusicCD store" New topic

MusicCD store

Tony Yan
Ranch Hand

Joined: Apr 10, 2002
Posts: 170
Hi, All:
I am trying to setup the MusicCD store from IBM's tuto on EJB's. I have finished the deployment w/o error, and am trying to run the client to get run it. Both clients talking to EntityBean and SessionBean have errors. But I think they are related so only show the error of the EntityBean here. I have confirmed that the following codes run successfully:

I got the home stub using JNDI lookup. But then when I tried to use the home to run methods. I got the following. Any Ideas?
org.omg.CORBA.UNKNOWN: minor code: 0 completed: Maybe
org.omg.CORBA.UNKNOWN: minor code: 0 completed: Maybe
at com.sun.corba.ee.internal.core.UEInfoServiceContext.<init>(UEInfoServ
at java.lang.reflect.Constructor.newInstance(Native Method)
at com.sun.corba.ee.internal.core.ServiceContextData.makeServiceContext(
at com.sun.corba.ee.internal.core.ServiceContexts.<init>(ServiceContexts
at com.sun.corba.ee.internal.iiop.messages.ReplyMessage_1_2.read(ReplyMe
at com.sun.corba.ee.internal.iiop.IIOPInputStream.unmarshalHeader(IIOPIn
at com.sun.corba.ee.internal.iiop.IIOPConnection.getResponse(IIOPConnect
at com.sun.corba.ee.internal.iiop.IIOPOutputStream.invoke(IIOPOutputStre
at com.sun.corba.ee.internal.iiop.ClientRequestImpl.invoke(ClientRequest
at com.sun.corba.ee.internal.corba.ClientDelegate.invoke(ClientDelegate.
at com.sun.corba.ee.internal.POA.GenericPOAClientSC.invoke(GenericPOACli
at org.omg.CORBA.portable.ObjectImpl._invoke(Unknown Source)
at musicstore._MusicCDHome_Stub.create(Unknown Source)
at musicstore.MusicClient.main(MusicClient.java:36)
Exception in thread "main" java.lang.NullPointerException
at musicstore.MusicClient.main(MusicClient.java:44)

Tony Yan<br /> <br />IBM Certified Developer XML and Related Technology<br />Sun Certified Web Component Developer For J2EE Platform<br />Sun Certified Programmer For Java 2 Platform
Tony Yan
Ranch Hand

Joined: Apr 10, 2002
Posts: 170
I found the problem, it was with DB config. Nothing to do with EJB. The error reporting was indirect so kinda of misleading ...
It is sorta covered in the JavaRanch Style Guide.
subject: MusicCD store
Similar Threads
CMP Creation prob.
Advisor error
Accessing Notes NAB from JAVA using Domino Java API
Got exception when running Headfirst Customer find method