Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Process Manager (Stardust) » ConcurrentModificationException when DB is not empty
ConcurrentModificationException when DB is not empty [message #1097169] Thu, 29 August 2013 10:19 Go to next message
Robert Emsbach is currently offline Robert Emsbach
Messages: 121
Registered: October 2011
Location: Singapore
Senior Member

Hello,
I created dynamic web project(as instructed in documentation). I am using mysql database. When I deploy project on tomcat and start app, if database is not empty, I get this error:
12:00:58 ERROR [main      ] ContextLoader             - Context initialization failed
java.util.ConcurrentModificationException
       at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
       at java.util.AbstractList$Itr.next(AbstractList.java:343)
       at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:559)
       at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
       at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
       at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
       at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
       at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
       at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
       at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
       at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
       at org.apache.catalina.core.StandardService.start(StandardService.java:525)
       at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
       at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
       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:597)
       at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Aug 26, 2013 12:00:58 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
java.util.ConcurrentModificationException
       at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
       at java.util.AbstractList$Itr.next(AbstractList.java:343)
       at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:559)
       at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
       at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
       at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
       at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
       at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
       at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
       at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
       at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
       at org.apache.catalina.core.StandardService.start(StandardService.java:525)
       at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
       at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
       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:597)
       at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

this error happened also when I was using derby. It helps when I clean database.
Can anyone help with this?
Re: ConcurrentModificationException when DB is not empty [message #1097170 is a reply to message #1097169] Thu, 29 August 2013 10:19 Go to previous message
Robert Emsbach is currently offline Robert Emsbach
Messages: 121
Registered: October 2011
Location: Singapore
Senior Member

This is a known issue with the Spring version used (3.0.5 I guess). If you switch to 3.0.7 it will work.
Previous Topic:How to try out Lightdust / Browser Modeler?
Next Topic:Deployment error: JDBC URL must not be empty
Goto Forum:
  


Current Time: Wed Oct 22 23:58:09 GMT 2014

Powered by FUDForum. Page generated in 0.01945 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software