Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

WARNING: "IOP00410201: (COMM_FAILURE)

 
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bennet Xavier
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Onion rings are vegetable donuts. Taste this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic