Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MusicCD store

 
Tony Yan
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic