[jacorb-developer] ssliop issue

jedypjd at sina.com jedypjd at sina.com
Mon Apr 8 04:16:03 CEST 2013


dear developers:
        
        I use jacorba 3.2 resently,when I use SSL protocol over iiop,there is something wrong:
 
 
NameServiceCfg = NameService=corbaloc:ssliop:1.2 at 127.0.0.1:59663/NameService
 
       
##########################                       ##   SSL Configuration   ##                       ########################### Whether SSL security is enabled.jacorb.security.support_ssl=on## The port number used by SSL, will be dynmically assigned# by default##OASSLPort=4711# This interceptor must be set if programs need access to# certificates using the CORBA Security API, SSL works also# without this interceptororg.omg.PortableInterceptor.ORBInitializerClass.ForwardInit=org.jacorb.security.ssl.sun_jsse.SecurityServiceInitializer# The qualified classname of the ssl socket factory classjacorb.ssl.socket_factory=org.jacorb.security.ssl.sun_jsse.SSLSocketFactory# The qualified classname of the ssl server socket factory classjacorb.ssl.server_socket_factory=org.jacorb.security.ssl.sun_jsse.SSLServerSocketFactory# IIOP/SSL parameters (numbers are hex values, without the leading "0x"):# NoProtection = 1# EstablishTrustInClient = 40# EstablishTrustInTarget = 20# mutual authentication = 60# please see the programming guide for more explanationjacorb.security.ssl.client.supported_options=20jacorb.security.ssl.client.required_options=20jacorb.security.ssl.server.supported_options=20jacorb.security.ssl.server.required_options=1## If set, the following two values will be placed in the IOR, if# "corbaloc:ssliop" ssliop.## If not set, only EstablishTrustInTarget is used for both supported# and required options. EstablishTrustInClient is not set, and the# rest of the Association Options aren't currently used anyway.jacorb.security.ssl.corbaloc_ssliop.supported_options=40jacorb.security.ssl.corbaloc_ssliop.required_options=20
 
...
 
 
code:
props.setProperty("org.omg.CORBA.ORBInitRef", ConfigProperty.nameServiceCfg); props.setProperty("org.omg.CORBA.ORBInitRef.NotificationService", ConfigProperty.notificationCfg); orb = ORB.init(args, props); 
...org.omg.CORBA.Object ncObj = orb.resolve_initial_references("NameService"); (this throw exception)rootContext = NamingContextExtHelper.narrow(ncObj);
...
 
 
output:
2013-04-03 17:01:12,327 ERROR [com.nm.server.nbif.Server] - org.omg.CORBA.BAD_PARAM:   vmcid: SUN  minor code: 603  completed: Noorg.omg.CORBA.BAD_PARAM:   vmcid: SUN  minor code: 603  completed: Noat com.sun.corba.se.impl.logging.NamingSystemException.insBadAddress(Unknown Source)at com.sun.corba.se.impl.logging.NamingSystemException.insBadAddress(Unknown Source)at com.sun.corba.se.impl.naming.namingutil.CorbalocURL.badAddress(Unknown Source)at com.sun.corba.se.impl.naming.namingutil.CorbalocURL.<init>(Unknown Source)at com.sun.corba.se.impl.naming.namingutil.INSURLHandler.parseURL(Unknown Source)at com.sun.corba.se.impl.resolver.INSURLOperationImpl.operate(Unknown Source)at com.sun.corba.se.impl.resolver.ORBInitRefResolverImpl.resolve(Unknown Source)at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(Unknown Source)at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(Unknown Source)at com.sun.corba.se.impl.orb.ORBImpl.resolve_initial_references(Unknown Source)at com.nm.server.nbif.Server.initRootContext(Server.java:231)at com.nm.server.nbif.Server.main(Server.java:196)
 


More information about the jacorb-developer mailing list