[jira] [Commented] (OPENJPA-2672) ConfigurationImpl.loadGlobals() has java.util.ConcurrentModificationException vulnerability
[ https://issues.apache.org/jira/browse/OPENJPA-2672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15641673#comment-15641673 ] Mark Struberg commented on OPENJPA-2672: Not quite sure if it really has to do with this change, but since then our build is broken on Linux. https://builds.apache.org/job/OpenJPA-2.4.x/8/ It builds fine on OSX though. Will try to reproduce on my local Fedora workstation. > ConfigurationImpl.loadGlobals() has java.util.ConcurrentModificationException > vulnerability > --- > > Key: OPENJPA-2672 > URL: https://issues.apache.org/jira/browse/OPENJPA-2672 > Project: OpenJPA > Issue Type: Bug > Components: lib >Affects Versions: 2.2.3, 2.4.1 >Reporter: Jody Grassel >Assignee: Jody Grassel > Fix For: 2.2.3, 2.4.2, 3.0.0 > > Attachments: OPENJPA_22X-2672.patch > > > The following block in the loadGlobals() method: > // let system properties override other globals > try { > fromProperties(new HashMap( > AccessController.doPrivileged( > J2DoPrivHelper.getPropertiesAction(; > retrieves a Properties object from System.getProperties(), which is passed to > HashMap's ctor. The ctor interacts with an enumerator associated with the > Properties object to populate the new HashMap instance. However, if another > thread mutates the JVM's System Properties, it can result in a > ConcurrentModificationException as observed below: > Caused by: java.util.ConcurrentModificationException > at java.util.Hashtable$Enumerator.next(Hashtable.java:1256) > at java.util.HashMap.putAllForCreate(HashMap.java:566) > at java.util.HashMap.(HashMap.java:310) > at > org.apache.openjpa.lib.conf.ConfigurationImpl.loadGlobals(ConfigurationImpl.java:189) -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OPENJPA-2672) ConfigurationImpl.loadGlobals() has java.util.ConcurrentModificationException vulnerability
[ https://issues.apache.org/jira/browse/OPENJPA-2672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15567788#comment-15567788 ] ASF subversion and git services commented on OPENJPA-2672: -- Commit 1764389 from [~ilgrosso] in branch 'openjpa/branches/2.4.x' [ https://svn.apache.org/r1764389 ] OPENJPA-2672: ConfigurationImpl.loadGlobals() has java.util.ConcurrentModificationException vulnerability > ConfigurationImpl.loadGlobals() has java.util.ConcurrentModificationException > vulnerability > --- > > Key: OPENJPA-2672 > URL: https://issues.apache.org/jira/browse/OPENJPA-2672 > Project: OpenJPA > Issue Type: Bug > Components: lib >Affects Versions: 2.2.3 >Reporter: Jody Grassel >Assignee: Jody Grassel > Fix For: 2.2.3, 3.0.0 > > Attachments: OPENJPA_22X-2672.patch > > > The following block in the loadGlobals() method: > // let system properties override other globals > try { > fromProperties(new HashMap( > AccessController.doPrivileged( > J2DoPrivHelper.getPropertiesAction(; > retrieves a Properties object from System.getProperties(), which is passed to > HashMap's ctor. The ctor interacts with an enumerator associated with the > Properties object to populate the new HashMap instance. However, if another > thread mutates the JVM's System Properties, it can result in a > ConcurrentModificationException as observed below: > Caused by: java.util.ConcurrentModificationException > at java.util.Hashtable$Enumerator.next(Hashtable.java:1256) > at java.util.HashMap.putAllForCreate(HashMap.java:566) > at java.util.HashMap.(HashMap.java:310) > at > org.apache.openjpa.lib.conf.ConfigurationImpl.loadGlobals(ConfigurationImpl.java:189) -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OPENJPA-2672) ConfigurationImpl.loadGlobals() has java.util.ConcurrentModificationException vulnerability
[ https://issues.apache.org/jira/browse/OPENJPA-2672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15564774#comment-15564774 ] Francesco Chicchiriccò commented on OPENJPA-2672: - It seems to me that the same issue affects both 2.4.x and trunk, and that the changes above are relevant there as well: am I correct? > ConfigurationImpl.loadGlobals() has java.util.ConcurrentModificationException > vulnerability > --- > > Key: OPENJPA-2672 > URL: https://issues.apache.org/jira/browse/OPENJPA-2672 > Project: OpenJPA > Issue Type: Bug > Components: lib >Affects Versions: 2.2.3 >Reporter: Jody Grassel >Assignee: Jody Grassel > Attachments: OPENJPA_22X-2672.patch > > > The following block in the loadGlobals() method: > // let system properties override other globals > try { > fromProperties(new HashMap( > AccessController.doPrivileged( > J2DoPrivHelper.getPropertiesAction(; > retrieves a Properties object from System.getProperties(), which is passed to > HashMap's ctor. The ctor interacts with an enumerator associated with the > Properties object to populate the new HashMap instance. However, if another > thread mutates the JVM's System Properties, it can result in a > ConcurrentModificationException as observed below: > Caused by: java.util.ConcurrentModificationException > at java.util.Hashtable$Enumerator.next(Hashtable.java:1256) > at java.util.HashMap.putAllForCreate(HashMap.java:566) > at java.util.HashMap.(HashMap.java:310) > at > org.apache.openjpa.lib.conf.ConfigurationImpl.loadGlobals(ConfigurationImpl.java:189) -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OPENJPA-2672) ConfigurationImpl.loadGlobals() has java.util.ConcurrentModificationException vulnerability
[ https://issues.apache.org/jira/browse/OPENJPA-2672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15563379#comment-15563379 ] ASF subversion and git services commented on OPENJPA-2672: -- Commit 1764177 from [~fyrewyld] in branch 'openjpa/branches/2.2.x' [ https://svn.apache.org/r1764177 ] OPENJPA-2672: ConfigurationImpl.loadGlobals() has java.util.ConcurrentModificationException vulnerability > ConfigurationImpl.loadGlobals() has java.util.ConcurrentModificationException > vulnerability > --- > > Key: OPENJPA-2672 > URL: https://issues.apache.org/jira/browse/OPENJPA-2672 > Project: OpenJPA > Issue Type: Bug > Components: lib >Affects Versions: 2.2.3 >Reporter: Jody Grassel >Assignee: Jody Grassel > Attachments: OPENJPA_22X-2672.patch > > > The following block in the loadGlobals() method: > // let system properties override other globals > try { > fromProperties(new HashMap( > AccessController.doPrivileged( > J2DoPrivHelper.getPropertiesAction(; > retrieves a Properties object from System.getProperties(), which is passed to > HashMap's ctor. The ctor interacts with an enumerator associated with the > Properties object to populate the new HashMap instance. However, if another > thread mutates the JVM's System Properties, it can result in a > ConcurrentModificationException as observed below: > Caused by: java.util.ConcurrentModificationException > at java.util.Hashtable$Enumerator.next(Hashtable.java:1256) > at java.util.HashMap.putAllForCreate(HashMap.java:566) > at java.util.HashMap.(HashMap.java:310) > at > org.apache.openjpa.lib.conf.ConfigurationImpl.loadGlobals(ConfigurationImpl.java:189) -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OPENJPA-2672) ConfigurationImpl.loadGlobals() has java.util.ConcurrentModificationException vulnerability
[ https://issues.apache.org/jira/browse/OPENJPA-2672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15563008#comment-15563008 ] ASF subversion and git services commented on OPENJPA-2672: -- Commit 1764159 from [~fyrewyld] in branch 'openjpa/branches/2.2.x' [ https://svn.apache.org/r1764159 ] OPENJPA-2672: ConfigurationImpl.loadGlobals() has java.util.ConcurrentModificationException vulnerability > ConfigurationImpl.loadGlobals() has java.util.ConcurrentModificationException > vulnerability > --- > > Key: OPENJPA-2672 > URL: https://issues.apache.org/jira/browse/OPENJPA-2672 > Project: OpenJPA > Issue Type: Bug > Components: lib >Affects Versions: 2.2.3 >Reporter: Jody Grassel >Assignee: Jody Grassel > Attachments: OPENJPA_22X-2672.patch > > > The following block in the loadGlobals() method: > // let system properties override other globals > try { > fromProperties(new HashMap( > AccessController.doPrivileged( > J2DoPrivHelper.getPropertiesAction(; > retrieves a Properties object from System.getProperties(), which is passed to > HashMap's ctor. The ctor interacts with an enumerator associated with the > Properties object to populate the new HashMap instance. However, if another > thread mutates the JVM's System Properties, it can result in a > ConcurrentModificationException as observed below: > Caused by: java.util.ConcurrentModificationException > at java.util.Hashtable$Enumerator.next(Hashtable.java:1256) > at java.util.HashMap.putAllForCreate(HashMap.java:566) > at java.util.HashMap.(HashMap.java:310) > at > org.apache.openjpa.lib.conf.ConfigurationImpl.loadGlobals(ConfigurationImpl.java:189) -- This message was sent by Atlassian JIRA (v6.3.4#6332)