We are currently migrating an application that uses CORBA to BEA
WebLogic 8.1 SP6. The surprising thing we are currently facing is that
we receive NO_IMPLEMENT exceptions whenever we try to transmit a null
reference.
The canonical example is that if we try to convert the literal null
reference, in CORBA also called OBJECT_NIL, into a reference,
org.omg.CORBA.Object nil =
orb.string_to_object( "IOR:00000000000000010000000000000000" );
then this also results in a NO_IMPLEMENT exception.
We Googled a lot, but couldn't find any relevant information, which is
also a surprise. If BEA had such a catastrophic defect, how can it be
that we are the only ones that experiencing it?
The question is whether we are doing something wrong? The code sample
above is simple enough to be sure that we make no coding error. Is
there any special property that explicitly needs to be set to activate
support for null references on BEA? The BEA docs simply state that
IIOP is supported.
Thanks for hints,
Michael.
huch - 06 Oct 2006 14:02 GMT
We solved this problem by using the following properties for the
creation of the initial context:
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
p.put(Context.PROVIDER_URL, iiop://host:port);
InitialContext c = new InitialContext(p)
We replaced "com.sun.jndi.cosnaming.CNCtxFactory" with the weblogic
specific factory.
Markus