java.util.ConcurrentModificationException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Foreign JMS and XA
    via by Dmitri Maximovich,
  • Concurrent calls from within different threads (servlets) to AbstractApplicationContext.getBeansOfType() leads to the following exception: java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(HashMap.java:782) at java.util.HashMap$KeyIterator.next(HashMap.java:818) at org.springframework.beans.factory.support.AbstractBeanFactory.getSingletonNames(AbstractBeanFactory.java:481) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:1 at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:468) at de.deka.techarch.spring.bean.BeanUtils.getFirstInterceptedBeanOfType(BeanUtils.java:67) at de.deka.dekanet.service.context.BusinessServiceFactory.getService(BusinessServiceFactory.java:86) Our code which calls ListableBeanFactory.getBeansOfType() is as follows: /** * Returns the first bean from the {@link Map} returned by * <code>ListableBeanFactory.getBeansOfType(type, true, true)</code> * which is an instances of {@link java.lang.reflect.Proxy}</code>. */ public static final Object getFirstProxiedBeanOfType( ListableBeanFactory factory, Class type) { Map names = factory.getBeansOfType(type, true, true); Iterator iter = names.keySet().iterator(); while (iter.hasNext()) { String name = (String)iter.next(); Object bean = factory.getBean(name); if (bean instanceof Proxy) { return bean; } } return null; }
    via by Torsten Juergeleit,
  • why ConcurrentModificationException ?
    via by 843790,
  • Foreign JMS and XA
    via by 3004,
  • Foreign JMS and XA
    via by 3004,
  • Exceptions in CVS Team Synchronize
    via by ed.burnette,
    • java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(HashMap.java:782) at java.util.HashMap$KeyIterator.next(HashMap.java:818) at weblogic.rjvm.ConnectionRuntime.<init>(ConnectionRuntime.java:68) at weblogic.rjvm.ConnectionRuntime.getConnections(ConnectionRuntime.java:26) at weblogic.t3.srvr.ServerRuntime.getConnections(ServerRuntime.java:871) at sun.reflect.GeneratedMethodAccessor1151.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at weblogic.management.internal.DynamicMBeanImpl.getAttribute(DynamicMBeanImpl.java:574) at com.sun.management.jmx.MBeanServerImpl.getAttribute(MBeanServerImpl.java:1183) at com.sun.management.jmx.MBeanServerImpl.getAttribute(MBeanServerImpl.java:1153) at weblogic.management.internal.RemoteMBeanServerImpl.getAttribute(RemoteMBeanServerImpl.java:287) at weblogic.management.internal.RemoteMBeanServerImpl_WLSkel.invoke(Unknown Source) at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:477) at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144) at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415) at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    iridiciridic
    2 times, last one,
    franky lifranky li
    1 times, last one,
    bpbhat77bpbhat77
    2 times, last one,
    21 more bugmates