java.util.ConcurrentModificationException

Oracle Community | 3004 | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    java.util.ConcurrentModificationException while getObjectById

    Oracle Community | 1 decade ago | 3004
    java.util.ConcurrentModificationException
  2. 0

    Foreign JMS and XA

    Google Groups | 1 decade ago | Dmitri Maximovich
    java.util.ConcurrentModificationException
  3. 0

    java.util.ConcurrentModificationException while getObjectById

    objectmix.com | 1 year ago
    java.util.ConcurrentModificationException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    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; }

    Spring JIRA | 1 decade ago | Torsten Juergeleit
    java.util.ConcurrentModificationException
  6. 0

    why ConcurrentModificationException ?

    Oracle Community | 1 decade ago | 843790
    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$HashIterator.nextEntry()
  2. Java RT
    HashMap$KeyIterator.next
    1. java.util.HashMap$HashIterator.nextEntry(HashMap.java:782)
    2. java.util.HashMap$KeyIterator.next(HashMap.java:818)
    2 frames
  3. kodo.meta
    DelegatingJDOMetaDataRepository.getMetaData
    1. kodo.meta.JDOMetaDataRepositoryImpl.processRegisteredClasses(JDOMetaDataRepositoryImpl.java:522)
    2. kodo.meta.JDOMetaDataRepositoryImpl.getMetaData(JDOMetaDataRepositoryImpl.java:340)
    3. kodo.meta.DelegatingJDOMetaDataRepository.getMetaData(DelegatingJDOMetaDataRepository.java:167)
    3 frames
  4. kodo.jdbc.meta
    MappingRepository.getMetaData
    1. kodo.jdbc.meta.MappingRepository.getMapping(MappingRepository.java:248)
    2. kodo.jdbc.meta.MappingRepository.getMetaData(MappingRepository.java:237)
    2 frames
  5. kodo.runtime
    PersistenceManagerImpl.getObjectById
    1. kodo.runtime.PersistenceManagerImpl.newStateManager(PersistenceManagerImpl.java:1316)
    2. kodo.runtime.PersistenceManagerImpl.getObjectById(PersistenceManagerImpl.java:1280)
    3. kodo.runtime.PersistenceManagerImpl.getObjectById(PersistenceManagerImpl.java:1223)
    3 frames
  6. com.cmptsis.kiff
    CustomerSessionBean.createGroup
    1. com.cmptsis.kiff.global.server.identity.jdo.JdoIdentityDAO.getNextIdentity(JdoIdentityDAO.java:21)
    2. com.cmptsis.kiff.global.server.identity.StandardDBIdentityFacade.nextIdentityByRange(StandardDBIdentityFacade.java:16)
    3. com.cmptsis.kiff.customer.server.facade.CustomerFacadeLogic.createGroup(CustomerFacadeLogic.java:24)
    4. com.cmptsis.kiff.customer.server.facade.ejb.CustomerSessionBean.createGroup(CustomerSessionBean.java:80)
    4 frames
  7. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:324)
    4 frames
  8. JBoss Application Server Server
    StatelessSessionContainer$ContainerInterceptor.invoke
    1. org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683)
    1 frame
  9. JBoss Application Server Connector
    CachedConnectionInterceptor.invoke
    1. org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
    1 frame
  10. JBoss Application Server Server
    Container.invoke
    1. org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
    2. org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
    3. org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:267)
    4. org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:128)
    5. org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:118)
    6. org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
    7. org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
    8. org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331)
    9. org.jboss.ejb.Container.invoke(Container.java:700)
    9 frames
  11. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:324)
    4 frames
  12. org.jboss.mx
    ReflectedMBeanDispatcher.invoke
    1. org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
    1 frame
  13. JBoss Application Server J2SE
    MBeanServerImpl.invoke
    1. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
    1 frame
  14. JBoss Application Server Server
    JRMPInvoker.invoke
    1. org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:367)
    1 frame
  15. Java RT
    UnicastServerRef.dispatch
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:324)
    5. sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
    6. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332)
    7. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304)
    8. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
    9. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
    10. java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
    11. sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:299)
    11 frames