Am getting "Caused by: java.util.ConcurrentModificationException"

Hi,
I written code as below
public String createHM2Req(String ReqFileNm) throws Exception
          String retVal="";
          String strId = "";
          try
System.out.println(" --- LSReqFileNm "+ReqFileNm);
System.out.println(" -- hmReqData "+hmReqData);
strId = "TE"+getValHMProcessReq("SubjBorrId");
if(!getValHMProcessReq("SpouseId").equals("") && getValHMProcessReq("ServiceTypCd").equals("ABCD"))
strId += " TE"+getValHMProcessReq("SpouseId");
public String getValHMProcessReq(String key) throws Exception
String retVal="";
          try
               if(key != null && !key.equals(""))
                    if(!checkNull(hmReqData.get(key)+"").equals(""))
                         retVal = hmReqData.get(key).toString();
                         retVal = escape(retVal);
          catch(Exception e)
               e.printStackTrace();
          return retVal;
In this code I decleared hmReqData as Global Hashmap
this code is working fine.
But some times am getting below exception.
Caused by: java.util.ConcurrentModificationException
     at java.util.HashMap$HashIterator.nextEntry HashMap.java:782)
     at java.util.HashMap$EntryIterator.next(HashMap.java:824)
     at java.util.AbstractMap.toString(AbstractMap.java:586)
     at java.lang.String.valueOf(String.java:2131)
     at java.lang.StringBuffer.append(StringBuffer.java:370)
can any one help me to solve this problem....
Please its urgent...
Thank U
Vinod

Hi..
Sorry for that. But while posting the question for first time, the IE is not responded. I didnt know that it is posted...thats why i posted second time

