Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-6259

java.util.ConcurrentModificationException building Apache Commons CSV on Java 15-EA

    XMLWordPrintableJSON

Details

    Description

      We get a java.util.ConcurrentModificationException building Apache Commons CSV when building with Java 15-EA:

      openjdk version "15-ea" 2020-09-15
      OpenJDK Runtime Environment (build 15-ea+18-776)
      OpenJDK 64-Bit Server VM (build 15-ea+18-776, mixed mode, sharing)
      

      ConcurrentModificationException:

      [INFO] --- maven-bundle-plugin:4.2.1:manifest (bundle-manifest) @ commons-csv ---
      [ERROR] An internal error occurred
      java.util.ConcurrentModificationException
          at java.util.TreeMap.callMappingFunctionWithCheck (TreeMap.java:742)
          at java.util.TreeMap.computeIfAbsent (TreeMap.java:558)
          at aQute.bnd.osgi.Jar.putResource (Jar.java:288)
          at aQute.bnd.osgi.Jar$1.visitFile (Jar.java:202)
          at aQute.bnd.osgi.Jar$1.visitFile (Jar.java:177)
          at java.nio.file.Files.walkFileTree (Files.java:2804)
          at aQute.bnd.osgi.Jar.buildFromDirectory (Jar.java:176)
          at aQute.bnd.osgi.Jar.<init> (Jar.java:119)
          at aQute.bnd.osgi.Jar.<init> (Jar.java:172)
          at org.apache.felix.bundleplugin.BundlePlugin.getOSGiBuilder (BundlePlugin.java:604)
          at org.apache.felix.bundleplugin.ManifestPlugin.getAnalyzer (ManifestPlugin.java:285)
          at org.apache.felix.bundleplugin.ManifestPlugin.execute (ManifestPlugin.java:111)
          at org.apache.felix.bundleplugin.BundlePlugin.execute (BundlePlugin.java:364)
          at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
          at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
          at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
          at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
          at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
          at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
          at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
          at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke (Method.java:564)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
          at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
          at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
      

      Full log: https://pastebin.com/c3H3Zi7X

      Travis log: https://travis-ci.org/github/apache/commons-csv/jobs/675190349

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ggregory Gary D. Gregory
              Votes:
              7 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: