[ https://jira.codehaus.org/browse/SUREFIRE-1132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=359904#comment-359904 ]
Alexander Ashitkin commented on SUREFIRE-1132: ---------------------------------------------- i run 23 builds on 2.18.1 so far. 3 builds failed with ClassNotFoundException. So failures rate is pretty same ~10%. Exceptions look same: {code} 03:19:43 Caused by: org.apache.maven.plugin.PluginContainerException: A required class was missing while executing org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test: org/junit/runner/notification/RunListener 03:19:43 ----------------------------------------------------- 03:19:43 realm = plugin>org.apache.maven.plugins:maven-surefire-plugin:2.18.1 03:19:43 strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy 03:19:43 urls[0] = file:/d:/.m2/repository/org/apache/maven/plugins/maven-surefire-plugin/2.18.1/maven-surefire-plugin-2.18.1.jar 03:19:43 urls[1] = file:/d:/.m2/repository/junit/junit/4.11/junit-4.11.jar 03:19:43 urls[2] = file:/d:/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar 03:19:43 urls[3] = file:/d:/.m2/repository/org/apache/maven/surefire/maven-surefire-common/2.18.1/maven-surefire-common-2.18.1.jar 03:19:43 urls[4] = file:/d:/.m2/repository/org/apache/maven/surefire/surefire-booter/2.18.1/surefire-booter-2.18.1.jar 03:19:43 urls[5] = file:/d:/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.15/plexus-utils-1.5.15.jar 03:19:43 urls[6] = file:/d:/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar 03:19:43 urls[7] = file:/d:/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.11/plexus-interpolation-1.11.jar 03:19:43 urls[8] = file:/d:/.m2/repository/org/slf4j/slf4j-jdk14/1.5.6/slf4j-jdk14-1.5.6.jar 03:19:43 urls[9] = file:/d:/.m2/repository/org/slf4j/slf4j-api/1.5.6/slf4j-api-1.5.6.jar 03:19:43 urls[10] = file:/d:/.m2/repository/org/slf4j/jcl-over-slf4j/1.5.6/jcl-over-slf4j-1.5.6.jar 03:19:43 urls[11] = file:/d:/.m2/repository/org/apache/maven/reporting/maven-reporting-api/3.0/maven-reporting-api-3.0.jar 03:19:43 urls[12] = file:/d:/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar 03:19:43 urls[13] = file:/d:/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar 03:19:43 urls[14] = file:/d:/.m2/repository/org/apache/commons/commons-lang3/3.1/commons-lang3-3.1.jar 03:19:43 urls[15] = file:/d:/.m2/repository/org/apache/maven/surefire/surefire-api/2.18.1/surefire-api-2.18.1.jar 03:19:43 urls[16] = file:/d:/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-annotations/3.3/maven-plugin-annotations-3.3.jar 03:19:43 Number of foreign imports: 1 03:19:43 import: Entry[import from realm ClassRealm[project>g:a:sf-test-16, parent: ClassRealm[maven.api, parent: null]]] 03:19:43 03:19:43 ----------------------------------------------------- 03:19:43 03:19:43 at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:164) 03:19:43 ... 12 more 03:19:43 Caused by: java.lang.NoClassDefFoundError: org/junit/runner/notification/RunListener 03:19:43 at java.lang.Class.getDeclaredConstructors0(Native Method) 03:19:43 at java.lang.Class.privateGetDeclaredConstructors(Class.java:2532) 03:19:43 at java.lang.Class.getConstructor0(Class.java:2842) 03:19:43 at java.lang.Class.getConstructor(Class.java:1718) 03:19:43 at org.apache.maven.surefire.util.ReflectionUtils.getConstructor(ReflectionUtils.java:76) 03:19:43 at org.apache.maven.surefire.util.ReflectionUtils.instantiateOneArg(ReflectionUtils.java:129) 03:19:43 at org.apache.maven.surefire.booter.SurefireReflector.instantiateProvider(SurefireReflector.java:236) 03:19:43 at org.apache.maven.surefire.booter.ProviderFactory.createProvider(ProviderFactory.java:112) 03:19:43 at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:77) 03:19:43 at org.apache.maven.plugin.surefire.InPluginVMSurefireStarter.runSuitesInProcess(InPluginVMSurefireStarter.java:82) 03:19:43 at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:974) 03:19:43 at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:824) 03:19:43 at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:722) 03:19:43 at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132) 03:19:43 ... 12 more 03:19:43 Caused by: java.lang.ClassNotFoundException: org.junit.runner.notification.RunListener 03:19:43 at java.net.URLClassLoader$1.run(URLClassLoader.java:366) 03:19:43 at java.net.URLClassLoader$1.run(URLClassLoader.java:355) 03:19:43 at java.security.AccessController.doPrivileged(Native Method) 03:19:43 at java.net.URLClassLoader.findClass(URLClassLoader.java:354) 03:19:43 at java.lang.ClassLoader.loadClass(ClassLoader.java:425) 03:19:43 at java.lang.ClassLoader.loadClass(ClassLoader.java:358) 03:19:43 at org.apache.maven.surefire.booter.IsolatedClassLoader.loadClass(IsolatedClassLoader.java:97) 03:19:43 ... 26 more {code} > Surefire: regular isolated classloader failures in parallelbuild > ---------------------------------------------------------------- > > Key: SUREFIRE-1132 > URL: https://jira.codehaus.org/browse/SUREFIRE-1132 > Project: Maven Surefire > Issue Type: Bug > Components: classloading > Affects Versions: 2.17 > Environment: SLES 3.0.80-0.7-default SMP x86_64 GNU/Linux > windows server 2008 x64 > Maven 3.2.2, 3.2.3, 3.2.5 > Oracle HotSpot JDK 7u25 > Reporter: Alexander Ashitkin > Attachments: consoleText-1.txt, consoleText-2.txt, consoleText-3.txt > > > We have a large project of 300+ modules which regularly fails with different > kind of classloading issues in different places in surefire plugin. The issue > is reproduced only with parallel build and is not reproduced in single > threaded. This is a main contributor in build instability for us. All the not > loaded dependnecies are actually present in dependency tree. I attached 3 > different samples of how build fails. > Surefire config: > {code} > <configuration> > <forkCount>0</forkCount> > <!--doesnt work in parrallel build. Causes build > failures with error java.io.IOException: Stream Closed--> > <redirectTestOutputToFile>false</redirectTestOutputToFile> > <useManifestOnlyJar>false</useManifestOnlyJar> > </configuration> > {code} > maven cmd is like install -T 10 > Please advise how to sort this out - ready to run any provided diagnostic > and evaluate any options. > Thanks in advance, Alexander -- This message was sent by Atlassian JIRA (v6.1.6#6162)