Similar Messages

  • Am getting java.util.ConcurrentModificationException while accessing Hashma

    Hi,
    I written code as below
    public String createHM2Req(String ReqFileNm) throws Exception
              String retVal="";
              String strId = "";
              try
    System.out.println(" --- LSReqFileNm "+ReqFileNm);
    System.out.println(" -- hmReqData "+hmReqData);
    strId = "TE"+getValHMProcessReq("SubjBorrId");
    if(!getValHMProcessReq("SpouseId").equals("") && getValHMProcessReq("ServiceTypCd").equals("ABCD"))
    strId += " TE"+getValHMProcessReq("SpouseId");
    public String getValHMProcessReq(String key) throws Exception
    String retVal="";
              try
                   if(key != null && !key.equals(""))
                        if(!checkNull(hmReqData.get(key)+"").equals(""))
                             retVal = hmReqData.get(key).toString();
                             retVal = escape(retVal);
              catch(Exception e)
                   e.printStackTrace();
              return retVal;
    Am getting below exception at run time
    Caused by: java.util.ConcurrentModificationException
         at java.util.HashMap$HashIterator.nextEntry(HashMap.java:782)
         at java.util.HashMap$EntryIterator.next(HashMap.java:824)
         at java.util.AbstractMap.toString(AbstractMap.java:586)
         at java.lang.String.valueOf(String.java:2131)
         at java.lang.StringBuffer.append(StringBuffer.java:370)

    Something is calling toString on a map and something else is modifying that map. toString will start iterating. You probably get that exception if another request at the same times modifies the map.

  • Java.util.ConcurrentModificationException while getObjectById

    I use Kodo 3.0.2:
    I want to retrieve an objkect by its primary key (primary key class) in a
    stateless session bean. This is the first time I call a method on the
    PersistenceManager retrieved over JNDI.
    The code is:
    public synchronized long getNextIdentity(String numberRange) {
    IdentityMaxKey id = new IdentityMaxKey();
    id.setNumberRange(numberRange);
    IdentityMax im = null;
    im = (IdentityMax) pm.getObjectById(id, true); <-- Exception
    return im.getAndIncMaxId();
    And the result is the java.util.ConcurrentModificationException on the
    appServer (JBoss 3.2.3). Whats wrong?
    com.cmptsis.util.exception.ConfigurationException: Remote Exception while
    accessing App-Server
         at
    com.cmptsis.kiff.customer.delegate.ejb.CustomerDelegateImpl.createGroup(CustomerDelegateImpl.java:49)
         at
    com.cmptsis.kiff.client.swing.TestFrame.createTestCustomerData(TestFrame.java:43)
         at com.cmptsis.kiff.client.swing.TestFrame.main(TestFrame.java:33)
    Caused by: java.rmi.ServerException: RemoteException occurred in server
    thread; nested exception is:
         java.rmi.ServerException: RuntimeException; nested exception is:
         kodo.util.FatalException: kodo.util.FatalException:
    java.util.ConcurrentModificationException
    NestedThrowables:
    java.util.ConcurrentModificationException
    NestedThrowables:
    java.util.ConcurrentModificationException
         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292)
         at sun.rmi.transport.Transport$1.run(Transport.java:148)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
         at
    sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
         at
    sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
         at java.lang.Thread.run(Thread.java:534)
         at
    sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
         at
    sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
         at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown
    Source)
         at
    org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:135)
         at
    org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:96)
         at
    org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
         at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:45)
         at
    org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:100)
         at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
         at $Proxy1.createGroup(Unknown Source)
         at
    com.cmptsis.kiff.customer.delegate.ejb.CustomerDelegateImpl.createGroup(CustomerDelegateImpl.java:46)
         ... 2 more
    Caused by: java.rmi.ServerException: RuntimeException; nested exception
    is:
         kodo.util.FatalException: kodo.util.FatalException:
    java.util.ConcurrentModificationException
    NestedThrowables:
    java.util.ConcurrentModificationException
    NestedThrowables:
    java.util.ConcurrentModificationException
         at
    org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:361)
         at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
         at
    org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
         at
    org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331)
         at org.jboss.ejb.Container.invoke(Container.java:700)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at
    org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
         at
    org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:367)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
         at sun.rmi.transport.Transport$1.run(Transport.java:148)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
         at
    sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
         at
    sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
         at java.lang.Thread.run(Thread.java:534)
    Caused by: kodo.util.FatalException: kodo.util.FatalException:
    java.util.ConcurrentModificationException
    NestedThrowables:
    java.util.ConcurrentModificationException
    NestedThrowables:
    java.util.ConcurrentModificationException
         at kodo.util.FatalException.writeReplace(FatalException.java:74)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at
    java.io.ObjectStreamClass.invokeWriteReplace(ObjectStreamClass.java:896)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1011)
         at
    java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332)
         at
    java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304)
         at
    java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
         at
    java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332)
         at
    java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304)
         at
    java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:299)
         ... 6 more
    Caused by: java.util.ConcurrentModificationException
         at java.util.HashMap$HashIterator.nextEntry(HashMap.java:782)
         at java.util.HashMap$KeyIterator.next(HashMap.java:818)
         at
    kodo.meta.JDOMetaDataRepositoryImpl.processRegisteredClasses(JDOMetaDataRepositoryImpl.java:522)
         at
    kodo.meta.JDOMetaDataRepositoryImpl.getMetaData(JDOMetaDataRepositoryImpl.java:340)
         at
    kodo.meta.DelegatingJDOMetaDataRepository.getMetaData(DelegatingJDOMetaDataRepository.java:167)
         at kodo.jdbc.meta.MappingRepository.getMapping(MappingRepository.java:248)
         at
    kodo.jdbc.meta.MappingRepository.getMetaData(MappingRepository.java:237)
         at
    kodo.runtime.PersistenceManagerImpl.newStateManager(PersistenceManagerImpl.java:1316)
         at
    kodo.runtime.PersistenceManagerImpl.getObjectById(PersistenceManagerImpl.java:1280)
         at
    kodo.runtime.PersistenceManagerImpl.getObjectById(PersistenceManagerImpl.java:1223)
         at
    com.cmptsis.kiff.global.server.identity.jdo.JdoIdentityDAO.getNextIdentity(JdoIdentityDAO.java:21)
         at
    com.cmptsis.kiff.global.server.identity.StandardDBIdentityFacade.nextIdentityByRange(StandardDBIdentityFacade.java:16)
         at
    com.cmptsis.kiff.customer.server.facade.CustomerFacadeLogic.createGroup(CustomerFacadeLogic.java:24)
         at
    com.cmptsis.kiff.customer.server.facade.ejb.CustomerSessionBean.createGroup(CustomerSessionBean.java:80)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at
    org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683)
         at
    org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
         at
    org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
         at
    org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
         at
    org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:267)
         at
    org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:128)
         at
    org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:118)
         at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
         at
    org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
         at
    org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331)
         at org.jboss.ejb.Container.invoke(Container.java:700)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at
    org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
         at
    org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:367)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
         ... 6 more
    Exception in thread "main"

    The issue is not solved yet...
    Bernd Ruecker wrote:
    I use Kodo 3.0.2:
    I want to retrieve an objkect by its primary key (primary key class) in a
    stateless session bean. This is the first time I call a method on the
    PersistenceManager retrieved over JNDI.
    The code is:
    public synchronized long getNextIdentity(String numberRange) {
    IdentityMaxKey id = new IdentityMaxKey();
    id.setNumberRange(numberRange);
    IdentityMax im = null;
    im = (IdentityMax) pm.getObjectById(id, true); <-- Exception
    return im.getAndIncMaxId();
    And the result is the java.util.ConcurrentModificationException on the
    appServer (JBoss 3.2.3). Whats wrong?
    com.cmptsis.util.exception.ConfigurationException: Remote Exception while
    accessing App-Server
         at
    com.cmptsis.kiff.customer.delegate.ejb.CustomerDelegateImpl.createGroup(CustomerDelegateImpl.java:49)
         at
    com.cmptsis.kiff.client.swing.TestFrame.createTestCustomerData(TestFrame.java:43)
         at com.cmptsis.kiff.client.swing.TestFrame.main(TestFrame.java:33)
    Caused by: java.rmi.ServerException: RemoteException occurred in server
    thread; nested exception is:
         java.rmi.ServerException: RuntimeException; nested exception is:
         kodo.util.FatalException: kodo.util.FatalException:
    java.util.ConcurrentModificationException
    NestedThrowables:
    java.util.ConcurrentModificationException
    NestedThrowables:
    java.util.ConcurrentModificationException
         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292)
         at sun.rmi.transport.Transport$1.run(Transport.java:148)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
         at
    sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
         at
    sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
         at java.lang.Thread.run(Thread.java:534)
         at
    sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
         at
    sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
         at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown
    Source)
         at
    org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:135)
         at
    org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:96)
         at
    org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
         at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:45)
         at
    org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:100)
         at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
         at $Proxy1.createGroup(Unknown Source)
         at
    com.cmptsis.kiff.customer.delegate.ejb.CustomerDelegateImpl.createGroup(CustomerDelegateImpl.java:46)
         ... 2 more
    Caused by: java.rmi.ServerException: RuntimeException; nested exception
    is:
         kodo.util.FatalException: kodo.util.FatalException:
    java.util.ConcurrentModificationException
    NestedThrowables:
    java.util.ConcurrentModificationException
    NestedThrowables:
    java.util.ConcurrentModificationException
         at
    org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:361)
         at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
         at
    org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
         at
    org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331)
         at org.jboss.ejb.Container.invoke(Container.java:700)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at
    org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
         at
    org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:367)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
         at sun.rmi.transport.Transport$1.run(Transport.java:148)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
         at
    sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
         at
    sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
         at java.lang.Thread.run(Thread.java:534)
    Caused by: kodo.util.FatalException: kodo.util.FatalException:
    java.util.ConcurrentModificationException
    NestedThrowables:
    java.util.ConcurrentModificationException
    NestedThrowables:
    java.util.ConcurrentModificationException
         at kodo.util.FatalException.writeReplace(FatalException.java:74)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at
    java.io.ObjectStreamClass.invokeWriteReplace(ObjectStreamClass.java:896)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1011)
         at
    java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332)
         at
    java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304)
         at
    java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
         at
    java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332)
         at
    java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304)
         at
    java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:299)
         ... 6 more
    Caused by: java.util.ConcurrentModificationException
         at java.util.HashMap$HashIterator.nextEntry(HashMap.java:782)
         at java.util.HashMap$KeyIterator.next(HashMap.java:818)
         at
    kodo.meta.JDOMetaDataRepositoryImpl.processRegisteredClasses(JDOMetaDataRepositoryImpl.java:522)
         at
    kodo.meta.JDOMetaDataRepositoryImpl.getMetaData(JDOMetaDataRepositoryImpl.java:340)
         at
    kodo.meta.DelegatingJDOMetaDataRepository.getMetaData(DelegatingJDOMetaDataRepository.java:167)
         at kodo.jdbc.meta.MappingRepository.getMapping(MappingRepository.java:248)
         at
    kodo.jdbc.meta.MappingRepository.getMetaData(MappingRepository.java:237)
         at
    kodo.runtime.PersistenceManagerImpl.newStateManager(PersistenceManagerImpl.java:1316)
         at
    kodo.runtime.PersistenceManagerImpl.getObjectById(PersistenceManagerImpl.java:1280)
         at
    kodo.runtime.PersistenceManagerImpl.getObjectById(PersistenceManagerImpl.java:1223)
         at
    com.cmptsis.kiff.global.server.identity.jdo.JdoIdentityDAO.getNextIdentity(JdoIdentityDAO.java:21)
         at
    com.cmptsis.kiff.global.server.identity.StandardDBIdentityFacade.nextIdentityByRange(StandardDBIdentityFacade.java:16)
         at
    com.cmptsis.kiff.customer.server.facade.CustomerFacadeLogic.createGroup(CustomerFacadeLogic.java:24)
         at
    com.cmptsis.kiff.customer.server.facade.ejb.CustomerSessionBean.createGroup(CustomerSessionBean.java:80)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at
    org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683)
         at
    org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
         at
    org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
         at
    org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
         at
    org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:267)
         at
    org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:128)
         at
    org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:118)
         at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
         at
    org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
         at
    org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331)
         at org.jboss.ejb.Container.invoke(Container.java:700)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at
    org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
         at
    org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:367)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
         ... 6 more
    Exception in thread "main"

  • Java.util.ConcurrentModificationException when mapping the business rule?

    Hi,
    In our project there are two BP's.One is Main BP and other one is Sub BP.I would invoke the SubBP from Main BP.So Inside main Bp there is a JCD component and output of this component would be input of Sub BP.The main BP will be
    Start=====>JCD===>SubBP===>End.
    So when I add business rule between JCD and SubBP and Save,I am getting java.util.ConcurrentModificationException...But the mapping are seems like fine..
    Please update me if any of you knows the solution.
    Thanks,
    Renga.S.

    Did not include the full stack trace, here it is:
    ava.util.ConcurrentModificationException
         at java.util.AbstractList$Itr.checkForComodification(Unknown Source)
         at java.util.AbstractList$Itr.next(Unknown Source)
         at com.sun.deploy.security.WIExplorerCertStore.getCertificates(Unknown Source)
         at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
         at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
         at sun.plugin.security.PluginClassLoader.getPermissions(Unknown Source)
         at java.security.SecureClassLoader.getProtectionDomain(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.access$000(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

  • Java.util.ConcurrentModificationException

    What is causing this?
    java.util.ConcurrentModificationException
    at java.util.HashMap$HashIterator.nextEntry(HashMap.java:762)
    at java.util.HashMap$KeyIterator.next(HashMap.java:798)
    at serp.util.LookaheadIterator.setNext(LookaheadIterator.java:135)
    at serp.util.LookaheadIterator.next(LookaheadIterator.java:60)
    at
    com.solarmetric.kodo.impl.jdbc.JDBCPersistenceManagerFactory.flushDeferredRe
    gistrations(JDBCPersistenceManagerFactory.java:512)
    at
    com.solarmetric.kodo.impl.jdbc.JDBCPersistenceManagerFactory.configurePersis
    tenceManager(JDBCPersistenceManagerFactory.java:669)
    at
    com.solarmetric.kodo.runtime.PersistenceManagerFactoryImpl.newPersistenceMan
    ager(PersistenceManagerFactoryImpl.java:674)
    at
    com.solarmetric.kodo.runtime.PersistenceManagerFactoryImpl.getPersistenceMan
    ager(PersistenceManagerFactoryImpl.java:208)
    at
    com.solarmetric.kodo.runtime.PersistenceManagerFactoryImpl.getPersistenceMan
    ager(PersistenceManagerFactoryImpl.java:140)
    I'm using 2.5.5

    Kodo 2.x seems to occasionally have issues with metadata registration
    and parsing. These have been resolved in 3.0. If you do not wish to
    upgrade at this time, you might try specifying all your persistent
    classes in the com.solarmetric.kodo.PersistentTypes configuration property.

  • Synchronized and java.util.ConcurrentModificationException

    Hi,
    I keep getting a java.util.ConcurrentModificationException when running the following code:
    ArrayList tObjects = ...
    synchronized (tObjects) {
    Iterator tObjectsIterator = tObjects.iterator();
    while (tObjectsIterator.hasNext()) {
    Object tObject = tObjectsIterator.next(); -----> Exception
    I run synchronized on tObjects so I can't understand why (and how) I get the Exception, can anyone help?
    Thanks,
    Iggy

    thanks for the help, I still have some difficulties:
    I have a (static) class ObjectsHolder which holds an ArrayList tObjects, I have various methods that access the ArrayList and return one/some elements.
    I would like to synchrinize on the ArrayList tObjects in ObjectsHolder, but the holder returns the ArrayList itself I am unsure whether the access to the ArrayList will be synchronized even in the calling method.
    A.

  • Exception: java.util.ConcurrentModificationException

    We are using BEA WebLogic 8.1 SP 3. Sometimes on application machines appear following error:
              Exception: java.util.ConcurrentModificationException
              <2007-01-04 16:34:20 CET> <Error> <Management> <BEA-140001> <An error occurred while getting attribute Connections on MBean
              tpecaredomain:Location=portal01,Name=portal01,Type=ServerRuntime. Method: public weblogic.management.runtime.Connection[] we
              blogic.t3.srvr.ServerRuntime.getConnections(). Exception: java.util.ConcurrentModificationException.
              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)
              >
              When does the error appear? How we can eliminate it?

    I have the same problem.
              Can sameone please help me?
              Thanks A Lot.

  • Iterator List Error "java.util.ConcurrentModificationException"

    Hi,
    I'm with a problem. I've got a set of objects in a List. I'm iterating the list and during this process, I have to add more objects to the list. The system returns the exception "java.util.ConcurrentModificationException".
    What is the solution to this problem, that is, how can I iterate a list, adding or removig elements without error
    Thanx
    MP

    You cannot add to a list while iterators are in progress. You can remove elements by calling the remove method on the iterator.
    If you need to both iterate and add, consider iterating a copy of the list, like so:
    List copy = new ArrayList(originalList);
    for (Iterator it = copy.iterator(); it.hasNext(); ) {
       // call originalList.add here
    }You could also consider indexing into the list (if it's an ArrayList), and then "bumping" your indices as you add elements.

  • Error: java.util.ConcurrentModificationException

    Hi Experts,
    I am trying to login   UME from index.html, i got following error.
    java.util.ConcurrentModificationException
         at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
         at java.util.HashMap$ValueIterator.next(HashMap.java:822)
         at com.sap.tc.webdynpro.basesrvc.util.Iterators$FilteringIterator.lookAhead(Iterators.java:172)
         at com.sap.tc.webdynpro.basesrvc.util.Iterators$FilteringIterator.next(Iterators.java:141)
         at com.sap.tc.webdynpro.basesrvc.util.Iterators$UnmodifiableIterator.next(Iterators.java:99)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.doModifyView(ClientComponent.java:480)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.doModifyView(ClientComponent.java:488)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doModifyView(WindowPhaseModel.java:551)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:148)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:333)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:741)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:694)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:253)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    Pleae guide me to resolve this issue.
    Thanks in Advance.
    Regards,
    Srinivasu.Y

    Hi Srinivasu,
    Please use FQDN (fully qualified domian name) while accessing the SAP Portal URL. Also update the host file before access with server host name and IP address.
    Best Regards,
    Arun Jaiswal

  • Kernel java.util.ConcurrentModificationException

    Hi, I have got a few of these exceptions on one of my clustered weblogic server 9.2:
    Id = BEA-000802
    UserId = <WLS Kernel>
    TransactionId =
    ThrowableInfo = java.util.ConcurrentModificationException
         at java.util.LinkedList$ListItr.checkForComodification(LinkedList.java:617)
         at java.util.LinkedList$ListItr.next(LinkedList.java:552)
         at weblogic.jms.common.CDSLocalProxy.peerGone(CDSLocalProxy.java:318)
         at weblogic.jms.common.CDSLocalProxy.dispatcherPeerGone(CDSLocalProxy.java:307)
         at weblogic.messaging.dispatcher.DispatcherWrapperState.run(DispatcherWrapperState.java:561)
         at weblogic.messaging.dispatcher.DispatcherWrapperState.timerExpired(DispatcherWrapperState.java:486)
         at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:265)
         at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    Severity = 8
    ThreadName = [ACTIVE] ExecuteThread: '29' for queue: 'weblogic.kernel.Default (self-tuning)'
    Message = ExecuteRequest failed
    java.util.ConcurrentModificationException.
    Subsystem = KernelDoes someone know if there could be something that I am doing in my application ?
    thanks,
    v.

    Kodo 2.x seems to occasionally have issues with metadata registration
    and parsing. These have been resolved in 3.0. If you do not wish to
    upgrade at this time, you might try specifying all your persistent
    classes in the com.solarmetric.kodo.PersistentTypes configuration property.

  • Java.util.ConcurrentModificationException when storing Hashmap with XMLenco

    Hi, I'm quite sure that I don't modify the map during the storage process. The Stack-Trace contains only XMLEncoder based clases, so it doesn't helps very much.
    Has anyone already encountered such a problem or has any idea how to solve it?
    Thanks a lot in advance.
    Greetings Michael

    Hi, Thanks for your reply,
    but the output and debbugging shows that not modification is done during writting.
    I posted the stach traces too, even I don't think it gives any hint.
    Any guesses are welcome.
    Greetings Michael
    [DEBUG]       [AWT-EventQueue-0] "2005-07-20 11:57:58,015"       GUI.HauptFrame 
           speichern Speichern start at Line 1161
    [ERROR]       [AWT-EventQueue-0] "2005-07-20 11:58:13,218"       GUI.HauptFrame$37 
           exceptionThrown  at Line 1177
    java.util.ConcurrentModificationException
         at java.util.HashMap$HashIterator.nextEntry(HashMap.java:782)
         at java.util.HashMap$KeyIterator.next(HashMap.java:818)
         at java.beans.java_util_Map_PersistenceDelegate.initialize(MetaData.java:262)
         at java.beans.PersistenceDelegate.initialize(PersistenceDelegate.java:191)
         at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:393)
         at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:103)
         at java.beans.Encoder.writeObject(Encoder.java:55)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:250)
         at java.beans.Encoder.writeExpression(Encoder.java:260)
         at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:363)
         at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:219)
         at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:254)
         at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:395)
         at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:103)
         at java.beans.Encoder.writeObject(Encoder.java:55)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:250)
         at java.beans.Encoder.writeExpression(Encoder.java:260)
         at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:363)
         at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:100)
         at java.beans.Encoder.writeObject(Encoder.java:55)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:250)
         at java.beans.Encoder.writeObject1(Encoder.java:192)
         at java.beans.Encoder.cloneStatement(Encoder.java:205)
         at java.beans.Encoder.writeStatement(Encoder.java:236)
         at java.beans.XMLEncoder.writeStatement(XMLEncoder.java:326)
         at java.beans.DefaultPersistenceDelegate.invokeStatement(DefaultPersistenceDelegate.java:242)
         at java.beans.java_util_List_PersistenceDelegate.initialize(MetaData.java:245)
         at java.beans.PersistenceDelegate.initialize(PersistenceDelegate.java:191)
         at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:393)
         at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:103)
         at java.beans.Encoder.writeObject(Encoder.java:55)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:250)
         at java.beans.Encoder.writeExpression(Encoder.java:260)
         at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:363)
         at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:219)
         at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:254)
         at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:395)
         at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:103)
         at java.beans.Encoder.writeObject(Encoder.java:55)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:250)
         at java.beans.Encoder.writeExpression(Encoder.java:260)
         at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:363)
         at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:100)
         at java.beans.Encoder.writeObject(Encoder.java:55)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:250)
         at java.beans.Encoder.writeObject1(Encoder.java:192)
         at java.beans.Encoder.cloneStatement(Encoder.java:205)
         at java.beans.Encoder.writeStatement(Encoder.java:236)
         at java.beans.XMLEncoder.writeStatement(XMLEncoder.java:326)
         at java.beans.DefaultPersistenceDelegate.invokeStatement(DefaultPersistenceDelegate.java:242)
         at java.beans.java_util_List_PersistenceDelegate.initialize(MetaData.java:245)
         at java.beans.PersistenceDelegate.initialize(PersistenceDelegate.java:191)
         at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:393)
         at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:103)
         at java.beans.Encoder.writeObject(Encoder.java:55)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:250)
         at java.beans.Encoder.writeExpression(Encoder.java:260)
         at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:363)
         at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:219)
         at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:254)
         at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:395)
         at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:103)
         at java.beans.Encoder.writeObject(Encoder.java:55)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:250)
         at java.beans.Encoder.writeExpression(Encoder.java:260)
         at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:363)
         at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:100)
         at java.beans.Encoder.writeObject(Encoder.java:55)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:250)
         at java.beans.Encoder.writeObject1(Encoder.java:192)
         at java.beans.Encoder.cloneStatement(Encoder.java:205)
         at java.beans.Encoder.writeStatement(Encoder.java:236)
         at java.beans.XMLEncoder.writeStatement(XMLEncoder.java:326)
         at java.beans.DefaultPersistenceDelegate.invokeStatement(DefaultPersistenceDelegate.java:242)
         at java.beans.java_util_List_PersistenceDelegate.initialize(MetaData.java:245)
         at java.beans.PersistenceDelegate.initialize(PersistenceDelegate.java:191)
         at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:393)
         at java.beans.PersistenceDelegate.initialize(PersistenceDelegate.java:191)
         at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:393)
         at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:103)
         at java.beans.Encoder.writeObject(Encoder.java:55)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:250)
         at java.beans.Encoder.writeExpression(Encoder.java:260)
         at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:363)
         at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:219)
         at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:254)
         at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:395)
         at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:103)
         at java.beans.Encoder.writeObject(Encoder.java:55)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:250)
         at java.beans.Encoder.writeExpression(Encoder.java:260)
         at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:363)
         at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:219)
         at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:254)
         at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:395)
         at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:103)
         at java.beans.Encoder.writeObject(Encoder.java:55)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:250)
         at java.beans.Encoder.writeExpression(Encoder.java:260)
         at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:363)
         at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:100)
         at java.beans.Encoder.writeObject(Encoder.java:55)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:250)
         at java.beans.Encoder.writeExpression(Encoder.java:260)
         at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:363)
         at java.beans.java_util_Map_PersistenceDelegate.initialize(MetaData.java:280)
         at java.beans.PersistenceDelegate.initialize(PersistenceDelegate.java:191)
         at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:393)
         at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:103)
         at java.beans.Encoder.writeObject(Encoder.java:55)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:250)
         at java.beans.Encoder.writeExpression(Encoder.java:260)
         at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:363)
         at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:100)
         at java.beans.Encoder.writeObject(Encoder.java:55)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:250)
         at java.beans.Encoder.writeObject1(Encoder.java:192)
         at java.beans.Encoder.cloneStatement(Encoder.java:205)
         at java.beans.Encoder.writeStatement(Encoder.java:236)
         at java.beans.XMLEncoder.writeStatement(XMLEncoder.java:326)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:253)
         at de.zew.veranlagungssimulation.GUI.HauptFrame.speichern(HauptFrame.java:1181)
         at de.zew.veranlagungssimulation.GUI.HauptFrame.speichernUnter(HauptFrame.java:1128)
         at de.zew.veranlagungssimulation.GUI.HauptFrame.dateiSpeichernUnterItem_actionPerformed(HauptFrame.java:1025)
         at de.zew.veranlagungssimulation.GUI.HauptFrame$8.actionPerformed(HauptFrame.java:340)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
         at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
         at java.awt.Component.processMouseEvent(Component.java:5100)
         at java.awt.Component.processEvent(Component.java:4897)
         at java.awt.Container.processEvent(Container.java:1569)
         at java.awt.Component.dispatchEventImpl(Component.java:3615)
         at java.awt.Container.dispatchEventImpl(Container.java:1627)
         at java.awt.Component.dispatchEvent(Component.java:3477)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
         at java.awt.Container.dispatchEventImpl(Container.java:1613)
         at java.awt.Window.dispatchEventImpl(Window.java:1606)
         at java.awt.Component.dispatchEvent(Component.java:3477)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    [ERROR]       [AWT-EventQueue-0] "2005-07-20 11:58:13,343"       GUI.HauptFrame$37 
           exceptionThrown  at Line 1177
    java.util.ConcurrentModificationException
         at java.util.HashMap$HashIterator.nextEntry(HashMap.java:782)
         at java.util.HashMap$KeyIterator.next(HashMap.java:818)
         at java.beans.java_util_Map_PersistenceDelegate.initialize(MetaData.java:262)
         at java.beans.PersistenceDelegate.initialize(PersistenceDelegate.java:191)
         at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:393)
         at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:103)
         at java.beans.Encoder.writeObject(Encoder.java:55)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:250)
         at java.beans.Encoder.writeExpression(Encoder.java:260)
         at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:363)
         at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:219)
         at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:254)
         at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:395)
         at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:103)
         at java.beans.Encoder.writeObject(Encoder.java:55)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:250)
         at java.beans.Encoder.writeExpression(Encoder.java:260)
         at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:363)
         at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:100)
         at java.beans.Encoder.writeObject(Encoder.java:55)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:250)
         at java.beans.Encoder.writeObject1(Encoder.java:192)
         at java.beans.Encoder.cloneStatement(Encoder.java:205)
         at java.beans.Encoder.writeStatement(Encoder.java:236)
         at java.beans.XMLEncoder.writeStatement(XMLEncoder.java:326)
         at java.beans.DefaultPersistenceDelegate.invokeStatement(DefaultPersistenceDelegate.java:242)
         at java.beans.java_util_List_PersistenceDelegate.initialize(MetaData.java:245)
         at java.beans.PersistenceDelegate.initialize(PersistenceDelegate.java:191)
         at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:393)
         at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:103)
         at java.beans.Encoder.writeObject(Encoder.java:55)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:250)
         at java.beans.Encoder.writeExpression(Encoder.java:260)
         at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:363)
         at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:219)
         at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:254)
         at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:395)
         at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:103)
         at java.beans.Encoder.writeObject(Encoder.java:55)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:250)
         at java.beans.Encoder.writeExpression(Encoder.java:260)
         at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:363)
         at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:100)
         at java.beans.Encoder.writeObject(Encoder.java:55)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:250)
         at java.beans.Encoder.writeObject1(Encoder.java:192)
         at java.beans.Encoder.cloneStatement(Encoder.java:205)
         at java.beans.Encoder.writeStatement(Encoder.java:236)
         at java.beans.XMLEncoder.writeStatement(XMLEncoder.java:326)
         at java.beans.DefaultPersistenceDelegate.invokeStatement(DefaultPersistenceDelegate.java:242)
         at java.beans.java_util_List_PersistenceDelegate.initialize(MetaData.java:245)
         at java.beans.PersistenceDelegate.initialize(PersistenceDelegate.java:191)
         at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:393)
         at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:103)
         at java.beans.Encoder.writeObject(Encoder.java:55)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:250)
         at java.beans.Encoder.writeExpression(Encoder.java:260)
         at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:363)
         at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:219)
         at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:254)
         at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:395)
         at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:103)
         at java.beans.Encoder.writeObject(Encoder.java:55)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:250)
         at java.beans.Encoder.writeExpression(Encoder.java:260)
         at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:363)
         at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:100)
         at java.beans.Encoder.writeObject(Encoder.java:55)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:250)
         at java.beans.Encoder.writeObject1(Encoder.java:192)
         at java.beans.Encoder.cloneStatement(Encoder.java:205)
         at java.beans.Encoder.writeStatement(Encoder.java:236)
         at java.beans.XMLEncoder.writeStatement(XMLEncoder.java:326)
         at java.beans.DefaultPersistenceDelegate.invokeStatement(DefaultPersistenceDelegate.java:242)
         at java.beans.java_util_List_PersistenceDelegate.initialize(MetaData.java:245)
         at java.beans.PersistenceDelegate.initialize(PersistenceDelegate.java:191)
         at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:393)
         at java.beans.PersistenceDelegate.initialize(PersistenceDelegate.java:191)
         at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:393)
         at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:103)
         at java.beans.Encoder.writeObject(Encoder.java:55)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:250)
         at java.beans.Encoder.writeExpression(Encoder.java:260)
         at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:363)
         at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:219)
         at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:254)
         at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:395)
         at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:103)
         at java.beans.Encoder.writeObject(Encoder.java:55)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:250)
         at java.beans.Encoder.writeExpression(Encoder.java:260)
         at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:363)
         at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:219)
         at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:254)
         at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:395)
         at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:103)
         at java.beans.Encoder.writeObject(Encoder.java:55)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:250)
         at java.beans.Encoder.writeExpression(Encoder.java:260)
         at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:363)
         at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:100)
         at java.beans.Encoder.writeObject(Encoder.java:55)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:250)
         at java.beans.Encoder.writeExpression(Encoder.java:260)
         at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:363)
         at java.beans.java_util_Map_PersistenceDelegate.initialize(MetaData.java:280)
         at java.beans.PersistenceDelegate.initialize(PersistenceDelegate.java:191)
         at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:393)
         at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:103)
         at java.beans.Encoder.writeObject(Encoder.java:55)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:250)
         at java.beans.Encoder.writeExpression(Encoder.java:260)
         at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:363)
         at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:100)
         at java.beans.Encoder.writeObject(Encoder.java:55)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:250)
         at java.beans.Encoder.writeObject1(Encoder.java:192)
         at java.beans.Encoder.cloneStatement(Encoder.java:205)
         at java.beans.Encoder.writeStatement(Encoder.java:236)
         at java.beans.XMLEncoder.writeStatement(XMLEncoder.java:326)
         at java.beans.XMLEncoder.writeObject(XMLEncoder.java:253)
         at de.zew.veranlagungssimulation.GUI.HauptFrame.speichern(HauptFrame.java:1181)
         at de.zew.veranlagungssimulation.GUI.HauptFrame.speichernUnter(HauptFrame.java:1128)
         at de.zew.veranlagungssimulation.GUI.HauptFrame.dateiSpeichernUnterItem_actionPerformed(HauptFrame.java:1025)
         at de.zew.veranlagungssimulation.GUI.HauptFrame$8.actionPerformed(HauptFrame.java:340)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
         at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
         at java.awt.Component.processMouseEvent(Component.java:5100)
         at java.awt.Component.processEvent(Component.java:4897)
         at java.awt.Container.processEvent(Container.java:1569)
         at java.awt.Component.dispatchEventImpl(Component.java:3615)
         at java.awt.Container.dispatchEventImpl(Container.java:1627)
         at java.awt.Component.dispatchEvent(Component.java:3477)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
         at java.awt.Container.dispatchEventImpl(Container.java:1613)
         at java.awt.Window.dispatchEventImpl(Window.java:1606)
         at java.awt.Component.dispatchEvent(Component.java:3477)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    [DEBUG]       [AWT-EventQueue-0] "2005-07-20 11:58:14,015"       GUI.HauptFrame 
           speichern Speichern ende at Line 1182 Speichern <==> Save

  • Java.util.ConcurrentModificationException when launching aa signed applet .

    I am getting the following error while trying to launch a signed applet with JRE 1.6.0_01. It works fine on most of the machines.
    Any help, advise is appreciated.
    Thanks

    Did not include the full stack trace, here it is:
    ava.util.ConcurrentModificationException
         at java.util.AbstractList$Itr.checkForComodification(Unknown Source)
         at java.util.AbstractList$Itr.next(Unknown Source)
         at com.sun.deploy.security.WIExplorerCertStore.getCertificates(Unknown Source)
         at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
         at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
         at sun.plugin.security.PluginClassLoader.getPermissions(Unknown Source)
         at java.security.SecureClassLoader.getProtectionDomain(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.access$000(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

  • Getting compilation error: java.util.Set is an interface. This interface is not supported.

    Hi Folks,
    Is there a limitation in BEA's web services implementation? I have a simple web
    service that returns an array of java objects. However I am calling another middle
    tier API that returns a Set. I convert this Set into array of object and return
    it via the web service.
    However the .jws file that implements the webservice does not compile. I get the
    following error message:
    java.util.Set is an interface. This interface is not supported.
    Is there a limitation on using Collections within the .jws file? If that is the
    case it is a severe limitation.
    Note my Web Service API returns an array of java objects with no collections in
    them.
    Sanjay

    Hello,
    Generic java collections can only be handled in a very generic, weakly
    typed manner.
    Take a look at the
    http://workshop.bea.com/xmlbeans/guide/conXMLBeansSupportBuiltInSchemaTypes.html
    and also
    http://workshop.bea.com/xmlbeans/guide/conJavaTypesGeneratedFromUserDerived.html
    You might also ask your question to the XMLBeans newsgroup:
    http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=xover&group=weblogic.developer.interest.xmlbeans
    Regards,
    Bruce
    Sanjay wrote:
    >
    Hi Folks,
    Is there a limitation in BEA's web services implementation? I have a simple web
    service that returns an array of java objects. However I am calling another middle
    tier API that returns a Set. I convert this Set into array of object and return
    it via the web service.
    However the .jws file that implements the webservice does not compile. I get the
    following error message:
    java.util.Set is an interface. This interface is not supported.
    Is there a limitation on using Collections within the .jws file? If that is the
    case it is a severe limitation.
    Note my Web Service API returns an array of java objects with no collections in
    them.
    Sanjay

  • Unable to override the method get(int) in java.util.AbstractList

    package util;
    import java.util.Vector;
    import java.lang.Integer;
    public class integerVector extends Vector
    public integerVector() { //construct a Vector()
    super();
    public integerVector(int m) { // construct a Vector(m)
    super(m);
    public integerVector(int m, int n) { // construct a Vector(m,n)
    super(m,n);
    public void set (int i, int n) {
    Integer ii= new Integer(i) ;
    setElementAt(ii,n);
    when i try compiling this i get the following error:
    integerVector.java:37: get(int) in util.integerVector cannot override get(int) i
    n java.util.AbstractList; attempting to use incompatible return type
    found : java.lang.Integer
    required: java.lang.Object
    public Integer get(int n) {
    It would be very helpful if anyone can provide the solution

    The method's signature is defined by the Interface java.util.List.
    public Object get(int index)
    instead you want to implement
    public Integer get(int index)
    Yes you could write a class with this method, and call it IntegerList or similar.
    However it could not implement the List interface, or extend any of the List classes.
    Instead of extending Vector (or ArrayList) you could delegate to it.
    That way you're not extending the class, and not changing the signature of a method.
    public class IntegerList(){
      private List internalList = new ArrayList();
      public Integer get(int index){
        return (Integer)internalList.get(index);
    }This class would be of limited use though, because you couldn't treat it as a regular list because it hasn't implemented the interface properly.
    The best you could do would be to have it implement the collection interface, which doesn't expose the specific get methods.

  • Iterator.next() throws java.util.ConcurrentModificationException

    Hello, I have a set and an iterator defined like this:
    HashSet<JFrame> set = new HashSet<JFrame>();
    Iterator<JFrame> iterator = set.iterator();
    Then later I add frames like this:
    set.add(jFrame);
    Then later when I try to call:
    iterator.next();
    I get ConcurrentModificationException. But I only call this next() method one time and only.
    I can call hasNext() method without a problem, but not next().
    How do I call next() without an exception??
    Mark

    create an iterator and then after this you change the collection? does this sound safe?(...)after getting the iterator, don't modify the set (with exception as per api) and expect the iterator to work.
    Well, I think you are making fun of me here. It's OK, I don't mind, but I want to disagree with your reasons.
    "Does this sound safe?" Yes, why not? The iterator could refer to the set, whatever its contents. You could add to the set and, and then remove from it by iterator.next(), and add and remove... As long as you synchronise all these things (and I do), there is no general reason why this would be a bad thing.
    But of course, the API does prohibit that explicitly, you are right. It's just that when you naturally expect certain behaviour, you don't read all of the documentation.
    And then when ConcurrentModificationException happens, this exception name does not reflect what happens, as I said, I am not concurrently modifying anything in multiple threads. So the name of the exception threw me off track and I did not think it was the order of the operations that I did wrong.
    Anyway, thank you very much for help.

Maybe you are looking for

  • Lumia 620 software upgrade issues

    Hi,  My Nokia lumia 620 with windows8 was upgraded to the latest software (amber, i guess) and after this the touchscreen stopped working. The touchscreen was recently replaced. * Is there a way to go back to the previous version of software (where t

  • Accessing element in a nested arraylist

    Hi, I have a LinkedHashMap that contains ArrayLists. Something like this: {color:#3366ff} ArrayList list = new ArrayList(); ArrayList list2 = new ArrayList(); LinkedHashMap<Integer, ArrayList> map = new LinkedHashMap<Integer, ArrayList>(); list.add(0

  • How does NetBeans run for you?

    Was going to start using NetBeans today and was amazed at how bad it was. Can't really picture it being that bad for most people. Basically here is what it did. Loaded - took like 10 seconds. Popped up, I choose to make a new project. Spent like 5 mi

  • How to setup x2 sata W/D Raptor drives not using raid

    Hi all, I am new to this forum so please be kind. I have just got myself this NE02 board along with 2 W/D Raptor SATA Hard Drives. I have seem many instructions in these groups about how to configure sata drives using a raid configuration. What I am

  • Error: CO account assignments have different profit centers in Sales Order

    Hi Xperts, What all would be the possible reasons for the below error message: "CO account assignments have different profit centers" I am getting this during creation of sales order with reference to a quotation. The quotation is having a reference