Article - CS324718
java.util.ConcurrentModificationException: null logged every 5 minutes in ThingWorx
Modified: 08-May-2020
Applies To
- ThingWorx Platform 8.1 to 9.0
Description
- Application.log is flooded with error:
[1,018] Data store unknown error: [Error occurred while accessing the property provider.]
Unable to persist entries because [1,018] Data store unknown error: [Error occurred while accessing the property provider.]
- Error is repeated after 5-10 minutes
- Error.log contains the following:
[L: ERROR] [O: E.c.q.l.c.Logger] [I: ] [U: SuperUser] [S: ] [P: ] [T: pool-18-thread-20] [1,018] Data store unknown error: [Error occurred while accessing the property provider.] java.util.ConcurrentModificationException: null
at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:909)
at java.util.ArrayList$Itr.next(ArrayList.java:859)
at com.thingworx.types.InfoTable.toBinary(InfoTable.java:1184)
at com.thingworx.types.InfoTable.writeToStream(InfoTable.java:1279)
at com.thingworx.types.primitives.InfoTablePrimitive.writeToStream(InfoTablePrimitive.java:260)
at com.thingworx.types.BaseTypes.WritePrimitiveToByteArray(BaseTypes.java:963)
at com.thingworx.persistence.postgres.PostgresPersistencePropertyProvider.setPreparedStatementUpsertValues(PostgresPersistencePropertyProvider.java:155)
at com.thingworx.persistence.postgres.PostgresPersistencePropertyProvider.updateProperty(PostgresPersistencePropertyProvider.java:107)
... 11 common frames omitted
Wrapped by: com.thingworx.common.exceptions.PropertyAccessException: [1,018] Data store unknown error: [Error occurred while accessing the property provider.]
at com.thingworx.persistence.postgres.PostgresPropertyExceptionTranslator.rethrowTranslated(PostgresPropertyExceptionTranslator.java:27)
at com.thingworx.persistence.postgres.PostgresPersistencePropertyProvider.updateProperty(PostgresPersistencePropertyProvider.java:133)
at com.thingworx.persistence.postgres.PostgresPersistencePropertyProvider.setPropertyVTQ(PostgresPersistencePropertyProvider.java:86)
at com.thingworx.persistence.provider.PersistentPropertyDataProcessor.persistEntries(PersistentPropertyDataProcessor.java:114)
at com.thingworx.persistence.provider.DefaultStreamEntryProcessor.processEntries(DefaultStreamEntryProcessor.java:27)
at com.thingworx.persistence.provider.StreamEntryProcessor$StreamQueueChecker.run(StreamEntryProcessor.java:515)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:909)
at java.util.ArrayList$Itr.next(ArrayList.java:859)
at com.thingworx.types.InfoTable.toBinary(InfoTable.java:1184)
at com.thingworx.types.InfoTable.writeToStream(InfoTable.java:1279)
at com.thingworx.types.primitives.InfoTablePrimitive.writeToStream(InfoTablePrimitive.java:260)
at com.thingworx.types.BaseTypes.WritePrimitiveToByteArray(BaseTypes.java:963)
at com.thingworx.persistence.postgres.PostgresPersistencePropertyProvider.setPreparedStatementUpsertValues(PostgresPersistencePropertyProvider.java:155)
at com.thingworx.persistence.postgres.PostgresPersistencePropertyProvider.updateProperty(PostgresPersistencePropertyProvider.java:107)
... 11 common frames omitted
Wrapped by: com.thingworx.common.exceptions.PropertyAccessException: [1,018] Data store unknown error: [Error occurred while accessing the property provider.]
at com.thingworx.persistence.postgres.PostgresPropertyExceptionTranslator.rethrowTranslated(PostgresPropertyExceptionTranslator.java:27)
at com.thingworx.persistence.postgres.PostgresPersistencePropertyProvider.updateProperty(PostgresPersistencePropertyProvider.java:133)
at com.thingworx.persistence.postgres.PostgresPersistencePropertyProvider.setPropertyVTQ(PostgresPersistencePropertyProvider.java:86)
at com.thingworx.persistence.provider.PersistentPropertyDataProcessor.persistEntries(PersistentPropertyDataProcessor.java:114)
at com.thingworx.persistence.provider.DefaultStreamEntryProcessor.processEntries(DefaultStreamEntryProcessor.java:27)
at com.thingworx.persistence.provider.StreamEntryProcessor$StreamQueueChecker.run(StreamEntryProcessor.java:515)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
This is a printer-friendly version of Article 324718 and may be out of date. For the latest version click CS324718