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

GitHub | tomsaleeba | 5 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Make metrics gathering more scalable

    GitHub | 5 months ago | tomsaleeba
    java.util.ConcurrentModificationException: Reader = 0, Writer = 2

    Root Cause Analysis

    1. java.util.ConcurrentModificationException

      Reader = 0, Writer = 2

      at org.apache.jena.tdb.sys.DatasetControlMRSW.policyError()
    2. org.apache.jena
      ModelCom.createResource
      1. org.apache.jena.tdb.sys.DatasetControlMRSW.policyError(DatasetControlMRSW.java:157)
      2. org.apache.jena.tdb.sys.DatasetControlMRSW.policyError(DatasetControlMRSW.java:152)
      3. org.apache.jena.tdb.sys.DatasetControlMRSW.checkConcurrency(DatasetControlMRSW.java:81)
      4. org.apache.jena.tdb.sys.DatasetControlMRSW.startUpdate(DatasetControlMRSW.java:60)
      5. org.apache.jena.tdb.store.nodetupletable.NodeTupleTableConcrete.startWrite(NodeTupleTableConcrete.java:65)
      6. org.apache.jena.tdb.store.nodetupletable.NodeTupleTableConcrete.addRow(NodeTupleTableConcrete.java:82)
      7. org.apache.jena.tdb.store.TripleTable.add(TripleTable.java:55)
      8. org.apache.jena.tdb.store.DatasetGraphTDB.addToDftGraph(DatasetGraphTDB.java:94)
      9. org.apache.jena.sparql.core.DatasetGraphTriplesQuads.add(DatasetGraphTriplesQuads.java:47)
      10. org.apache.jena.sparql.core.GraphView.performAdd(GraphView.java:148)
      11. org.apache.jena.graph.impl.GraphBase.add(GraphBase.java:181)
      12. org.apache.jena.rdf.model.impl.ModelCom.add(ModelCom.java:1152)
      13. org.apache.jena.rdf.model.impl.ResourceImpl.addProperty(ResourceImpl.java:279)
      14. org.apache.jena.rdf.model.impl.ModelCom.createResource(ModelCom.java:602)
      14 frames
    3. au.org.aekos
      ApiMetricsAspect.afterCallingSpeciesDataDotJson
      1. au.org.aekos.service.metric.JenaMetricsStorageService.recordRequestHelper(JenaMetricsStorageService.java:121)
      2. au.org.aekos.service.metric.JenaMetricsStorageService.recordRequest(JenaMetricsStorageService.java:58)
      3. au.org.aekos.service.metric.ApiMetricsAspect.afterCallingSpeciesDataDotJson(ApiMetricsAspect.java:260)
      3 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor260.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:498)
      3 frames
    5. Spring AOP
      CglibAopProxy$DynamicAdvisedInterceptor.intercept
      1. org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:620)
      2. org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:602)
      3. org.springframework.aop.aspectj.AspectJAfterReturningAdvice.afterReturning(AspectJAfterReturningAdvice.java:62)
      4. org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:53)
      5. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      6. org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:59)
      7. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      8. org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
      9. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      10. org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:655)
      10 frames
    6. au.org.aekos
      ApiV1SpeciesRetrievalController$$EnhancerBySpringCGLIB$$658ff04b.speciesDataDotJson
      1. au.org.aekos.controller.ApiV1SpeciesRetrievalController$$EnhancerBySpringCGLIB$$658ff04b.speciesDataDotJson(<generated>)
      1 frame
    7. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor259.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:498)
      3 frames