My web application calls the backend via a CORBA call. When the code - orb.string_to_object(ior) is called, I get a NullPointerException.
My stack trace reveals specifically where the exception is occurring:
at com.sun.corba.se.internal.core.Profile.getEncapsulation(Profile.java:154)
at com.sun.corba.se.internal.core.IOR.putProfile(IOR.java:302)
at com.sun.corba.se.internal.core.IOR.setProfile(IOR.java:131)
at com.sun.corba.se.internal.core.IOR.read(IOR.java:231)
at com.sun.corba.se.internal.iiop.CDRInputStream.read_Object(CDRInputStream.java:585)
at com.sun.corba.se.internal.iiop.CDRInputStream.read_Object(CDRInputStream.java:578)
at com.sun.corba.se.internal.corba.ORB.string_to_object(ORB.java:1075)
This only happens in the JBoss+Tomcat deployment using JDK1.3.
I note that tonygi had this exact same problem back on 7th Dec 2001. I wonder if he got a solution.
Any help would be much appreciated.
After delving through much Sun source code, it looks as though there is a bug when decoding IORs, at least in JDK 1.3.
Suffice it to say that a workaround is to put
com.sun.corba.se.internal.util.JDKBridge.setLocalCodebase(null);
before calling ORB.init(...)
bruce
------------------------
Free Java FTP library at
http://www.enterprisedt.com/downloads/ftp.html