Forums Register Login

WARNING: "IOP00410201: (COMM_FAILURE)

+Pie Number of slices to send: Send
Hi All,

i tried executing stateless session bean in glassfish Sun Java System Application Server 9.1.

i am getting the warning message which is mentioned below.

WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR
_TEXT; hostname: localhost; port: 3700"
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(O
RBUtilSystemException.java:2690)
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(O
RBUtilSystemException.java:2711)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(
SocketOrChannelConnectionImpl.java:261)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(
SocketOrChannelConnectionImpl.java:274)
at com.sun.corba.ee.impl.transport.SocketOrChannelContactInfoImpl.create
Connection(SocketOrChannelContactInfoImpl.java:130)
at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.begin
Request(CorbaClientRequestDispatcherImpl.java:192)
at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaC
lientDelegateImpl.java:181)
at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClie
ntDelegateImpl.java:325)
at org.omg.CORBA.portable.ObjectImpl._is_a(Unknown Source)
at org.omg.CosNaming.NamingContextHelper.narrow(Unknown Source)
at com.sun.enterprise.naming.SerialContext.narrowProvider(SerialContext.
java:131)
at com.sun.enterprise.naming.SerialContext.getCachedProvider(SerialConte
xt.java:247)
at com.sun.enterprise.naming.SerialContext.getRemoteProvider(SerialConte
xt.java:205)
at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.jav
a:160)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:398
)
at javax.naming.InitialContext.lookup(Unknown Source)
at com.bekijkhet.helloclient.HelloClient.main(Unknown Source)
Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection ref
used: connect
at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSock
etFactory.java:347)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(
SocketOrChannelConnectionImpl.java:244)
... 14 more
Caused by: java.net.ConnectException: Connection refused: connect
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(Unknown Source)
at com.sun.corba.ee.impl.orbutil.ORBUtility.openSocketChannel(ORBUtility
.java:105)
at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSock
etFactory.java:332)
... 15 more

i dont know what went wrong..

i deployed the jar file successfully.

i am getting this warning when i tried to execute the client.

the client is shown below.

package com.bekijkhet.helloclient;
import javax.naming.*;
//import
import com.bekijkhet.Hello;

public class HelloClient {

// @EJB
private Hello hello;
public static void main(String[] args) {
try {
InitialContext ctx = new InitialContext();
// Piece of code to list all remote JNDI resources
//NamingEnumeration e = ctx.list("");
//while (e.hasMore()) {
// System.out.println(e.next());
//}
System.out.println("Started");
Hello h = (Hello)ctx.lookup("com.bekijkhet.Hello");
System.out.println(h.sayHello());
System.out.println(h.sayHelloRemote());
// Will fail because we call the Remote Business interface
// System.out.println(h.sayHelloLocal());
}
catch (Exception e) {
System.out.println("Exception");
e.printStackTrace();
}
}
}

please Help Me...

Thanks In Advance.
Bennet Xavier.X
+Pie Number of slices to send: Send
Hi All,

I found the answer.

just to change the port number of
<iiop-listener address="0.0.0.0" enabled="true" id="orb-listener-1" port="2382" security-enabled="false"/>

to 3700

in domain.xml in the specific domain that you have created.

or we can override the default port number(3700) by

java -Dorg.omg.CORBA.ORBInitialPort=2382
-classpath $APS_HOME/lib/appserv-rt.jar:$APS_HOME/lib/javaee.jar:/home/user1/myclasses acme.MyClient

thats it simple.

Thanks,
Bennet Xavier.X
[ December 17, 2008: Message edited by: Bennet Xavier ]
Humans and their filthy friendship brings nothing but trouble. My only solace is this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 14435 times.
Similar Threads
Using stand alone client appication
accessing glassfish EJB through external client
Error in connecting client application with EJB deployed in JBOSS
Question About Simple EJB Application..
Error getting EJB reference
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 12:23:20.