0 Replies Latest reply: Aug 11, 2011 8:28 PM by 839715 RSS

    CORBA warnning when creating InitialContext instance with JDK ORB

    839715
      Hi, all

      I got the CORBA warnning like,
      Aug 10, 2011 5:04:36 AM com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl <init>
      WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: 192.168.100.26; port: 900"
      org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
      at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2200)
      at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2221)
      at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:205)
      at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:218)
      at com.sun.corba.se.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:101)
      at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:152)
      at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:118)
      at com.sun.corba.se.impl.resolver.BootstrapResolverImpl.invoke(BootstrapResolverImpl.java:74)
      at com.sun.corba.se.impl.resolver.BootstrapResolverImpl.resolve(BootstrapResolverImpl.java:107)
      at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(CompositeResolverImpl.java:22)
      at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(CompositeResolverImpl.java:22)
      at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(CompositeResolverImpl.java:22)
      at com.sun.corba.se.impl.orb.ORBImpl.resolve_initial_references(ORBImpl.java:1138)
      at com.sun.jndi.cosnaming.CNCtx.setOrbAndRootContext(CNCtx.java:362)
      at com.sun.jndi.cosnaming.CNCtx.initUsingIiopUrl(CNCtx.java:309)
      at com.sun.jndi.cosnaming.CNCtx.initUsingUrl(CNCtx.java:264)
      at com.sun.jndi.cosnaming.CNCtx.initOrbAndRootContext(CNCtx.java:232)
      at com.sun.jndi.cosnaming.CNCtx.<init>(CNCtx.java:87)
      at com.sun.jndi.cosnaming.CNCtxFactory.getInitialContext(CNCtxFactory.java:32)
      at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
      at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
      at javax.naming.InitialContext.init(InitialContext.java:223)
      at javax.naming.InitialContext.<init>(InitialContext.java:197)

      when I tried to create the InitialContext instance. The code used for the construction is

      **************************************************************************
      Hashtable environment = new Hashtable();
      environment.put("java.naming.factory.initial",
      "com.sun.jndi.cosnaming.CNCtxFactory");
      environment.put("java.naming.provider.url", "iiop://" + hostname + ":"
      + portId);
      environment.put("java.naming.corba.orb", orb);
      log4jDebugLogger.debug("Creating naming context...");

      // Setup naming context
      namingContext = new InitialContext(environment);
      **************************************************************************
      and the hostname is 192.168.100.26, the port is specified as 1050.

      The arguments used for ORBD startup is

      /opt/cems/jre/bin/orbd -ORBInitialPort 1050 -ORBServerHost 47.154.158.82 -defaultdb /opt/cems/adm/orb.db -Dcom.sun.CORBA.connection.ORBHighWaterMark=4050 -Dcom.sun.CORBA.connection.ORBLowWaterMark=4000 -J-Xmx256m

      I'm frustrated as the above error is not reproducible 100%. I've specified the ORB server port as 1050, why the default value 900 is still used ?

      Any ideas for that?

      Thanks in advanced for your kind help.