When running testNG via gradle in jenkins we are getting an NEP on the debug


(info) #1

we see this error in the logs

16:25:17.103 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: STARTING 16:25:17.103 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Waiting until process started: Gradle Worker 33. 16:25:17.110 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: STARTED 16:25:17.111 [DEBUG] [org.gradle.process.internal.ExecHandleRunner] waiting until streams are handled… 16:25:17.111 [INFO] [org.gradle.process.internal.DefaultExecHandle] Successfully started process ‘Gradle Worker 33’ 16:25:17.738 [QUIET] [system.out] 16:25:17.737 [DEBUG] [org.gradle.logging.internal.DefaultLoggingConfigurer] Finished configuring with level: DEBUG, configurers: [org.gradle.logging.internal.OutputEventRenderer@3abbe647, org.gradle.logging.internal.logback.LogbackLoggingConfigurer@60b5d71, org.gradle.logging.internal.JavaUtilLoggingConfigurer@5423a8d0] 16:25:18.153 [QUIET] [system.out] 16:25:18.152 [DEBUG] [org.gradle.messaging.remote.internal.inet.TcpOutgoingConnector] Attempting to connect to [acc3c3d4-9216-41aa-a7b2-ffd652987219 port:56341, addresses:[/0:0:0:0:0:0:0:1, /127.0.0.1]]. 16:25:18.155 [QUIET] [system.out] 16:25:18.155 [DEBUG] [org.gradle.messaging.remote.internal.inet.TcpOutgoingConnector] Trying to connect to address /0:0:0:0:0:0:0:1. 16:25:18.165 [DEBUG] [org.gradle.messaging.remote.internal.inet.TcpIncomingConnector] Accepted connection from /0:0:0:0:0:0:0:1:56342 to /0:0:0:0:0:0:0:1:56341. 16:25:18.165 [QUIET] [system.out] 16:25:18.164 [DEBUG] [org.gradle.messaging.remote.internal.inet.TcpOutgoingConnector] Connected to address /0:0:0:0:0:0:0:1. 16:25:18.166 [DEBUG] [org.gradle.process.internal.DefaultWorkerProcess] Received connection org.gradle.messaging.remote.internal.hub.MessageHubBackedObjectConnection@3b2bbd6b from Gradle Worker 33 16:25:18.353 [QUIET] [system.out] 16:25:18.353 [DEBUG] [org.gradle.process.internal.child.ActionExecutionWorker] Starting Gradle Worker 33. 16:25:18.356 [QUIET] [system.out] 16:25:18.356 [INFO] [org.gradle.api.internal.tasks.testing.worker.TestWorker] Gradle Worker 33 executing tests. 16:25:18.495 [DEBUG] [TestEventLogger]

16:25:18.495 [DEBUG] [TestEventLogger] Gradle Worker 33 STARTED 16:25:18.784 [QUIET] [system.out] 16:25:18.784 [INFO] [org.gradle.api.internal.tasks.testing.worker.TestWorker] Gradle Worker 33 finished executing tests. 16:25:18.790 [QUIET] [system.out] 16:25:18.790 [DEBUG] [org.gradle.process.internal.child.ActionExecutionWorker] Completed Gradle Worker 33. 16:25:18.817 [DEBUG] [TestEventLogger]

16:25:18.817 [DEBUG] [TestEventLogger] Gradle Worker 33 FAILED 16:25:18.817 [DEBUG] [TestEventLogger]

org.gradle.api.internal.tasks.testing.TestSuiteExecutionException: Could not complete execution for test process ‘Gradle Worker 33’. 16:25:18.817 [DEBUG] [TestEventLogger]

at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:60) 16:25:18.817 [DEBUG] [TestEventLogger]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 16:25:18.818 [DEBUG] [TestEventLogger]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 16:25:18.818 [DEBUG] [TestEventLogger]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 16:25:18.818 [DEBUG] [TestEventLogger]

at java.lang.reflect.Method.invoke(Method.java:601) 16:25:18.818 [DEBUG] [TestEventLogger]

at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35) 16:25:18.818 [DEBUG] [TestEventLogger]

at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) 16:25:18.818 [DEBUG] [TestEventLogger]

at org.gradle.messaging.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32) 16:25:18.818 [DEBUG] [TestEventLogger]

