Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / CORBA / October 2006

Tip: Looking for answers? Try searching our database.

Corba null references and BEA WebLogic

Thread view: 
michab66@hotmail.com - 28 Sep 2006 15:01 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.