java.util.ConcurrentModificationException

ZK-Tracker | dennis | 4 years ago
  1. 0

    I cannot reproduce it yet, but from the application stack-trace, it happens when ListModelList get hash code directly from a inner List and it maybe is shared statically in my app. e.g. a drop-down for selecting color of a shirt. the color is static List in my app. Aug 29, 2012 6:41:17 AM org.zkoss.zk.ui.impl.UiEngineImpl handleError:1351 SEVERE: >>java.util.ConcurrentModificationException >> at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372) >> at java.util.AbstractList$Itr.next(AbstractList.java:343) >> at java.util.AbstractList.hashCode(AbstractList.java:526) >> at org.zkoss.zul.ListModelList.hashCode(ListModelList.java:219) >> at java.util.WeakHashMap.get(WeakHashMap.java:348) >> at org.zkoss.bind.tracker.impl.TrackerImpl$EqualBeansMap.getEqualBeans(TrackerImpl.java:522) >> at org.zkoss.bind.tracker.impl.TrackerImpl.getAllTrackerNodesByBean0(TrackerImpl.java:405) >> at org.zkoss.bind.tracker.impl.TrackerImpl.getAllTrackerNodesByBean(TrackerImpl.java:400) >> at org.zkoss.bind.tracker.impl.TrackerImpl.tieValue(TrackerImpl.java:203) >> at org.zkoss.bind.xel.zel.BindELResolver.tieValue(BindELResolver.java:155) >> at org.zkoss.bind.xel.zel.BindELResolver.getValue(BindELResolver.java:83) >> at org.zkoss.zel.impl.parser.AstValue.getValue(AstValue.java:179) >> at org.zkoss.zel.impl.ValueExpressionImpl.getValue(ValueExpressionImpl.java:189) >> at org.zkoss.xel.zel.ELXelExpression.evaluate(ELXelExpression.java:40) >> at org.zkoss.bind.impl.BindEvaluatorXImpl.getValue(BindEvaluatorXImpl.java:42) >> at org.zkoss.bind.impl.ReferenceBindingImpl.load(ReferenceBindingImpl.java:68) >> at org.zkoss.bind.impl.ReferenceBindingImpl.getValue(ReferenceBindingImpl.java:44) >> at org.zkoss.bind.xel.zel.BindELResolver.getValue(BindELResolver.java:79) >> at org.zkoss.zel.impl.parser.AstIdentifier.getValue(AstIdentifier.java:75) >> at org.zkoss.zel.impl.ValueExpressionImpl.getValue(ValueExpressionImpl.java:189) >> at org.zkoss.xel.zel.ELXelExpression.evaluate(ELXelExpression.java:40) >> at org.zkoss.bind.impl.BindEvaluatorXImpl.getValue(BindEvaluatorXImpl.java:42) >> at org.zkoss.bind.impl.LoadPropertyBindingImpl.load(LoadPropertyBindingImpl.java:58) >> at org.zkoss.bind.impl.PropertyBindingHandler.doLoadBinding(PropertyBindingHandler.java:171) >> at org.zkoss.bind.impl.PropertyBindingHandler.doLoad(PropertyBindingHandler.java:372) >> at org.zkoss.bind.impl.BinderImpl.loadComponentProperties(BinderImpl.java:1865) >> at org.zkoss.bind.impl.BinderImpl.loadComponent(BinderImpl.java:1847) >> at org.zkoss.bind.tracker.impl.BindUiLifeCycle$1.onEvent(BindUiLifeCycle.java:63) >> at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2736) >> at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2685) >> at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2648) >> at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136) >> at org.zkoss.zk.ui.event.Events.sendEvent(Events.java:308) >> at org.zkoss.zk.ui.event.Events.sendEvent(Events.java:331) >> at org.zkoss.bind.impl.BindComboitemRenderer.render(BindComboitemRenderer.java:116) >> at org.zkoss.zul.Combobox$Renderer.render(Combobox.java:450) >> at org.zkoss.zul.Combobox$Renderer.access$300(Combobox.java:433) >> at org.zkoss.zul.Combobox.onInitRender(Combobox.java:350) >> at sun.reflect.GeneratedMethodAccessor2191.invoke(Unknown Source) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:597)

    ZK-Tracker | 4 years ago | dennis
    java.util.ConcurrentModificationException
  2. 0

    I cannot reproduce it yet, but from the application stack-trace, it happens when ListModelList get hash code directly from a inner List and it maybe is shared statically in my app. e.g. a drop-down for selecting color of a shirt. the color is static List in my app. Aug 29, 2012 6:41:17 AM org.zkoss.zk.ui.impl.UiEngineImpl handleError:1351 SEVERE: >>java.util.ConcurrentModificationException >> at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372) >> at java.util.AbstractList$Itr.next(AbstractList.java:343) >> at java.util.AbstractList.hashCode(AbstractList.java:526) >> at org.zkoss.zul.ListModelList.hashCode(ListModelList.java:219) >> at java.util.WeakHashMap.get(WeakHashMap.java:348) >> at org.zkoss.bind.tracker.impl.TrackerImpl$EqualBeansMap.getEqualBeans(TrackerImpl.java:522) >> at org.zkoss.bind.tracker.impl.TrackerImpl.getAllTrackerNodesByBean0(TrackerImpl.java:405) >> at org.zkoss.bind.tracker.impl.TrackerImpl.getAllTrackerNodesByBean(TrackerImpl.java:400) >> at org.zkoss.bind.tracker.impl.TrackerImpl.tieValue(TrackerImpl.java:203) >> at org.zkoss.bind.xel.zel.BindELResolver.tieValue(BindELResolver.java:155) >> at org.zkoss.bind.xel.zel.BindELResolver.getValue(BindELResolver.java:83) >> at org.zkoss.zel.impl.parser.AstValue.getValue(AstValue.java:179) >> at org.zkoss.zel.impl.ValueExpressionImpl.getValue(ValueExpressionImpl.java:189) >> at org.zkoss.xel.zel.ELXelExpression.evaluate(ELXelExpression.java:40) >> at org.zkoss.bind.impl.BindEvaluatorXImpl.getValue(BindEvaluatorXImpl.java:42) >> at org.zkoss.bind.impl.ReferenceBindingImpl.load(ReferenceBindingImpl.java:68) >> at org.zkoss.bind.impl.ReferenceBindingImpl.getValue(ReferenceBindingImpl.java:44) >> at org.zkoss.bind.xel.zel.BindELResolver.getValue(BindELResolver.java:79) >> at org.zkoss.zel.impl.parser.AstIdentifier.getValue(AstIdentifier.java:75) >> at org.zkoss.zel.impl.ValueExpressionImpl.getValue(ValueExpressionImpl.java:189) >> at org.zkoss.xel.zel.ELXelExpression.evaluate(ELXelExpression.java:40) >> at org.zkoss.bind.impl.BindEvaluatorXImpl.getValue(BindEvaluatorXImpl.java:42) >> at org.zkoss.bind.impl.LoadPropertyBindingImpl.load(LoadPropertyBindingImpl.java:58) >> at org.zkoss.bind.impl.PropertyBindingHandler.doLoadBinding(PropertyBindingHandler.java:171) >> at org.zkoss.bind.impl.PropertyBindingHandler.doLoad(PropertyBindingHandler.java:372) >> at org.zkoss.bind.impl.BinderImpl.loadComponentProperties(BinderImpl.java:1865) >> at org.zkoss.bind.impl.BinderImpl.loadComponent(BinderImpl.java:1847) >> at org.zkoss.bind.tracker.impl.BindUiLifeCycle$1.onEvent(BindUiLifeCycle.java:63) >> at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2736) >> at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2685) >> at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2648) >> at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136) >> at org.zkoss.zk.ui.event.Events.sendEvent(Events.java:308) >> at org.zkoss.zk.ui.event.Events.sendEvent(Events.java:331) >> at org.zkoss.bind.impl.BindComboitemRenderer.render(BindComboitemRenderer.java:116) >> at org.zkoss.zul.Combobox$Renderer.render(Combobox.java:450) >> at org.zkoss.zul.Combobox$Renderer.access$300(Combobox.java:433) >> at org.zkoss.zul.Combobox.onInitRender(Combobox.java:350) >> at sun.reflect.GeneratedMethodAccessor2191.invoke(Unknown Source) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:597)

    ZK-Tracker | 4 years ago | dennis
    java.util.ConcurrentModificationException
  3. 0

    IDE internal error (ConcurrentModificationException)

    YouTrack | 4 years ago
    java.util.ConcurrentModificationException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.util.ConcurrentModificationException in OCStructType

    YouTrack | 4 years ago
    java.util.ConcurrentModificationException
  6. 0

    [Decorators] ConcurrentModificationException in DecorationScheduler

    Eclipse Bugzilla | 1 decade ago | igor
    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.AbstractList$Itr.checkForComodification()
    2. Java RT
      AbstractList.hashCode
      1. java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
      2. java.util.AbstractList$Itr.next(AbstractList.java:343)
      3. java.util.AbstractList.hashCode(AbstractList.java:526)
      3 frames
    3. ZK XUL Components
      ListModelList.hashCode
      1. org.zkoss.zul.ListModelList.hashCode(ListModelList.java:219)
      1 frame
    4. Java RT
      WeakHashMap.get
      1. java.util.WeakHashMap.get(WeakHashMap.java:348)
      1 frame
    5. ZK Bind
      BindELResolver.getValue
      1. org.zkoss.bind.tracker.impl.TrackerImpl$EqualBeansMap.getEqualBeans(TrackerImpl.java:522)
      2. org.zkoss.bind.tracker.impl.TrackerImpl.getAllTrackerNodesByBean0(TrackerImpl.java:405)
      3. org.zkoss.bind.tracker.impl.TrackerImpl.getAllTrackerNodesByBean(TrackerImpl.java:400)
      4. org.zkoss.bind.tracker.impl.TrackerImpl.tieValue(TrackerImpl.java:203)
      5. org.zkoss.bind.xel.zel.BindELResolver.tieValue(BindELResolver.java:155)
      6. org.zkoss.bind.xel.zel.BindELResolver.getValue(BindELResolver.java:83)
      6 frames
    6. The ZK EL Library
      ValueExpressionImpl.getValue
      1. org.zkoss.zel.impl.parser.AstValue.getValue(AstValue.java:179)
      2. org.zkoss.zel.impl.ValueExpressionImpl.getValue(ValueExpressionImpl.java:189)
      2 frames
    7. The ZKoss Common Library
      ELXelExpression.evaluate
      1. org.zkoss.xel.zel.ELXelExpression.evaluate(ELXelExpression.java:40)
      1 frame
    8. ZK Bind
      BindELResolver.getValue
      1. org.zkoss.bind.impl.BindEvaluatorXImpl.getValue(BindEvaluatorXImpl.java:42)
      2. org.zkoss.bind.impl.ReferenceBindingImpl.load(ReferenceBindingImpl.java:68)
      3. org.zkoss.bind.impl.ReferenceBindingImpl.getValue(ReferenceBindingImpl.java:44)
      4. org.zkoss.bind.xel.zel.BindELResolver.getValue(BindELResolver.java:79)
      4 frames
    9. The ZK EL Library
      ValueExpressionImpl.getValue
      1. org.zkoss.zel.impl.parser.AstIdentifier.getValue(AstIdentifier.java:75)
      2. org.zkoss.zel.impl.ValueExpressionImpl.getValue(ValueExpressionImpl.java:189)
      2 frames
    10. The ZKoss Common Library
      ELXelExpression.evaluate
      1. org.zkoss.xel.zel.ELXelExpression.evaluate(ELXelExpression.java:40)
      1 frame
    11. ZK Bind
      BindUiLifeCycle$1.onEvent
      1. org.zkoss.bind.impl.BindEvaluatorXImpl.getValue(BindEvaluatorXImpl.java:42)
      2. org.zkoss.bind.impl.LoadPropertyBindingImpl.load(LoadPropertyBindingImpl.java:58)
      3. org.zkoss.bind.impl.PropertyBindingHandler.doLoadBinding(PropertyBindingHandler.java:171)
      4. org.zkoss.bind.impl.PropertyBindingHandler.doLoad(PropertyBindingHandler.java:372)
      5. org.zkoss.bind.impl.BinderImpl.loadComponentProperties(BinderImpl.java:1865)
      6. org.zkoss.bind.impl.BinderImpl.loadComponent(BinderImpl.java:1847)
      7. org.zkoss.bind.tracker.impl.BindUiLifeCycle$1.onEvent(BindUiLifeCycle.java:63)
      7 frames
    12. ZK Kernel
      Events.sendEvent
      1. org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2736)
      2. org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2685)
      3. org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2648)
      4. org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136)
      5. org.zkoss.zk.ui.event.Events.sendEvent(Events.java:308)
      6. org.zkoss.zk.ui.event.Events.sendEvent(Events.java:331)
      6 frames
    13. ZK Bind
      BindComboitemRenderer.render
      1. org.zkoss.bind.impl.BindComboitemRenderer.render(BindComboitemRenderer.java:116)
      1 frame
    14. ZK XUL Components
      Combobox.onInitRender
      1. org.zkoss.zul.Combobox$Renderer.render(Combobox.java:450)
      2. org.zkoss.zul.Combobox$Renderer.access$300(Combobox.java:433)
      3. org.zkoss.zul.Combobox.onInitRender(Combobox.java:350)
      3 frames
    15. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor2191.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:597)
      3 frames