java.util.ConcurrentModificationException

Pentaho BI Platform Tracking | Marc Batchelor | 3 years ago
  1. 0

    I got this stack when starting: java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(Unknown Source) at java.util.HashMap$KeyIterator.next(Unknown Source) at org.pentaho.platform.engine.core.system.objfac.AggregateObjectFactory.getObjectReference(AggregateObjectFactory.java:234) at org.pentaho.platform.engine.core.system.objfac.AggregateObjectFactory.get(AggregateObjectFactory.java:200) at org.pentaho.platform.engine.core.system.objfac.AggregateObjectFactory.get(AggregateObjectFactory.java:87) at org.pentaho.platform.engine.core.system.PentahoSystem.getCacheManager(PentahoSystem.java:1097) at com.pentaho.geo.service.DefaultGeoStorage.<init>(SourceFile:55) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at com.pentaho.geo.service.___.____(SourceFile:47) at com.pentaho.geo.service.___.____(SourceFile:38) at com.pentaho.geo.service.CsvReader.<init>(SourceFile:95) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at com.pentaho.geo.service.___.__(SourceFile:105) at com.pentaho.geo.service.___.__(SourceFile:97) at com.pentaho.geo.service.GeoLifecycleListener$____.run(SourceFile:62) at java.lang.Thread.run(Unknown Source) The documentation for the synchronizedCollection objects is very clear: "It is imperative that the user manually synchronize on the returned collection when iterating over it:" This class iterates over the set many many times without synchronizing on on it.

    Pentaho BI Platform Tracking | 3 years ago | Marc Batchelor
    java.util.ConcurrentModificationException
  2. 0

    I got this stack when starting: java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(Unknown Source) at java.util.HashMap$KeyIterator.next(Unknown Source) at org.pentaho.platform.engine.core.system.objfac.AggregateObjectFactory.getObjectReference(AggregateObjectFactory.java:234) at org.pentaho.platform.engine.core.system.objfac.AggregateObjectFactory.get(AggregateObjectFactory.java:200) at org.pentaho.platform.engine.core.system.objfac.AggregateObjectFactory.get(AggregateObjectFactory.java:87) at org.pentaho.platform.engine.core.system.PentahoSystem.getCacheManager(PentahoSystem.java:1097) at com.pentaho.geo.service.DefaultGeoStorage.<init>(SourceFile:55) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at com.pentaho.geo.service.___.____(SourceFile:47) at com.pentaho.geo.service.___.____(SourceFile:38) at com.pentaho.geo.service.CsvReader.<init>(SourceFile:95) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at com.pentaho.geo.service.___.__(SourceFile:105) at com.pentaho.geo.service.___.__(SourceFile:97) at com.pentaho.geo.service.GeoLifecycleListener$____.run(SourceFile:62) at java.lang.Thread.run(Unknown Source) The documentation for the synchronizedCollection objects is very clear: "It is imperative that the user manually synchronize on the returned collection when iterating over it:" This class iterates over the set many many times without synchronizing on on it.

    Pentaho BI Platform Tracking | 3 years ago | Marc Batchelor
    java.util.ConcurrentModificationException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  1. iridic 2 times, last 3 weeks ago
  2. franky li 1 times, last 1 month ago
  3. bpbhat77 2 times, last 3 months ago
  4. bpbhat77 1 times, last 5 months ago
  5. asvid 2 times, last 6 months ago
1 more registered users
9 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.util.ConcurrentModificationException

    No message provided

    at java.util.HashMap$HashIterator.nextEntry()
  2. Java RT
    HashMap$KeyIterator.next
    1. java.util.HashMap$HashIterator.nextEntry(Unknown Source)
    2. java.util.HashMap$KeyIterator.next(Unknown Source)
    2 frames
  3. org.pentaho.platform
    PentahoSystem.getCacheManager
    1. org.pentaho.platform.engine.core.system.objfac.AggregateObjectFactory.getObjectReference(AggregateObjectFactory.java:234)
    2. org.pentaho.platform.engine.core.system.objfac.AggregateObjectFactory.get(AggregateObjectFactory.java:200)
    3. org.pentaho.platform.engine.core.system.objfac.AggregateObjectFactory.get(AggregateObjectFactory.java:87)
    4. org.pentaho.platform.engine.core.system.PentahoSystem.getCacheManager(PentahoSystem.java:1097)
    4 frames
  4. com.pentaho.geo
    DefaultGeoStorage.<init>
    1. com.pentaho.geo.service.DefaultGeoStorage.<init>(SourceFile:55)
    1 frame
  5. Java RT
    Class.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    4. java.lang.reflect.Constructor.newInstance(Unknown Source)
    5. java.lang.Class.newInstance0(Unknown Source)
    6. java.lang.Class.newInstance(Unknown Source)
    6 frames
  6. com.pentaho.geo
    CsvReader.<init>
    1. com.pentaho.geo.service.___.____(SourceFile:47)
    2. com.pentaho.geo.service.___.____(SourceFile:38)
    3. com.pentaho.geo.service.CsvReader.<init>(SourceFile:95)
    3 frames
  7. Java RT
    Class.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    4. java.lang.reflect.Constructor.newInstance(Unknown Source)
    5. java.lang.Class.newInstance0(Unknown Source)
    6. java.lang.Class.newInstance(Unknown Source)
    6 frames
  8. com.pentaho.geo
    GeoLifecycleListener$____.run
    1. com.pentaho.geo.service.___.__(SourceFile:105)
    2. com.pentaho.geo.service.___.__(SourceFile:97)
    3. com.pentaho.geo.service.GeoLifecycleListener$____.run(SourceFile:62)
    3 frames
  9. Java RT
    Thread.run
    1. java.lang.Thread.run(Unknown Source)
    1 frame