java.util.ConcurrentModificationException: Reader = 0, Writer = 2

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

java.util.ConcurrentModificationException: Reader = 0, Writer = 2
at org.apache.jena.tdb.sys.DatasetControlMRSW.policyError(DatasetControlMRSW.java:157)
at org.apache.jena.tdb.sys.DatasetControlMRSW.policyError(DatasetControlMRSW.java:152)
at org.apache.jena.tdb.sys.DatasetControlMRSW.checkConcurrency(DatasetControlMRSW.java:81)
at org.apache.jena.tdb.sys.DatasetControlMRSW.startUpdate(DatasetControlMRSW.java:60)
at org.apache.jena.tdb.store.nodetupletable.NodeTupleTableConcrete.startWrite(NodeTupleTableConcrete.java:65)
at org.apache.jena.tdb.store.nodetupletable.NodeTupleTableConcrete.addRow(NodeTupleTableConcrete.java:82)
at org.apache.jena.tdb.store.TripleTable.add(TripleTable.java:55)
at org.apache.jena.tdb.store.DatasetGraphTDB.addToDftGraph(DatasetGraphTDB.java:94)
at org.apache.jena.sparql.core.DatasetGraphTriplesQuads.add(DatasetGraphTriplesQuads.java:47)
at org.apache.jena.sparql.core.GraphView.performAdd(GraphView.java:148)
at org.apache.jena.graph.impl.GraphBase.add(GraphBase.java:181)
at org.apache.jena.rdf.model.impl.ModelCom.add(ModelCom.java:1152)
at org.apache.jena.rdf.model.impl.ResourceImpl.addProperty(ResourceImpl.java:279)
at org.apache.jena.rdf.model.impl.ModelCom.createResource(ModelCom.java:602)
at au.org.aekos.service.metric.JenaMetricsStorageService.recordRequestHelper(JenaMetricsStorageService.java:121)
at au.org.aekos.service.metric.JenaMetricsStorageService.recordRequest(JenaMetricsStorageService.java:58)
at au.org.aekos.service.metric.ApiMetricsAspect.afterCallingSpeciesDataDotJson(ApiMetricsAspect.java:260)
at sun.reflect.GeneratedMethodAccessor260.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:620)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:602)
at org.springframework.aop.aspectj.AspectJAfterReturningAdvice.afterReturning(AspectJAfterReturningAdvice.java:62)
at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:53)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:59)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at au.org.aekos.controller.ApiV1SpeciesRetrievalController$$EnhancerBySpringCGLIB$$658ff04b.speciesDataDotJson()
at sun.reflect.GeneratedMethodAccessor259.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.