[prev in list] [next in list] [prev in thread] [next in thread]
List: jacorb-developer
Subject: Re: [jacorb-developer] COMM_FAILURE in HP-UX
From: Prodipta Golder <pgoldy_77 () yahoo ! co ! in>
Date: 2010-02-16 13:02:33
Message-ID: 148661.63263.qm () web8905 ! mail ! in ! yahoo ! com
[Download RAW message or body]
My server is running on JacORB. But my client use Sun ORB for corba connection.
I have run my server using below command :
ant start-server-java
The "start-server-java" target is given below
<target name="start-server-java" depends="init" description="...">
<echo message="Make sure name service is running at ${nameservice-address}" \
/>
<java classname="MyServerMain" fork="true" >
<jvmarg value="-Djava.endorsed.dirs=${jacorb-home}/lib"/>
<jvmarg value="-Djacorb.home=${jacorb-home}"/>
<jvmarg value="-Dorg.omg.CORBA.ORBClass=org.jacorb.orb.ORB"/>
<jvmarg value="-Dorg.omg.CORBA.ORBSingletonClass=org.jacorb.orb.ORBSingleton"/>
<jvmarg value="-Djava.library.path=lib"/>
<jvmarg value="-DORBInitRef.NameService=corbaloc::${nameservice-address}/NameService"/>
<jvmarg value="-DDB_CONFIG_PATH=${config}/dbconfig.properties" />
<jvmarg value="-Xmx200M"/>
<classpath>
...
</classpath>
</java>
</target>
Regards,
Prodipta.
--- On Tue, 16/2/10, andre.spiegel@o2online.de <andre.spiegel@o2online.de> wrote:
From: andre.spiegel@o2online.de <andre.spiegel@o2online.de>
Subject: Re: [jacorb-developer] COMM_FAILURE in HP-UX
To: jacorb-developer@lists.spline.inf.fu-berlin.de
Date: Tuesday, 16 February, 2010, 17:05
Hello,
your error messages indicate that your program is not using JacORB, but Sun's ORB. \
This is most likely due to an incorrect setting of the configuration properties \
org.omg.ORBClass and org.omg.ORBSingletonClass. When these are set properly, the \
program should work just as it did on Windows.
Andre
-----Ursprüngliche Nachricht-----
Datum: Tue, 16 Feb 2010 11:40h
Von: Prodipta Golder <pgoldy_77@yahoo.co.in>
An: jacorb-developer@lists.spline.inf.fu-berlin.de
Betreff: [jacorb-developer] COMM_FAILURE in HP-UX
Please help.
I am getting the following errors frequently while running my sample
client in HP-UX. In windows its running fine:
Feb 16, 2010 3:16:32 PM
com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl <init>
WARNING: "IOP00410201:
(COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname:
172.20.140.143; port: 61807"
org.omg.CORBA.COMM_FAILURE: vmcid: SUN
minor code: 201 completed: No
at
com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(Unknown
Source)
at
com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(Unknown
Source)
at
com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(Unknown
Source)
at
com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(Unknown
Source)
at
com.sun.corba.se.impl.transport.SocketOrChannelContactInfoImpl.createConnection(Unknown
Source)
at
com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(Unknown
Source)
at
com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.request(Unknown Source)
at
com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.non_existent(Unknown
Source)
at
org.omg.CORBA.portable.ObjectImpl._non_existent(Unknown Source)
at
com.goldy.hello.Client.main(Client.java:24)
Caused by: java.net.ConnectException: Connection timed
out: connect
at
sun.nio.ch.Net.connect(Native Method)
at
sun.nio.ch.SocketChannelImpl.connect(Unknown Source)
at
java.nio.channels.SocketChannel.open(Unknown Source)
at
com.sun.corba.se.impl.transport.DefaultSocketFactoryImpl.createSocket(Unknown
Source)
...
8 more
Name Server running on HP-UX 11i.
I am doing the following steps:
1. Run nameservice using below
command:
ns -DOAPort=4567
-DORBInitRef.NameService=corbaloc::172.20.1.40:4567/NameService
2. Running my server with the
name rms-1 to resolve the corba object
3. Run the below sample code.
try {
ORB
orb = ORB.init(args, null);
org.omg.CORBA.Object
initRef = orb.string_to_object("corbaloc::172.20.1.40:4567/NameService");
NamingContextExt namingContext =
NamingContextExtHelper.narrow(initRef);
NameComponent[] nameComponent = new
NameComponent[1];
nameComponent[0] = new NameComponent("rms-1", "");
org.omg.CORBA.Object
rmServerBaseObject = namingContext.resolve(nameComponent);
if (rmServerBaseObject._non_existent()) { // error here
System.out.println("object
no exists");
}
ResourceManager
rm = (ResourceManager) ResourceManagerHelper.narrow(rmServerBaseObject);
rm.initialise("goldy");
}
catch (Exception e) {
e.printStackTrace();
}
Regards,
Prodipta.
_______________________________________________
jacorb-developer maillist - jacorb-developer@lists.spline.inf.fu-berlin.de
https://lists.spline.inf.fu-berlin.de/mailman/listinfo/jacorb-developer
Unterwegs über Ihre E-Mails informiert mit der kostenlosen SMS-Benachrichtigung von \
o2! Mehr Infos unter http://www.o2online.de/goto/benachrichtigung
_______________________________________________
jacorb-developer maillist - jacorb-developer@lists.spline.inf.fu-berlin.de
https://lists.spline.inf.fu-berlin.de/mailman/listinfo/jacorb-developer
_______________________________________________
jacorb-developer maillist - jacorb-developer@lists.spline.inf.fu-berlin.de
https://lists.spline.inf.fu-berlin.de/mailman/listinfo/jacorb-developer
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic