Win a copy of Practice Tests for OCP Java 17 Certification Exam (1Z0-829) this week in the OCPJP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

MusicCD store

 
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ...
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic