[ mx4j-Bugs-1021886 ] CVS version / 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 15:25
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=450647&aid=1021886&group_id=47745
Category: RMI Adaptor/Connector
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Florent BENOIT (fbenoit)
Assigned to: Nobody/Anonymous (nobody)
Summary: CVS version / 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
----------------------------------------------------------------------
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