geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "solprovider (JIRA)" <>
Subject [jira] Commented: (GERONIMO-3243) ActiveMQ violates System Properties
Date Sat, 26 Jan 2008 00:57:34 GMT


solprovider commented on GERONIMO-3243:

If you are worried about disabling the locking, just fix ActiveMQ.  If you can compile Java-1.5,
easy instructions are in the fourth comment:

2007-04-01: ActiveMQ-4.1.1 released broken.  This bug was in previous releases.
2007-05-28: Bug is reported.
2007-07-07: Fix submitted.
2007-07-23: Fix added to ActiveMQ-Trunk.
2007-10-18: Geronimo's most recent release did not include the fix..
2007-12-17: ActiveMQ-5.0.0 release includes the fix. .  

An ActiveMQ or Geronimo Committer should apply the fix  to the ActiveMQ-4.1.1 release (and
rename to ActiveMQ-4.1.1a?)   Code violating basic Java should not remain unpatched.

> ActiveMQ violates System Properties
> -----------------------------------
>                 Key: GERONIMO-3243
>                 URL:
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: ActiveMQ
>    Affects Versions: 2.0.1, 2.0.2
>            Reporter: solprovider
>            Priority: Blocker
>             Fix For: 2.1
> The latest Geronimo 1.2 and 2.0 use ActiveMQ.  (Would someone familiar with Geronimo
development please add all affected versions?)
> ActiveMQ adds a HashMap as a global Property named "".
> Properties must use Strings for keys and values per
> This causes any code reading all the Properties and expecting Strings to error.
> {code:title=Test Code|borderStyle=solid}
>    boolean test(){  //true = passes, false = failed.
>       boolean test = true;
>       java.util.Properties properties = System.getProperties();
>       java.util.Enumeration enumeration = properties.elements();
>       while(test & enumeration.hasMoreElements()) test= String.class.equals(enumeration.nextElement().getClass());
>       enumeration = properties.keys();
>       while(test & enumeration.hasMoreElements()) test= String.class.equals(enumeration.nextElement().getClass());
>       return test;
>    }
> {code}
> The permanent fix is for Geronimo to update to a better version of ActiveMQ, either downgrading
to before the bug was programmed or wait for the ActiveMQ team to follow the standards.  That
is unlikely to be tested and released quickly.
> The quick fix  is to disable the offensive code.  For Geronimo 1.2 on Windows, add this
line at the beginning of STARTUP.BAT:
> David Jencks suggested that Geronimo can set the
property in a Geronimo SystemProperties gbean, there's one called ServerSystemProperties in

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message