CVS version / IIOPResolver class

Florent BENOIT <[email protected]>
Newsgroups gmane.comp.java.mx4j.devel
Message-ID <[email protected]>
    Hi,

In the class mx4j.remote.resolver.iiop.IIOPResolver

There is the method bindServer() which call getORB(environment) method

      stub.connect(getORB(environment));

And in getORB method, there is the following code :
         Properties props = new Properties();
         props.putAll(environment);
         orb = ORB.init((String[])null, props);


But, in class  mx4j.remote.ProviderFactory , method 
findProviderClassLoader(), there is an object which is bind in the 
environment.
       // Add the classloader as required by the spec
      
environment.put(JMXConnectorFactory.PROTOCOL_PROVIDER_CLASS_LOADER, 
classLoader);

So, the properties given to ORB.init method contains object and not 
string/string which could raise exception in ORB.init method (JacORB <= 
2.2) during the processing of properties as it is expected that 
Properties object contains String values ant that putAll method is 
strongly discouraged.
http://java.sun.com/j2se/1.4.2/docs/api/java/util/Properties.html

Regards,

Florent
smime.p7s (application/x-pkcs7-signature, 3.1 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.