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

I can't get to first base

0 views
Skip to first unread message

Albert Wehrman

unread,
Nov 16, 2000, 3:00:00 AM11/16/00
to
Hi,

I am using JacORB with jdk1.3 on nt 4.0. My simple server is listed
below. When I run it it claims that it cannot resolve the name
"RootPOA" see trace back below. This code should work. So my question is
there some environmental problem. Something I missed in installing
JacORB.

Thanks in advance

trace back

org.omg.CORBA.COMM_FAILURE: minor code: 1398079490 completed: No
at
com.sun.corba.se.internal.iiop.IIOPConnection.writeLock(Unknown Source)
at com.sun.corba.se.internal.iiop.IIOPConnection.send(Unknown
Source)
at
com.sun.corba.se.internal.iiop.IIOPOutputStream.invoke(Unknown Source)
at
com.sun.corba.se.internal.iiop.ClientRequestImpl.invoke(Unknown Source)
at com.sun.corba.se.internal.corba.ClientDelegate.invoke(Unknown
Source)
at
com.sun.corba.se.internal.corba.InitialNamingClient.resolve(Unknown
Source)
at
com.sun.corba.se.internal.corba.InitialNamingClient.cachedInitialReferences(Unknown
Source)
at
com.sun.corba.se.internal.corba.InitialNamingClient.resolve_initial_references(Unknown
Source)
at
com.sun.corba.se.internal.corba.ORB.resolve_initial_references(Unknown
Source)
at Server.main(Server.java:13)

The source code for my sever:

import grid.*;
import java.io.*;

public class Server
{
public static void main( String[] args )
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(args, null);
try
{
MyServerImpl srv = new MyServerImpl();
org.omg.CORBA.Object o =
orb.resolve_initial_references("RootPOA");
org.omg.PortableServer.POA poa =
org.omg.PortableServer.POAHelper.narrow(o);

poa.the_POAManager().activate();

poa.activate_object_with_id("SDRC/ms9/OI_Server".getBytes(),
srv);
o = poa.servant_to_reference(srv);
System.out.println(orb.object_to_string( o ) );
orb.run();
}
catch ( Exception e )
{
e.printStackTrace();
}
}
}

Albert.Wehrman.vcf

Bill Lloyd

unread,
Nov 16, 2000, 3:00:00 AM11/16/00
to
You are picking up the JDK's built in ORB (see the com.sun.corba stuff...).
You need to override the ORB and ORBSingleton. This is typically done
through properties or command line arguments or by placing an orb.properties
file along side rt.jar (note there are 2 rt.jars on your machine, and
typically it needs to be the on for the JRE, not the JDK, but doing both is
sometimes easier).

Perhaps JacORB has some documentation on this, I'm not sure. The release
notes for Orbix 2000 for Java, Orbacus, and Visibroker for Java all
demonstrate this, but they give the options for those ORBs, not for JacORB.

-B

"Albert Wehrman" <Albert....@sdrc.com> wrote in message
news:3A1403A7...@sdrc.com...

0 new messages