Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-2646

ConcurrentModificationException while changing pom.xml purges the whole file contents

XMLWordPrintable

      When I run setup on an existing pom.xml it fails and purges the xml

      [order]$ wildfly-swarm-setup
      ***ERROR*** Error while executing 'WildFly-Swarm: Setup'
      java.util.ConcurrentModificationException
      	at org.jdom.ContentList$FilterListIterator.checkConcurrentModification(ContentList.java:940)
      	at org.jdom.ContentList$FilterListIterator.nextIndex(ContentList.java:829)
      	at org.jdom.ContentList$FilterListIterator.hasNext(ContentList.java:785)
      	at org.jboss.forge.addon.maven.util.MavenJDOMWriter.replaceXpp3DOM(MavenJDOMWriter.java:1129)
      	at org.jboss.forge.addon.maven.util.MavenJDOMWriter.findAndReplaceXpp3DOM(MavenJDOMWriter.java:247)
      	at org.jboss.forge.addon.maven.util.MavenJDOMWriter.updatePlugin(MavenJDOMWriter.java:1839)
      	at org.jboss.forge.addon.maven.util.MavenJDOMWriter.iteratePlugin(MavenJDOMWriter.java:776)
      	at org.jboss.forge.addon.maven.util.MavenJDOMWriter.updateBuild(MavenJDOMWriter.java:1261)
      	at org.jboss.forge.addon.maven.util.MavenJDOMWriter.updateModel(MavenJDOMWriter.java:1693)
      	at org.jboss.forge.addon.maven.util.MavenJDOMWriter.write(MavenJDOMWriter.java:2205)
      	at org.jboss.forge.addon.maven.util.MavenJDOMWriter.write(MavenJDOMWriter.java:2191)
      	at org.jboss.forge.addon.maven.resources.MavenModelResourceImpl.setCurrentModel(MavenModelResourceImpl.java:122)
      	at org.jboss.forge.addon.maven.projects.MavenFacetImpl.setModel(MavenFacetImpl.java:118)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
      	at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
      	at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
      	at org.jboss.forge.addon.maven.projects.MavenFacetImpl_$$_javassist_a05b86e5-eda5-48ba-9ed3-f289c398609d.setModel(MavenFacetImpl_$$_javassist_a05b86e5-eda5-48ba-9ed3-f289c398609d.java)
      	at org.jboss.forge.addon.maven.projects.MavenPluginFacetImpl.removePlugin(MavenPluginFacetImpl.java:737)
      	at org.jboss.forge.addon.maven.projects.MavenPluginFacetImpl.updatePlugin(MavenPluginFacetImpl.java:744)
      	at org.jboss.forge.addon.maven.projects.MavenPluginFacetImpl.updatePlugin(MavenPluginFacetImpl.java:252)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
      	at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
      	at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
      	at org.jboss.forge.addon.maven.projects.MavenPluginFacetImpl_$$_javassist_409a8899-0b3b-450a-8769-e6e0e148d0e0.updatePlugin(MavenPluginFacetImpl_$$_javassist_409a8899-0b3b-450a-8769-e6e0e148d0e0.java)
      	at org.jboss.forge.addon.swarm.facet.WildFlySwarmFacet.updatePluginConfiguration(WildFlySwarmFacet.java:226)
      	at org.jboss.forge.addon.swarm.facet.WildFlySwarmFacet.setConfiguration(WildFlySwarmFacet.java:88)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
      	at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
      	at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
      	at org.jboss.forge.addon.swarm.facet.WildFlySwarmFacet_$$_javassist_047f9b11-10e1-4359-8245-16fa41ddcf19.setConfiguration(WildFlySwarmFacet_$$_javassist_047f9b11-10e1-4359-8245-16fa41ddcf19.java)
      	at org.jboss.forge.addon.swarm.ui.SetupCommand.execute(SetupCommand.java:83)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
      	at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
      	at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
      	at org.jboss.forge.addon.swarm.ui.SetupCommand_$$_javassist_f47f2c42-a073-413c-9cb4-378a0f92465c.execute(SetupCommand_$$_javassist_f47f2c42-a073-413c-9cb4-378a0f92465c.java)
      	at org.jboss.forge.addon.ui.impl.controller.WizardCommandControllerImpl.execute(WizardCommandControllerImpl.java:162)
      	at org.jboss.forge.addon.ui.impl.controller.NoUIWizardControllerDecorator.execute(NoUIWizardControllerDecorator.java:152)
      	at org.jboss.forge.addon.shell.aesh.CommandAdapter.execute(CommandAdapter.java:98)
      	at org.jboss.forge.addon.shell.aesh.ForgeCommandContainer.executeCommand(ForgeCommandContainer.java:89)
      	at org.jboss.aesh.console.AeshConsoleImpl$AeshConsoleCallbackImpl.execute(AeshConsoleImpl.java:311)
      	at org.jboss.aesh.console.AeshProcess.run(AeshProcess.java:53)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      [order]$ 
      

              rhn-support-ggastald George Gastaldi
              rhn-support-hbraun Heiko Braun
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: