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
Author

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?
-TIA
------------------------------
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
iceContext.java:36)
at java.lang.reflect.Constructor.newInstance(Native Method)
at com.sun.corba.ee.internal.core.ServiceContextData.makeServiceContext(
ServiceContextData.java:115)
at com.sun.corba.ee.internal.core.ServiceContexts.<init>(ServiceContexts
.java:110)
at com.sun.corba.ee.internal.iiop.messages.ReplyMessage_1_2.read(ReplyMe
ssage_1_2.java:120)
at com.sun.corba.ee.internal.iiop.IIOPInputStream.unmarshalHeader(IIOPIn
putStream.java:126)
at com.sun.corba.ee.internal.iiop.IIOPConnection.getResponse(IIOPConnect
ion.java:671)
at com.sun.corba.ee.internal.iiop.IIOPOutputStream.invoke(IIOPOutputStre
am.java:124)
at com.sun.corba.ee.internal.iiop.ClientRequestImpl.invoke(ClientRequest
Impl.java:79)
at com.sun.corba.ee.internal.corba.ClientDelegate.invoke(ClientDelegate.
java:232)
at com.sun.corba.ee.internal.POA.GenericPOAClientSC.invoke(GenericPOACli
entSC.java:96)
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
org.omg.CORBA.UNKNOWN