Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

RMI-IIOP with Websphere naming server

843793Feb 18 2002 — edited Sep 17 2002
I am coding an application that are using rmi-iiop, and using the Websphere naming server in WAS 3.5. After I installed the remote implementation code to the server, I test the client code from VA-Java, every things working fine. But when I export the client code to the jdk1.3.1 environment, it cannot able to look up the server and throw an exception like this...

javax.naming.NamingException: Error during resolve. Root exception is
java.lang.NullPointerException
at com.ibm.ejs.ns.jndi.CNContextImpl.doLookup(CNContextImpl.java:726)
at com.ibm.ejs.ns.jndi.CNContextImpl.lookup(CNContextImpl.java:584)
at javax.naming.InitialContext.lookup(Unknown Source)
at com.wea.leave.system.ListenerRunnerClient.main(ListenerRunnerClient.java:50)
Error during resolve
null
java.lang.NullPointerException

also I am using com.ibm.ejs.ns.jndi.CNInitialContextFactory. I have no idea why everythings working in VA-java env. but not working when I am just using the JDK. I really need to app to run in the JDK env. Am I missing any configuration need to be set before I run it in the command prompt? Thanks for any advice.

Francis Kwok
hwkwok@chorus.net
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 15 2002
Added on Feb 18 2002
7 comments
281 views