[ mx4j-Bugs-1021886 ] Wrong use of Properties in IIOPResolver class

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.java.mx4j.devel
Message-ID <[email protected]>
Bugs item #1021886, was opened at 2004-09-03 17:25
Message generated for change (Comment added) made by biorn_steedom
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=450647&aid=1021886&group_id=47745

>Category: JSR 160 Implementation
>Group: Release 2.0.1
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Florent BENOIT (fbenoit)
>Assigned to: Simone Bordet (biorn_steedom)
>Summary: Wrong use of Properties in IIOPResolver class

Initial Comment:
   Hi,

In the class mx4j.remote.resolver.iiop.IIOPResolver
(CVS version)

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 

----------------------------------------------------------------------

>Comment By: Simone Bordet (biorn_steedom)
Date: 2004-09-04 22:42

Message:
Logged In: YES 
user_id=128193

Fixed in CVS.
Thanks !

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=450647&aid=1021886&group_id=47745


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
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.