maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tibor Digana (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (SUREFIRE-994) java.lang.ClassNotFoundException: org.testng.TestNG
Date Sat, 27 Jun 2015 10:14:04 GMT

     [ https://issues.apache.org/jira/browse/SUREFIRE-994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tibor Digana closed SUREFIRE-994.
---------------------------------
    Resolution: Cannot Reproduce
      Assignee: Tibor Digana

Feel free to reopen if appears again.
Could not reproduce with TestNG 6.8.8 and surefire 2.19-SNAPSHOT, see the project in SUREFIRE-1079.
-T 3C
<parallel>classes</parallel> or <parallel>methods</parallel>
<threadCount>4</threadCount>

> java.lang.ClassNotFoundException: org.testng.TestNG
> ---------------------------------------------------
>
>                 Key: SUREFIRE-994
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-994
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: classloading, Maven Surefire Plugin, TestNG support
>    Affects Versions: 2.14, 2.14.1
>         Environment: Linux mazursky-box 3.8.0-19-generic #30-Ubuntu SMP Wed May 1 16:35:23
UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
> java version "1.7.0_21"
> OpenJDK Runtime Environment (IcedTea 2.3.9) (7u21-2.3.9-1ubuntu1)
> OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
>            Reporter: Mikhail Mazurskiy
>            Assignee: Tibor Digana
>
> This happens sometimes (rarely). 2.14, 14.1 are affected and earlier versions too I think.
> The setting is:
> - parallel build,
> - surefire and failsafe are forked always.
> Is there anything more I can provide to help debug this?
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.14.1:test
(default-test) on project PROJECT: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.14.1:test
failed: There was an error in the forked process
> [ERROR] java.lang.NoClassDefFoundError: org/testng/TestNG
> [ERROR] at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:64)
> [ERROR] at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:189)
> [ERROR] at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:105)
> [ERROR] at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:117)
> [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> [ERROR] at java.lang.reflect.Method.invoke(Method.java:601)
> [ERROR] at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:208)
> [ERROR] at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:159)
> [ERROR] at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:87)
> [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
> [ERROR] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:95)
> [ERROR] Caused by: java.lang.ClassNotFoundException: org.testng.TestNG
> [ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
> [ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
> [ERROR] at java.security.AccessController.doPrivileged(Native Method)
> [ERROR] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
> [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
> [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
> [ERROR] at org.apache.maven.surefire.booter.IsolatedClassLoader.loadClass(IsolatedClassLoader.java:97)
> [ERROR] ... 13 more
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message