|
 |
enterprise_java_beans thread: org.omg.CORBA.UNKNOWN Exception ?
Message #1 by Veaceslav Gorincioi <Slavius@g...> on Fri, 21 Dec 2001 13:24:22 +0100
|
|
Hi,
I would highly appreciate if someone knows the cause of this
Exception:
I have deployed Entity BMP EJB-s on J2EE-RI 1.3 using Oracle8i as Database.
I get a ejb JNDI reference using:
prop.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory");
prop.put(javax.naming.Context.PROVIDER_URL,"iiop://127.0.0.1:1050");
I get exception when I call home.create():
exception! org.omg.CORBA.UNKNOWN: minor code: 0 completed: Maybe at
com.sun.corba.se.internal.core.UEInfoServiceContext.<init>(UEInfoServiceContext.java:37) at
java.lang.reflect.Constructor.newInstance(Native Method) at
com.sun.corba.se.internal.core.ServiceContextData.makeServiceContext(ServiceContextData.java:113) at
com.sun.corba.se.internal.core.ServiceContexts.<init>(ServiceContexts.java:106) at
com.sun.corba.se.internal.iiop.ReplyMessage.read(ReplyMessage.java:133) at
com.sun.corba.se.internal.iiop.IIOPInputStream.<init>(IIOPInputStream.java:89) at
com.sun.corba.se.internal.iiop.ClientResponseImpl.<init>(ClientResponseImpl.java:29) at
com.sun.corba.se.internal.iiop.IIOPConnection.createInputStream(IIOPConnection.java:622) at
com.sun.corba.se.internal.iiop.ReaderThread.run(IIOPConnection.java:109)
Also, do you know how can I use Oracle's sequences to generate PK for
my Entity EJB for ejbCreate() method, because I need to return the PK.
I found several ideas on web, but none suitable.
Ex: Calling "sequence.nextval" does not assure the EJB portability on other DBs.
Any ideas or links ?
Thanks,
Slavic
______________________
[mailto: Slavius@g...]
|
|
 |