Build failed with an exception in task ':gobblin-compaction:gobblin-compaction:test'

329 views
Skip to first unread message

Yukun Guo

unread,
May 6, 2016, 7:12:23 AM5/6/16
to gobblin-users
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':gobblin-compaction:gobblin-compaction:test'.
> There were failing tests. See the report at: file:///home/me/bin/gobblin/build/gobblin-compaction/reports/tests/index.html

Gradle Test Executor 45

execution failure

org.gradle.api.internal.tasks.testing.TestSuiteExecutionException: Could not complete execution for process 'Gradle Test Executor 45'.
    at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:59)
    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:497)
    at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
    at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
    at org.gradle.messaging.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
    at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
    at com.sun.proxy.$Proxy2.stop(Unknown Source)
    at org.gradle.api.internal.tasks.testing.worker.TestWorker.stop(TestWorker.java:115)
    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:497)
    at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
    at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
    at org.gradle.messaging.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:355)
    at org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:64)
    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)
Caused by: java.lang.UnsupportedOperationException: Neither found interface 'org.testng.IConfigurationListener2' nor interface 'org.testng.internal.IConfigurationListener'. Which version of TestNG are you using?
    at org.gradle.api.internal.tasks.testing.testng.TestNGListenerAdapterFactory.createAdapter(TestNGListenerAdapterFactory.java:44)
    at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.adaptListener(TestNGTestClassProcessor.java:117)
    at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.stop(TestNGTestClassProcessor.java:91)
    at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:57)
    ... 21 more
   
Moreover, my JDK version is 1.8.0_66 and the console was filled with warning messages as described in https://community.oracle.com/thread/3783234?start=0&tstart=0
("-Xcheck:jni with JDK 1.8.0_60 now causes a flood of WARNINGs")

Chavdar Botev

unread,
May 6, 2016, 11:07:00 AM5/6/16
to Yukun Guo, gobblin-users
What is the precise gradle command that you ran?
> --
> You received this message because you are subscribed to the Google Groups
> "gobblin-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to gobblin-user...@googlegroups.com.
> To post to this group, send email to gobbli...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/gobblin-users/136a9f4a-6878-4178-9e36-21acc5a8df95%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Yukun Guo

unread,
May 7, 2016, 3:20:51 AM5/7/16
to gobblin-users, gyk...@gmail.com
I have tried different gradle commands but all of them failed in ':gobblin-compaction:gobblin-compaction:test':

./gradlew clean build -PuseHadoop2
./gradlew clean build -PuseHadoop2 -PhadoopVersion=2.7.2
./gradlew clean build -PuseHadoop2 -PhadoopVersion=2.6.4
./gradlew clean build

(I'm sorry it's not Gobblin that generates numerous warning messages, it's RocksDB's Java binding.  Got confused by trying many things at the same time...)

Sahil Takiar

unread,
May 9, 2016, 2:37:36 PM5/9/16
to Yukun Guo, gobblin-users
If you don't need to run the tests, you can just use "./gradlew clean assemble -PuseHadoop2" instead, this will prevent the tests from running.

Ramachandran Prasad

unread,
May 25, 2016, 2:09:09 PM5/25/16
to gobblin-users, gyk...@gmail.com

Hi,
Can u please let let me know, how you got past this error.

org.gradle.api.internal.tasks.testing.TestSuiteExecutionException: Could not complete execution for process 'Gradle Test Executor 31'.
	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:59)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
	at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.messaging.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
	at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
	at com.sun.proxy.$Proxy2.stop(Unknown Source)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.stop(TestWorker.java:115)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
	at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.messaging.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:355)
	at org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:64)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.UnsupportedOperationException: Neither found interface 'org.testng.IConfigurationListener2' nor interface 'org.testng.internal.IConfigurationListener'. Which version of TestNG are you using?
	at org.gradle.api.internal.tasks.testing.testng.TestNGListenerAdapterFactory.createAdapter(TestNGListenerAdapterFactory.java:44)
	at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.adaptListener(TestNGTestClassProcessor.java:117)
	at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.stop(TestNGTestClassProcessor.java:91)
	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:57)

Thanks
Prasad.


Sahil Takiar

unread,
May 27, 2016, 12:47:54 PM5/27/16
to Ramachandran Prasad, gobblin-users, Yukun Guo
I would recommend running "./gradlew clean assemble" in order to compile your code, unless you really need the tests to run.

--Sahil

--
You received this message because you are subscribed to the Google Groups "gobblin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gobblin-user...@googlegroups.com.
To post to this group, send email to gobbli...@googlegroups.com.

Chavdar Botev

unread,
May 27, 2016, 8:55:25 PM5/27/16
to Sahil Takiar, Ramachandran Prasad, gobblin-users, Yukun Guo
I am looking into this issue. It seems that it may be some race
condition in Gradle. The exception is raised if Gradle can't load the
"org.testng.IConfigurationListener2" (for testng 6.x) or
org.testng.internal.IConfigurationListener (for testing 5.x). For me,
running ./gradlew :gobblin-compaction:test seems to work.
> https://groups.google.com/d/msgid/gobblin-users/CAFfFnjST8kcT59mO0YbRF-ohW17AAf38hEuCuSyH8rkBJJq1SQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages