dcsimg
Problems getting a InitialContext in a client class
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   ojcar_putoamo
Posted On:   Wednesday, July 17, 2002 06:48 AM

Hi! I've a main class that creates a InitialContext(new InitialContext()). Loading the jndi.properties included in j2ee.jar(j2ee 1.3.1) puts the value for the Factory to the com.sun.enterprise.naming.SerialInitContextFactory class, but when execute this main class, he throws this Exception: Exception in thread "main" org.omg.CORBA.BAD_PARAM: minor code: 1398079689 com pleted: Maybe at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at com.sun.corba.ee.internal.iiop.messages.ReplyMessage_1_2.getSystemExc eption(ReplyMessage_1_2.java:93) at com.sun.corba.ee.internal.iiop.ClientResponseImpl.getSystemException( ClientResponseImpl.java   More>>

Hi!

I've a main class that creates a InitialContext(new InitialContext()). Loading the jndi.properties included in j2ee.jar(j2ee 1.3.1) puts the value for the Factory to the com.sun.enterprise.naming.SerialInitContextFactory class, but when execute this main class, he throws this Exception:

Exception in thread "main" org.omg.CORBA.BAD_PARAM: minor code: 1398079689 com
pleted: Maybe
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at com.sun.corba.ee.internal.iiop.messages.ReplyMessage_1_2.getSystemExc
eption(ReplyMessage_1_2.java:93)
at com.sun.corba.ee.internal.iiop.ClientResponseImpl.getSystemException(
ClientResponseImpl.java:108)
at com.sun.corba.ee.internal.corba.ClientDelegate.invoke(ClientDelegate.
java:306)
at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:459)
at com.sun.org.omg.SendingContext._CodeBaseStub.implementation(_CodeBase
Stub.java:66)
at com.sun.corba.ee.internal.iiop.CachedCodeBase.implementation(CachedCo
deBase.java:50)
at com.sun.corba.ee.internal.iiop.CDRInputStream_1_0.getClassFromString(
CDRInputStream_1_0.java:2233)
at com.sun.corba.ee.internal.iiop.CDRInputStream_1_0.read_value(CDRInput
Stream_1_0.java:925)
at com.sun.corba.ee.internal.iiop.CDRInputStream_1_0.read_abstract_inter
face(CDRInputStream_1_0.java:853)
at com.sun.corba.ee.internal.iiop.CDRInputStream_1_0.read_abstract_inter
face(CDRInputStream_1_0.java:845)
at com.sun.corba.ee.internal.iiop.CDRInputStream.read_abstract_interface
(CDRInputStream.java:312)
at com.sun.corba.se.internal.io.IIOPInputStream.readObjectDelegate(IIOPI
nputStream.java:222)
at com.sun.corba.se.internal.io.IIOPInputStream.readObjectOverride(IIOPI
nputStream.java:373)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:232)
at java.util.Hashtable.readObject(Hashtable.java:792)
at com.sun.corba.se.internal.io.IIOPInputStream.readObject(Native Method
)


etc.,etc.

I've running a j2ee Reference Implementation that creates the naming space which i want access, and the orb file is configured to localhost(the same machine where the server is running).

I tried with a Properties when new InitialContext(props) (putting the factory com.sun.enterprise.naming.SerialInitContextFactory and as url "iiop://localhost:1050")and writting the -Dorg.omg.ORB.CORBA.ORBInitialHost=localhost argument in the line argument, but the result is the same.

Please, can you help me?

thanks

   <<Less

Re: Problems getting a InitialContext in a client class

Posted By:   ojcar_putoamo  
Posted On:   Thursday, August 8, 2002 03:40 AM

I found the answer. The problem is that the Reference Implementation's InitialContext don't allow get a NamingEnumeration("") ...this throws the Corba Exception
About | Sitemap | Contact