java.util.ConcurrentModificationException

Spring JIRA | hari iyer | 4 years ago
  1. 0

    A ConcurrentModificationException is thrown while intercepting a method pointcut. This seems to be on the same lines as the bug: https://jira.springsource.org/browse/SPR-5687 {code} Stack trace: java.util.ConcurrentModificationException at java.util.HashMap$AbstractMapIterator.checkConcurrentMod(HashMap.java:122) at java.util.HashMap$AbstractMapIterator.makeNext(HashMap.java:127) at java.util.HashMap$KeyIterator.next(HashMap.java:200) at org.aspectj.apache.bcel.util.NonCachingClassLoaderRepository$SoftHashMap.clear(NonCachingClassLoaderRepository.java:152) at org.aspectj.apache.bcel.util.NonCachingClassLoaderRepository.clear(NonCachingClassLoaderRepository.java:228) at org.aspectj.weaver.reflect.Java15AnnotationFinder.getAnnotations(Java15AnnotationFinder.java:223) at org.aspectj.weaver.reflect.ReflectionBasedResolvedMemberImpl.unpackAnnotations(ReflectionBasedResolvedMemberImpl.java:213) at org.aspectj.weaver.reflect.ReflectionBasedResolvedMemberImpl.hasAnnotation(ReflectionBasedResolvedMemberImpl.java:169) at org.aspectj.weaver.JoinPointSignature.hasAnnotation(JoinPointSignature.java:82) at org.aspectj.weaver.patterns.ExactAnnotationTypePattern.matches(ExactAnnotationTypePattern.java:102) at org.aspectj.weaver.patterns.ExactAnnotationTypePattern.matches(ExactAnnotationTypePattern.java:96) at org.aspectj.weaver.patterns.SignaturePattern.matchesAnnotations(SignaturePattern.java:717) at org.aspectj.weaver.patterns.SignaturePattern.matchesExactly(SignaturePattern.java:371) at org.aspectj.weaver.patterns.SignaturePattern.matches(SignaturePattern.java:319) at org.aspectj.weaver.patterns.KindedPointcut.matchInternal(KindedPointcut.java:202) at org.aspectj.weaver.patterns.Pointcut.match(Pointcut.java:134) at org.aspectj.weaver.internal.tools.PointcutExpressionImpl.getShadowMatch(PointcutExpressionImpl.java:239) at org.aspectj.weaver.internal.tools.PointcutExpressionImpl.matchesExecution(PointcutExpressionImpl.java:105) at org.aspectj.weaver.internal.tools.PointcutExpressionImpl.matchesMethodExecution(PointcutExpressionImpl.java:96) at org.springframework.security.intercept.method.ProtectPointcutPostProcessor.attemptMatch(ProtectPointcutPostProcessor.java:118) at org.springframework.security.intercept.method.ProtectPointcutPostProcessor.postProcessBeforeInitialization(ProtectPointcutPostProcessor.java:106) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.configureBean(AbstractAutowireCapableBeanFactory.java:315) at org.springframework.beans.factory.wiring.BeanConfigurerSupport.configureBean(BeanConfigurerSupport.java:146) at org.springframework.beans.factory.aspectj.AnnotationBeanConfigurerAspect.configureBean(AnnotationBeanConfigurerAspect.aj:59) at org.springframework.beans.factory.aspectj.AbstractDependencyInjectionAspect.ajc$before$org_springframework_beans_factory_aspectj_AbstractDependencyInjectionAspect$1$e854fa65(AbstractDependencyInjectionAspect.aj:80) {code}

    Spring JIRA | 4 years ago | hari iyer
    java.util.ConcurrentModificationException
  2. 0

    A ConcurrentModificationException is thrown while intercepting a method pointcut. This seems to be on the same lines as the bug: https://jira.springsource.org/browse/SPR-5687 {code} Stack trace: java.util.ConcurrentModificationException at java.util.HashMap$AbstractMapIterator.checkConcurrentMod(HashMap.java:122) at java.util.HashMap$AbstractMapIterator.makeNext(HashMap.java:127) at java.util.HashMap$KeyIterator.next(HashMap.java:200) at org.aspectj.apache.bcel.util.NonCachingClassLoaderRepository$SoftHashMap.clear(NonCachingClassLoaderRepository.java:152) at org.aspectj.apache.bcel.util.NonCachingClassLoaderRepository.clear(NonCachingClassLoaderRepository.java:228) at org.aspectj.weaver.reflect.Java15AnnotationFinder.getAnnotations(Java15AnnotationFinder.java:223) at org.aspectj.weaver.reflect.ReflectionBasedResolvedMemberImpl.unpackAnnotations(ReflectionBasedResolvedMemberImpl.java:213) at org.aspectj.weaver.reflect.ReflectionBasedResolvedMemberImpl.hasAnnotation(ReflectionBasedResolvedMemberImpl.java:169) at org.aspectj.weaver.JoinPointSignature.hasAnnotation(JoinPointSignature.java:82) at org.aspectj.weaver.patterns.ExactAnnotationTypePattern.matches(ExactAnnotationTypePattern.java:102) at org.aspectj.weaver.patterns.ExactAnnotationTypePattern.matches(ExactAnnotationTypePattern.java:96) at org.aspectj.weaver.patterns.SignaturePattern.matchesAnnotations(SignaturePattern.java:717) at org.aspectj.weaver.patterns.SignaturePattern.matchesExactly(SignaturePattern.java:371) at org.aspectj.weaver.patterns.SignaturePattern.matches(SignaturePattern.java:319) at org.aspectj.weaver.patterns.KindedPointcut.matchInternal(KindedPointcut.java:202) at org.aspectj.weaver.patterns.Pointcut.match(Pointcut.java:134) at org.aspectj.weaver.internal.tools.PointcutExpressionImpl.getShadowMatch(PointcutExpressionImpl.java:239) at org.aspectj.weaver.internal.tools.PointcutExpressionImpl.matchesExecution(PointcutExpressionImpl.java:105) at org.aspectj.weaver.internal.tools.PointcutExpressionImpl.matchesMethodExecution(PointcutExpressionImpl.java:96) at org.springframework.security.intercept.method.ProtectPointcutPostProcessor.attemptMatch(ProtectPointcutPostProcessor.java:118) at org.springframework.security.intercept.method.ProtectPointcutPostProcessor.postProcessBeforeInitialization(ProtectPointcutPostProcessor.java:106) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.configureBean(AbstractAutowireCapableBeanFactory.java:315) at org.springframework.beans.factory.wiring.BeanConfigurerSupport.configureBean(BeanConfigurerSupport.java:146) at org.springframework.beans.factory.aspectj.AnnotationBeanConfigurerAspect.configureBean(AnnotationBeanConfigurerAspect.aj:59) at org.springframework.beans.factory.aspectj.AbstractDependencyInjectionAspect.ajc$before$org_springframework_beans_factory_aspectj_AbstractDependencyInjectionAspect$1$e854fa65(AbstractDependencyInjectionAspect.aj:80) {code}

    Spring JIRA | 4 years ago | hari iyer
    java.util.ConcurrentModificationException
  3. 0

    ConcurrentModificationException during: "Refreshing workspace".

    Eclipse Bugzilla | 6 years ago | tomasz.zarna
    java.util.ConcurrentModificationException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ConcurrentModificationException trying to search in the target platform preference page

    Eclipse Bugzilla | 6 years ago | Michael_Rennie
    org.eclipse.swt.SWTException: Failed to execute runnable (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.HashMap$AbstractMapIterator.checkConcurrentMod()
  2. Java RT
    HashMap$KeyIterator.next
    1. java.util.HashMap$AbstractMapIterator.checkConcurrentMod(HashMap.java:122)
    2. java.util.HashMap$AbstractMapIterator.makeNext(HashMap.java:127)
    3. java.util.HashMap$KeyIterator.next(HashMap.java:200)
    3 frames
  3. AspectJ weaver
    PointcutExpressionImpl.matchesMethodExecution
    1. org.aspectj.apache.bcel.util.NonCachingClassLoaderRepository$SoftHashMap.clear(NonCachingClassLoaderRepository.java:152)
    2. org.aspectj.apache.bcel.util.NonCachingClassLoaderRepository.clear(NonCachingClassLoaderRepository.java:228)
    3. org.aspectj.weaver.reflect.Java15AnnotationFinder.getAnnotations(Java15AnnotationFinder.java:223)
    4. org.aspectj.weaver.reflect.ReflectionBasedResolvedMemberImpl.unpackAnnotations(ReflectionBasedResolvedMemberImpl.java:213)
    5. org.aspectj.weaver.reflect.ReflectionBasedResolvedMemberImpl.hasAnnotation(ReflectionBasedResolvedMemberImpl.java:169)
    6. org.aspectj.weaver.JoinPointSignature.hasAnnotation(JoinPointSignature.java:82)
    7. org.aspectj.weaver.patterns.ExactAnnotationTypePattern.matches(ExactAnnotationTypePattern.java:102)
    8. org.aspectj.weaver.patterns.ExactAnnotationTypePattern.matches(ExactAnnotationTypePattern.java:96)
    9. org.aspectj.weaver.patterns.SignaturePattern.matchesAnnotations(SignaturePattern.java:717)
    10. org.aspectj.weaver.patterns.SignaturePattern.matchesExactly(SignaturePattern.java:371)
    11. org.aspectj.weaver.patterns.SignaturePattern.matches(SignaturePattern.java:319)
    12. org.aspectj.weaver.patterns.KindedPointcut.matchInternal(KindedPointcut.java:202)
    13. org.aspectj.weaver.patterns.Pointcut.match(Pointcut.java:134)
    14. org.aspectj.weaver.internal.tools.PointcutExpressionImpl.getShadowMatch(PointcutExpressionImpl.java:239)
    15. org.aspectj.weaver.internal.tools.PointcutExpressionImpl.matchesExecution(PointcutExpressionImpl.java:105)
    16. org.aspectj.weaver.internal.tools.PointcutExpressionImpl.matchesMethodExecution(PointcutExpressionImpl.java:96)
    16 frames
  4. org.springframework.security
    ProtectPointcutPostProcessor.postProcessBeforeInitialization
    1. org.springframework.security.intercept.method.ProtectPointcutPostProcessor.attemptMatch(ProtectPointcutPostProcessor.java:118)
    2. org.springframework.security.intercept.method.ProtectPointcutPostProcessor.postProcessBeforeInitialization(ProtectPointcutPostProcessor.java:106)
    2 frames
  5. Spring Beans
    BeanConfigurerSupport.configureBean
    1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
    2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413)
    3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.configureBean(AbstractAutowireCapableBeanFactory.java:315)
    4. org.springframework.beans.factory.wiring.BeanConfigurerSupport.configureBean(BeanConfigurerSupport.java:146)
    4 frames
  6. Spring Aspects
    AbstractDependencyInjectionAspect.ajc$before$org_springframework_beans_factory_aspectj_AbstractDependencyInjectionAspect$1$e854fa65
    1. org.springframework.beans.factory.aspectj.AnnotationBeanConfigurerAspect.configureBean(AnnotationBeanConfigurerAspect.aj:59)
    2. org.springframework.beans.factory.aspectj.AbstractDependencyInjectionAspect.ajc$before$org_springframework_beans_factory_aspectj_AbstractDependencyInjectionAspect$1$e854fa65(AbstractDependencyInjectionAspect.aj:80)
    2 frames