3 Replies Latest reply on Jun 14, 2010 10:39 AM by Kevin Lohmann

    JBossAS 5.1.0: ConcurrentModificationException in org.jboss.jms.client.container.ClosedInterceptor

    Kevin Lohmann Newbie

      Hi *,

       

      we are using JBossAS 5.1.0.

       

      From time to time our client receives following ConcurrentModificationException when we call Connection.close():

       

      java.util.ConcurrentModificationException
          at java.util.HashMap$HashIterator.nextEntry(Unknown Source)
          at java.util.HashMap$KeyIterator.next(Unknown Source)
          at EDU.oswego.cs.dl.util.concurrent.SyncCollection$SyncCollectionIterator.next(SyncCollection.java:483)
          at java.util.AbstractCollection.addAll(Unknown Source)
          at java.util.HashSet.<init>(Unknown Source)
          at org.jboss.jms.client.container.ClosedInterceptor.maintainRelatives(ClosedInterceptor.java:295)
          at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:165)
          at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)
          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
          at org.jboss.jms.client.delegate.ClientConnectionDelegate.closing(ClientConnectionDelegate.java)
          at org.jboss.jms.client.JBossConnection.close(JBossConnection.java:131)

       

      I couldn't find anything here or in www, is it a known bug? Can we (the client) do anything except catch the ConcurrentModificationException?

       

      Thanks in advance,

      Kevin