Sagewire Logo

Corba null references and BEA WebLogic

2 Message(s) by 2 Author(s) originally posted in java corba


From: michab66 Date:   Thursday, September 28, 2006
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 could not 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.


From: huch Date:   Friday, October 06, 2006
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



Next Message: ...looking for a stable and free CORBA ORB


Blogs related to Corba null references and BEA WebLogic

Visibooks & Others
Java.2.JDK.5Th.Ed.ISBN0764568744.pdf John.Wiley.Sons.Location.based.Services.Fundamentals.and.Operation.Sep.eBook-LinG.pdf John.Wiley.Sons.Macromedia.Studio.MX.2004.Bible.eBook-LiB.chm John.Wiley.Sons.Mastering.BEA.WebLogic.Server-Best. ...

Enterprise Java Beans
DOCTYPE weblogic-ejb-jar PUBLIC ‘-//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB//EN’ ‘http://www.bea.com/servers/wls510/dtd/weblogic-ejb-jar.dtd’< >weblogic-ejb-jar< >weblogic-enterprise-bean< >ejb-name< ...

java 面试
答:BEA WebLogic Server,IBM WebSphere Application Server,Oracle9i Application Server,jBoss,Tomcat. 109、如何设定的weblogic的热启动模式(开发模式)与产品发布模式? 答:可以在管理控制台中修改对应服务器的启动模式为开发或产品模式之一。 ...

java面试笔试题大汇总及c/c++面试试题(转载)
EJB通过以下技术管理实务:对象管理组织(OMG)的对象实务服务(OTS),Sun Microsystems的Transaction Service(JTS)、Java Transaction API(JTA),开发组(X/Open)的XA接口。 32、应用服务器有那些? BEA WebLogic Server,IBM WebSphere ...

java faqs
Or a NullPointerException will take place if you try using a null reference. In most of the cases it is possible to recover from an exception (probably by giving user a feedback for entering proper values etc.). ...

PdfChm series
Addison-Wesley, Advanced Corba Programming With C (1999); Bm Ocr 6.0 Shareconnector.pdf ... NET Framework Standard Library Annotated Reference Volume 1.pdf ... BEA.WebLogic.Workshop.8.1.Kick.Start.Simplifying.Java.Web.Applications.and. ...


Programming | Sports | Autos

copyright 2006
Valid XHTML 1.0 Transitional