java.util.ConcurrentModificationException

Pentaho BI Platform Tracking | Michael Cuthbert | 8 years ago
  1. 0

    Get connection problem after Orient Server restart

    Google Groups | 4 years ago | Fabrizio Fortino
    com.orientechnologies.orient.core.exception.OStorageException: Error on unload the tree: index #1:4
  2. 0

    QuickFIX/J Jira

    quickfixj.org | 3 months ago
    java.util.ConcurrentModificationException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    The reporting system that shows this problem pools it's datasources which are then provided to the DriverManager when getting an olap connection, multiple threads can be accessing this function (which obtains the Mondrian Connection) at any given time. The problem produces the following exception in the log: java.util.ConcurrentModificationException at java.util.TreeMap$PrivateEntryIterator.nextEntry(TreeMap.java:1100) at java.util.TreeMap$ValueIterator.next(TreeMap.java:1145) at mondrian.rolap.aggmatcher.AggTableManager.loadRolapStarAggregates(AggTableManager.java:226) at mondrian.rolap.aggmatcher.AggTableManager.initialize(AggTableManager.java:94) at mondrian.rolap.RolapSchema.load(RolapSchema.java:343) at mondrian.rolap.RolapSchema.<init>(RolapSchema.java:216) at mondrian.rolap.RolapSchema.<init>(RolapSchema.java:79) at mondrian.rolap.RolapSchema$Pool.get(RolapSchema.java:834) at mondrian.rolap.RolapSchema$Pool.get(RolapSchema.java:746) at mondrian.rolap.RolapConnection.<init>(RolapConnection.java:159) at mondrian.rolap.RolapConnection.<init>(RolapConnection.java:83) at mondrian.olap.DriverManager.getConnection(DriverManager.java:110) at com.<CONFIDENTIAL>.service.providers.ras.RASProvider.getMondrianConnection(RASProvider.java:468) Ultimately this problem comes from the JdbcSchema class that has a member variable called tables which is initialized on line 1104 as follows: private final SortedMap<String, Table> tables = new TreeMap<String, Table>(); TreeMap is not a synchronized object and would need to be initialized as follows: private final SortedMap<String, Table> tables = (SortedMap)Collections.synchronizeMap(new TreeMap<String, Table>()); This problem does not show up consistently, however regularly enough that it causes problems when trying to load reports that have data from the Olap cube, and the more users that are using the system causing it to show up more frequently. Unless I am missing something this seems like a fairly straight forward thing to fix.

    Pentaho BI Platform Tracking | 8 years ago | Michael Cuthbert
    java.util.ConcurrentModificationException

    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.TreeMap$PrivateEntryIterator.nextEntry()
    2. Java RT
      TreeMap$ValueIterator.next
      1. java.util.TreeMap$PrivateEntryIterator.nextEntry(TreeMap.java:1100)
      2. java.util.TreeMap$ValueIterator.next(TreeMap.java:1145)
      2 frames