I have run gradle test with --stacktrace and --info/--debug options on. I have attached the info output here. I can see that it fails for s4-base:Test with a NullPointerException, but couldn't figure out the exact cause for it. Is it the lack of any tests in s4-base?
I see that both Leo and Matthieu use Macs. Did anyone get to run on a linux box (I run ubuntu 11.10, and installed gradle from the Ubuntu Software Center)? Thanks Karthik On Sun, Oct 23, 2011 at 11:08 AM, Matthieu Morel <mmo...@apache.org> wrote: > On Sun, Oct 23, 2011 at 5:07 AM, Karthik Kambatla <kkamb...@cs.purdue.edu > >wrote: > > > Hi Leo > > > > I freshly cloned your master, but still getting same problem - > > > > kkambatl@keka:/tmp/s4-piper$ gradle test > > :s4-base:compileJava > > :s4-base:processResources UP-TO-DATE > > :s4-base:classes > > :s4-base:compileTestJava UP-TO-DATE > > :s4-base:processTestResources UP-TO-DATE > > :s4-base:testClasses UP-TO-DATE > > :s4-base:test > > > > FAILURE: Build failed with an exception. > > > > * What went wrong: > > Execution failed for task ':s4-base:test'. > > Cause: Could not generate test report to > > '/tmp/s4-piper/subprojects/s4-base/build/reports/tests'. > > Cause: java.lang.NullPointerException (no error message) > > > > * Try: > > Run with --stacktrace option to get the stack trace. Run with --info or > > --debug option to get more log output. > > > > Hi Karthik, > > Have you followed the above suggestion? Without more info, it's hard to > make any diagnostic. You should try with both options together, and if you > cannot find a solution, post the output here. > > Matthieu >
Starting Build Settings evaluated using settings file '/home/kkambatl/code/s4-piper/settings.gradle'. Projects loaded. Root project using build file '/home/kkambatl/code/s4-piper/build.gradle'. Included projects: [root project 's4', project ':s4-base', project ':s4-comm', project ':s4-core', project ':s4-example'] Evaluating root project 's4' using build file '/home/kkambatl/code/s4-piper/build.gradle'. :: loading settings :: url = jar:file:/usr/share/gradle/lib/ivy.jar!/org/apache/ivy/core/settings/ivysettings.xml :: resolving dependencies :: io.s4#s4-base;0.5.0-SNAPSHOT confs: [runtime] found com.google.guava#guava;10.0.1 in MavenRepo found com.google.code.findbugs#jsr305;1.3.9 in MavenRepo found com.google.inject#guice;3.0 in MavenRepo found javax.inject#javax.inject;1 in MavenRepo found aopalliance#aopalliance;1.0 in MavenRepo found org.sonatype.sisu.inject#cglib;2.2.1-v20090111 in MavenRepo found asm#asm;3.1 in MavenRepo found org.slf4j#slf4j-api;1.6.1 in MavenRepo found ch.qos.logback#logback-core;0.9.29 in MavenRepo found ch.qos.logback#logback-classic;0.9.29 in MavenRepo found commons-io#commons-io;2.0.1 in MavenRepo found commons-configuration#commons-configuration;1.6 in MavenRepo found commons-collections#commons-collections;3.2.1 in MavenRepo found commons-lang#commons-lang;2.4 in MavenRepo found commons-logging#commons-logging;1.1.1 in MavenRepo found commons-digester#commons-digester;1.8 in MavenRepo found commons-beanutils#commons-beanutils;1.7.0 in MavenRepo found commons-beanutils#commons-beanutils-core;1.8.0 in MavenRepo found net.sourceforge.collections#collections-generic;4.01 in MavenRepo found net.jcip#jcip-annotations;1.0 in MavenRepo found org.apache.zookeeper#zookeeper;3.3.1 in MavenRepo found log4j#log4j;1.2.15 in MavenRepo found javax.mail#mail;1.4 in MavenRepo found javax.activation#activation;1.1 in MavenRepo found javax.jms#jms;1.1 in MavenRepo found com.sun.jdmk#jmxtools;1.2.1 in MavenRepo found com.sun.jmx#jmxri;1.2.1 in MavenRepo found jline#jline;0.9.94 in MavenRepo found junit#junit;3.8.1 in MavenRepo :: resolution report :: resolve 1011ms :: artifacts dl 0ms :: evicted modules: commons-logging#commons-logging;1.0.3 by [commons-logging#commons-logging;1.1.1] in [runtime] commons-logging#commons-logging;1.1 by [commons-logging#commons-logging;1.1.1] in [runtime] --------------------------------------------------------------------- | | modules || artifacts | | conf | number| search|dwnlded|evicted|| number|dwnlded| --------------------------------------------------------------------- | runtime | 31 | 0 | 0 | 2 || 0 | 0 | --------------------------------------------------------------------- :: resolving dependencies :: io.s4#s4-core;0.5.0-SNAPSHOT confs: [runtime] found com.google.guava#guava;10.0.1 in MavenRepo found com.google.code.findbugs#jsr305;1.3.9 in MavenRepo found com.google.inject#guice;3.0 in MavenRepo found javax.inject#javax.inject;1 in MavenRepo found aopalliance#aopalliance;1.0 in MavenRepo found org.sonatype.sisu.inject#cglib;2.2.1-v20090111 in MavenRepo found asm#asm;3.1 in MavenRepo found org.slf4j#slf4j-api;1.6.1 in MavenRepo found ch.qos.logback#logback-core;0.9.29 in MavenRepo found ch.qos.logback#logback-classic;0.9.29 in MavenRepo found commons-io#commons-io;2.0.1 in MavenRepo found commons-configuration#commons-configuration;1.6 in MavenRepo found commons-collections#commons-collections;3.2.1 in MavenRepo found commons-lang#commons-lang;2.4 in MavenRepo found commons-logging#commons-logging;1.1.1 in MavenRepo found commons-digester#commons-digester;1.8 in MavenRepo found commons-beanutils#commons-beanutils;1.7.0 in MavenRepo found commons-beanutils#commons-beanutils-core;1.8.0 in MavenRepo found net.sourceforge.collections#collections-generic;4.01 in MavenRepo found net.jcip#jcip-annotations;1.0 in MavenRepo found org.apache.zookeeper#zookeeper;3.3.1 in MavenRepo found log4j#log4j;1.2.15 in MavenRepo found javax.mail#mail;1.4 in MavenRepo found javax.activation#activation;1.1 in MavenRepo found javax.jms#jms;1.1 in MavenRepo found com.sun.jdmk#jmxtools;1.2.1 in MavenRepo found com.sun.jmx#jmxri;1.2.1 in MavenRepo found jline#jline;0.9.94 in MavenRepo found junit#junit;3.8.1 in MavenRepo :: resolution report :: resolve 174ms :: artifacts dl 0ms :: evicted modules: commons-logging#commons-logging;1.0.3 by [commons-logging#commons-logging;1.1.1] in [runtime] commons-logging#commons-logging;1.1 by [commons-logging#commons-logging;1.1.1] in [runtime] --------------------------------------------------------------------- | | modules || artifacts | | conf | number| search|dwnlded|evicted|| number|dwnlded| --------------------------------------------------------------------- | runtime | 31 | 0 | 0 | 2 || 0 | 0 | --------------------------------------------------------------------- :: resolving dependencies :: io.s4#s4-comm;0.5.0-SNAPSHOT confs: [runtime] found com.google.guava#guava;10.0.1 in MavenRepo found com.google.code.findbugs#jsr305;1.3.9 in MavenRepo found com.google.inject#guice;3.0 in MavenRepo found javax.inject#javax.inject;1 in MavenRepo found aopalliance#aopalliance;1.0 in MavenRepo found org.sonatype.sisu.inject#cglib;2.2.1-v20090111 in MavenRepo found asm#asm;3.1 in MavenRepo found org.slf4j#slf4j-api;1.6.1 in MavenRepo found ch.qos.logback#logback-core;0.9.29 in MavenRepo found ch.qos.logback#logback-classic;0.9.29 in MavenRepo found commons-io#commons-io;2.0.1 in MavenRepo found commons-configuration#commons-configuration;1.6 in MavenRepo found commons-collections#commons-collections;3.2.1 in MavenRepo found commons-lang#commons-lang;2.4 in MavenRepo found commons-logging#commons-logging;1.1.1 in MavenRepo found commons-digester#commons-digester;1.8 in MavenRepo found commons-beanutils#commons-beanutils;1.7.0 in MavenRepo found commons-beanutils#commons-beanutils-core;1.8.0 in MavenRepo found net.sourceforge.collections#collections-generic;4.01 in MavenRepo found net.jcip#jcip-annotations;1.0 in MavenRepo found org.apache.zookeeper#zookeeper;3.3.1 in MavenRepo found log4j#log4j;1.2.15 in MavenRepo found javax.mail#mail;1.4 in MavenRepo found javax.activation#activation;1.1 in MavenRepo found javax.jms#jms;1.1 in MavenRepo found com.sun.jdmk#jmxtools;1.2.1 in MavenRepo found com.sun.jmx#jmxri;1.2.1 in MavenRepo found jline#jline;0.9.94 in MavenRepo found junit#junit;3.8.1 in MavenRepo :: resolution report :: resolve 131ms :: artifacts dl 0ms :: evicted modules: commons-logging#commons-logging;1.0.3 by [commons-logging#commons-logging;1.1.1] in [runtime] commons-logging#commons-logging;1.1 by [commons-logging#commons-logging;1.1.1] in [runtime] --------------------------------------------------------------------- | | modules || artifacts | | conf | number| search|dwnlded|evicted|| number|dwnlded| --------------------------------------------------------------------- | runtime | 31 | 0 | 0 | 2 || 0 | 0 | --------------------------------------------------------------------- Evaluating project ':s4-base' using build file '/home/kkambatl/code/s4-piper/subprojects/s4-base/s4-base.gradle'. Evaluating project ':s4-comm' using build file '/home/kkambatl/code/s4-piper/subprojects/s4-comm/s4-comm.gradle'. Evaluating project ':s4-core' using build file '/home/kkambatl/code/s4-piper/subprojects/s4-core/s4-core.gradle'. Evaluating project ':s4-example' using build file '/home/kkambatl/code/s4-piper/subprojects/s4-example/s4-example.gradle'. All projects evaluated. Starting build for primary task 'test'. Tasks to be executed: [task ':s4-base:compileJava', task ':s4-base:processResources', task ':s4-base:classes', task ':s4-base:compileTestJava', task ':s4-base:processTestResources', task ':s4-base:testClasses', task ':s4-base:test', task ':s4-base:jar', task ':s4-comm:compileJava', task ':s4-comm:processResources', task ':s4-comm:classes', task ':s4-comm:compileTestJava', task ':s4-comm:processTestResources', task ':s4-comm:testClasses', task ':s4-comm:test', task ':s4-comm:jar', task ':s4-core:compileJava', task ':s4-core:processResources', task ':s4-core:classes', task ':s4-core:compileTestJava', task ':s4-core:processTestResources', task ':s4-core:testClasses', task ':s4-core:test', task ':s4-core:jar', task ':s4-example:compileJava', task ':s4-example:processResources', task ':s4-example:classes', task ':s4-example:compileTestJava', task ':s4-example:processTestResources', task ':s4-example:testClasses', task ':s4-example:test'] :s4-base:compileJava :: resolving dependencies :: io.s4#s4-base;0.5.0-SNAPSHOT confs: [compile] found com.google.guava#guava;10.0.1 in MavenRepo found com.google.code.findbugs#jsr305;1.3.9 in MavenRepo found com.google.inject#guice;3.0 in MavenRepo found javax.inject#javax.inject;1 in MavenRepo found aopalliance#aopalliance;1.0 in MavenRepo found org.sonatype.sisu.inject#cglib;2.2.1-v20090111 in MavenRepo found asm#asm;3.1 in MavenRepo found org.slf4j#slf4j-api;1.6.1 in MavenRepo found ch.qos.logback#logback-core;0.9.29 in MavenRepo found ch.qos.logback#logback-classic;0.9.29 in MavenRepo found commons-io#commons-io;2.0.1 in MavenRepo found commons-configuration#commons-configuration;1.6 in MavenRepo found commons-collections#commons-collections;3.2.1 in MavenRepo found commons-lang#commons-lang;2.4 in MavenRepo found commons-logging#commons-logging;1.1.1 in MavenRepo found commons-digester#commons-digester;1.8 in MavenRepo found commons-beanutils#commons-beanutils;1.7.0 in MavenRepo found commons-beanutils#commons-beanutils-core;1.8.0 in MavenRepo found net.sourceforge.collections#collections-generic;4.01 in MavenRepo found net.jcip#jcip-annotations;1.0 in MavenRepo found org.apache.zookeeper#zookeeper;3.3.1 in MavenRepo found log4j#log4j;1.2.15 in MavenRepo found javax.mail#mail;1.4 in MavenRepo found javax.activation#activation;1.1 in MavenRepo found javax.jms#jms;1.1 in MavenRepo found com.sun.jdmk#jmxtools;1.2.1 in MavenRepo found com.sun.jmx#jmxri;1.2.1 in MavenRepo found jline#jline;0.9.94 in MavenRepo found junit#junit;3.8.1 in MavenRepo :: resolution report :: resolve 180ms :: artifacts dl 0ms :: evicted modules: commons-logging#commons-logging;1.0.3 by [commons-logging#commons-logging;1.1.1] in [compile] commons-logging#commons-logging;1.1 by [commons-logging#commons-logging;1.1.1] in [compile] --------------------------------------------------------------------- | | modules || artifacts | | conf | number| search|dwnlded|evicted|| number|dwnlded| --------------------------------------------------------------------- | compile | 31 | 0 | 0 | 2 || 0 | 0 | --------------------------------------------------------------------- Skipping task ':s4-base:compileJava' as it is up-to-date. Skipping task ':s4-base:compileJava' as it is up-to-date :s4-base:compileJava UP-TO-DATE :s4-base:processResources Skipping task ':s4-base:processResources' as it has no source files. :s4-base:processResources UP-TO-DATE :s4-base:classes Skipping task ':s4-base:classes' as it has no actions. :s4-base:classes UP-TO-DATE :s4-base:compileTestJava Skipping task ':s4-base:compileTestJava' as it has no source files. :s4-base:compileTestJava UP-TO-DATE :s4-base:processTestResources Skipping task ':s4-base:processTestResources' as it has no source files. :s4-base:processTestResources UP-TO-DATE :s4-base:testClasses Skipping task ':s4-base:testClasses' as it has no actions. :s4-base:testClasses UP-TO-DATE :s4-base:test file or directory '/home/kkambatl/code/s4-piper/subprojects/s4-base/build/classes/test', not found :: resolving dependencies :: io.s4#s4-base;0.5.0-SNAPSHOT confs: [testRuntime] found com.google.guava#guava;10.0.1 in MavenRepo found com.google.code.findbugs#jsr305;1.3.9 in MavenRepo found com.google.inject#guice;3.0 in MavenRepo found javax.inject#javax.inject;1 in MavenRepo found aopalliance#aopalliance;1.0 in MavenRepo found org.sonatype.sisu.inject#cglib;2.2.1-v20090111 in MavenRepo found asm#asm;3.1 in MavenRepo found org.slf4j#slf4j-api;1.6.1 in MavenRepo found ch.qos.logback#logback-core;0.9.29 in MavenRepo found ch.qos.logback#logback-classic;0.9.29 in MavenRepo found commons-io#commons-io;2.0.1 in MavenRepo found commons-configuration#commons-configuration;1.6 in MavenRepo found commons-collections#commons-collections;3.2.1 in MavenRepo found commons-lang#commons-lang;2.4 in MavenRepo found commons-logging#commons-logging;1.1.1 in MavenRepo found commons-digester#commons-digester;1.8 in MavenRepo found commons-beanutils#commons-beanutils;1.7.0 in MavenRepo found commons-beanutils#commons-beanutils-core;1.8.0 in MavenRepo found net.sourceforge.collections#collections-generic;4.01 in MavenRepo found net.jcip#jcip-annotations;1.0 in MavenRepo found org.apache.zookeeper#zookeeper;3.3.1 in MavenRepo found log4j#log4j;1.2.15 in MavenRepo found javax.mail#mail;1.4 in MavenRepo found javax.activation#activation;1.1 in MavenRepo found javax.jms#jms;1.1 in MavenRepo found com.sun.jdmk#jmxtools;1.2.1 in MavenRepo found com.sun.jmx#jmxri;1.2.1 in MavenRepo found jline#jline;0.9.94 in MavenRepo found junit#junit;4.10 in MavenRepo found org.hamcrest#hamcrest-core;1.1 in MavenRepo :: resolution report :: resolve 156ms :: artifacts dl 0ms :: evicted modules: commons-logging#commons-logging;1.0.3 by [commons-logging#commons-logging;1.1.1] in [testRuntime] commons-logging#commons-logging;1.1 by [commons-logging#commons-logging;1.1.1] in [testRuntime] junit#junit;3.8.1 by [junit#junit;4.10] in [testRuntime] --------------------------------------------------------------------- | | modules || artifacts | | conf | number| search|dwnlded|evicted|| number|dwnlded| --------------------------------------------------------------------- | testRuntime | 33 | 0 | 0 | 3 || 0 | 0 | --------------------------------------------------------------------- Executing task ':s4-base:test' due to: No history is available for task ':s4-base:test'. file or directory '/home/kkambatl/code/s4-piper/subprojects/s4-base/build/classes/test', not found FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':s4-base:test'. Cause: Could not generate test report to '/home/kkambatl/code/s4-piper/subprojects/s4-base/build/reports/tests'. Cause: java.lang.NullPointerException (no error message) * Try: Run with --debug option to get more log output. * Exception is: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':s4-base:test'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:71) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:48) at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:34) at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:55) at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:57) at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:41) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:51) at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:52) at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:42) at org.gradle.api.internal.AbstractTask.execute(AbstractTask.java:237) at org.gradle.execution.DefaultTaskGraphExecuter.executeTask(DefaultTaskGraphExecuter.java:167) at org.gradle.execution.DefaultTaskGraphExecuter.doExecute(DefaultTaskGraphExecuter.java:160) at org.gradle.execution.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:78) at org.gradle.execution.TaskNameResolvingBuildExecuter.execute(TaskNameResolvingBuildExecuter.java:113) at org.gradle.execution.DelegatingBuildExecuter.execute(DelegatingBuildExecuter.java:54) at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:158) at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:112) at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:80) at org.gradle.launcher.RunBuildAction.execute(RunBuildAction.java:41) at org.gradle.launcher.RunBuildAction.execute(RunBuildAction.java:27) at org.gradle.launcher.ExceptionReportingAction.execute(ExceptionReportingAction.java:32) at org.gradle.launcher.ExceptionReportingAction.execute(ExceptionReportingAction.java:21) at org.gradle.launcher.CommandLineActionFactory$WithLoggingAction.execute(CommandLineActionFactory.java:219) at org.gradle.launcher.CommandLineActionFactory$WithLoggingAction.execute(CommandLineActionFactory.java:203) at org.gradle.launcher.Main.execute(Main.java:55) at org.gradle.launcher.Main.main(Main.java:40) at org.gradle.launcher.ProcessBootstrap.runNoExit(ProcessBootstrap.java:46) at org.gradle.launcher.ProcessBootstrap.run(ProcessBootstrap.java:28) at org.gradle.launcher.GradleMain.main(GradleMain.java:24) Caused by: org.gradle.api.GradleException: Could not generate test report to '/home/kkambatl/code/s4-piper/subprojects/s4-base/build/reports/tests'. at org.gradle.api.internal.tasks.testing.junit.report.DefaultTestReport.generateFiles(DefaultTestReport.java:125) at org.gradle.api.internal.tasks.testing.junit.report.DefaultTestReport.generateReport(DefaultTestReport.java:51) at org.gradle.api.internal.tasks.testing.junit.JUnitTestFramework.report(JUnitTestFramework.java:71) at org.gradle.api.tasks.testing.Test.executeTests(Test.java:334) at org.gradle.api.internal.BeanDynamicObject.invokeMethod(BeanDynamicObject.java:158) at org.gradle.api.internal.CompositeDynamicObject.invokeMethod(CompositeDynamicObject.java:93) at org.gradle.api.tasks.testing.Test_Decorated.invokeMethod(Unknown Source) at org.gradle.util.ReflectionUtil.invoke(ReflectionUtil.groovy:23) at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$2.execute(AnnotationProcessingTaskFactory.java:129) at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$2.execute(AnnotationProcessingTaskFactory.java:127) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:63) ... 28 more Caused by: java.lang.NullPointerException at org.gradle.api.internal.tasks.testing.junit.report.DefaultTestReport.copyResource(DefaultTestReport.java:168) at org.gradle.api.internal.tasks.testing.junit.report.DefaultTestReport.copyResources(DefaultTestReport.java:157) at org.gradle.api.internal.tasks.testing.junit.report.DefaultTestReport.generateFiles(DefaultTestReport.java:122) ... 38 more BUILD FAILED Total time: 11.256 secs