Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

corba - differences between WLS 7.02 / WLS 8.1

5 views
Skip to first unread message

Alain Pigeon

unread,
Aug 13, 2003, 12:42:35 PM8/13/03
to
From: "Alain Pigeon" <a_NOSPA...@metasolv.com>
Sender: "Alain Pigeon" <a_NOSPA...@metasolv.com>
Reply-To: "Alain Pigeon" <a_NOSPA...@metasolv.com>
Subject: corba - differences between WLS 7.02 / WLS 8.1
Newsgroups: weblogic.developer.interest.rmi-iiop
X-User-Info: 66.46.208.5
NNTP-Posting-Host: 66.46.208.5
X-Original-NNTP-Posting-Host: 66.46.208.5
Message-ID: <3f3a6a7b$1...@newsgroups.bea.com>
Date: 13 Aug 2003 09:42:35 -0700
X-Trace: newsgroups.bea.com 1060792955 66.46.208.5 (13 Aug 2003 09:42:35 -0700)
X-Original-Trace: 13 Aug 2003 09:42:35 -0700, 66.46.208.5
Organization: BEA NEWS SITE
Lines: 32
XPident: Unknown
Path: newsgroups.bea.com!not-for-mail
Xref: newsgroups.bea.com weblogic.developer.interest.rmi-iiop:2188


In WLS 7.02 the following piece of code works, but in WLS 8.1 I get an exception
on the last line (see the log below). Would someone have a clue why it’s not working
with WLS 8.1

PS: If you want to send me an email, remove the _NOSPAM_

TIA !


public OimSessionInstance openSession() throws EomSessionException {

Properties props = new Properties();
props.put("org.omg.CORBA.ORBInitialPort", (new Short(corbaPortNumber)).toString());
props.put("org.omg.CORBA.ORBInitialHost", serverHost);

try {
orb = ORB.init((String[]) null, props);

String[] services = orb.list_initial_services();

// setting up the CORBA stuff
org.omg.CORBA.Object objRef = orb.resolve_initial_references("NameService");

EomSessionException: class EomSession, method corbaConnection to OIM : exception
: org.omg.CORBA.MARSHAL: Exception waiting for response; nested exception is:
java.io.EOFException: GIOP protocol error vmcid: 0x0 minor code: 0
completed: No
at EomDefaultConnection.openSession(EomDefaultConnection.java:114)
at EomSession.<init>(EomSession.java:78)

Alain Pigeon

unread,
Aug 13, 2003, 1:19:57 PM8/13/03
to


Found a solution:
In WLS7.0 the code automatically returned the SUN ORB found in the rt.jar. But
in WLS8.1 you have to force it to the SUN ORB by specifying it in the properties
file used to instantiate the ORB.

Example:

public OimSessionInstance openSession() throws EomSessionException {

String ORBClassName = "com.sun.corba.se.internal.iiop.ORB";
String ORBSingletonClassName = "com.sun.corba.se.internal.corba.ORBSingleton";

Properties props = new Properties();

props.put("org.omg.CORBA.ORBClass" , ORBClassName);
props.put("org.omg.CORBA.ORBSingletonClass" , ORBSingletonClassName);

Madhavi Vemuri

unread,
Jan 7, 2005, 3:27:09 AM1/7/05
to
Hi,
I am using this code to do ORB initialization from weblogic8.1 It is giving InvalidName exception. Below in stacktrace is given:
org.omg.CORBA.ORBPackage.InvalidName
at com.sun.corba.se.internal.corba.InitialNamingClient.cachedInitialReferences(InitialNamingClient.java:1189)
at com.sun.corba.se.internal.corba.InitialNamingClient.resolve_initial_references(InitialNamingClient.java:1079)
at com.sun.corba.se.internal.corba.ORB.resolve_initial_references(ORB.java:2436)
at pi.serviceexample.Client.main(Client.java:52)


Pls let me know how to go about it.
Thanks!!

sabhaya....@gmail.com

unread,
Aug 12, 2016, 2:40:54 AM8/12/16
to
hello,
i am facing the same error. please let me know if you find any solution.
Thanks
0 new messages