at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93) 16:25:18.818 [DEBUG] [TestEventLogger]

at com.sun.proxy.$Proxy2.stop(Unknown Source) 16:25:18.819 [DEBUG] [TestEventLogger]

at org.gradle.api.internal.tasks.testing.worker.TestWorker.stop(TestWorker.java:113) 16:25:18.819 [DEBUG] [TestEventLogger]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 16:25:18.819 [DEBUG] [TestEventLogger]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 16:25:18.819 [DEBUG] [TestEventLogger]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 16:25:18.819 [DEBUG] [TestEventLogger]

at java.lang.reflect.Method.invoke(Method.java:601) 16:25:18.819 [DEBUG] [TestEventLogger]

at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35) 16:25:18.819 [DEBUG] [TestEventLogger]

at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) 16:25:18.819 [DEBUG] [TestEventLogger]

at org.gradle.messaging.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:355) 16:25:18.819 [DEBUG] [TestEventLogger]

at org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:66) 16:25:18.819 [DEBUG] [TestEventLogger]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 16:25:18.819 [DEBUG] [TestEventLogger]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 16:25:18.819 [DEBUG] [TestEventLogger]

at java.lang.Thread.run(Thread.java:722) 16:25:18.819 [DEBUG] [TestEventLogger]

16:25:18.819 [DEBUG] [TestEventLogger]

Caused by: 16:25:18.819 [DEBUG] [TestEventLogger]

java.lang.NullPointerException 16:25:18.819 [DEBUG] [TestEventLogger]

at org.testng.internal.MethodInvocationHelper.invokeDataProvider(MethodInvocationHelper.java:131) 16:25:18.819 [DEBUG] [TestEventLogger]

at org.testng.internal.Parameters.handleParameters(Parameters.java:426) 16:25:18.819 [DEBUG] [TestEventLogger]

at org.testng.internal.FactoryMethod.invoke(FactoryMethod.java:63) 16:25:18.820 [DEBUG] [TestEventLogger]

at org.testng.internal.TestNGClassFinder.(TestNGClassFinder.java:140) 16:25:18.820 [DEBUG] [TestEventLogger]

at org.testng.TestRunner.initMethods(TestRunner.java:409) 16:25:18.820 [DEBUG] [TestEventLogger]

at org.testng.TestRunner.init(TestRunner.java:235) 16:25:18.820 [DEBUG] [TestEventLogger]

at org.testng.TestRunner.init(TestRunner.java:205) 16:25:18.820 [DEBUG] [TestEventLogger]

at org.testng.TestRunner.(TestRunner.java:153) 16:25:18.820 [DEBUG] [TestEventLogger]

at org.testng.SuiteRunner$DefaultTestRunnerFactory.newTestRunner(SuiteRunner.java:522) 16:25:18.820 [DEBUG] [TestEventLogger]

at org.testng.SuiteRunner.init(SuiteRunner.java:157) 16:25:18.820 [DEBUG] [TestEventLogger]

at org.testng.SuiteRunner.(SuiteRunner.java:111) 16:25:18.820 [DEBUG] [TestEventLogger]

at org.testng.TestNG.createSuiteRunner(TestNG.java:1273) 16:25:18.820 [DEBUG] [TestEventLogger]

at org.testng.TestNG.createSuiteRunners(TestNG.java:1260) 16:25:18.820 [DEBUG] [TestEventLogger]

at org.testng.TestNG.runSuitesLocally(TestNG.java:1114) 16:25:18.820 [DEBUG] [TestEventLogger]

at org.testng.TestNG.run(TestNG.java:1031) 16:25:18.820 [DEBUG] [TestEventLogger]

at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.stop(TestNGTestClassProcessor.java:112) 16:25:18.820 [DEBUG] [TestEventLogger]

at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:58) 16:25:18.820 [DEBUG] [TestEventLogger]

… 21 more


(info) #2

Just above the stack trade we see

13:32:53.835 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: SUCCEEDED 13:32:53.835 [INFO] [org.gradle.process.internal.DefaultExecHandle] Process ‘Gradle Worker 14’ finished with exit value 0 (state: SUCCEEDED) 13:32:53.837 [DEBUG] [TestEventLogger]

13:32:53.837 [DEBUG] [TestEventLogger] Test Run FAILED