Can not build tests (missing jmxtools-1.2.1.jar and jmxri-1.2.1.jar ?)


(Lukáš Vlček) #1

I can not build tests from command line.

what I do:

  1. git pull
  2. ./gradlew clean
  3. ./gradlew
  4. ./gradlew -d test

the last action (#4) fails. I seems that jmxtools-1.2.1.jar and
jmxri-1.2.1.jar can not be found in maven repo.

... [just the end of the console output] ...
22:19:49.175 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - Sort
dependencies of : org.hamcrest#hamcrest-all;1.1 / Number of dependencies = 3
22:19:49.175 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - Sort done
for : org.hamcrest#hamcrest-all;1.1
22:19:49.178 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - report
for org.elasticsearch#elasticsearch;0.7.0-SNAPSHOT testRuntime produced in
/home/lukas/.gradle/cache/org.elasticsearch-elasticsearch-testRuntime.xml
22:19:49.179 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - resolve
done (1299ms resolve - 0ms download)
22:19:49.179 [main] DEBUG o.g.a.i.a.i.DefaultIvyDependencyResolver - Timing:
Ivy resolve took 1.441 secs
22:19:49.194 [main] DEBUG o.g.a.i.a.i.DefaultIvyReportConverter - Timing:
Translating report for configuration configuration
':elasticsearch:testRuntime' took 0.015 secs
22:19:49.195 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
clientModule: no namespace defined: using system
22:19:49.196 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] org.slf4j#slf4j-log4j12;1.5.11!slf4j-log4j12.jar
22:19:49.196 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] org.slf4j#slf4j-api;1.5.11!slf4j-api.jar
22:19:49.196 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] log4j#log4j;1.2.15!log4j.jar
22:19:49.196 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] javax.mail#mail;1.4!mail.jar
22:19:49.197 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] javax.activation#activation;1.1!activation.jar
22:19:49.197 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] javax.jms#jms;1.1!jms.jar
22:19:49.198 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - MavenRepo:
no namespace defined: using system
22:19:49.198 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - trying
http://repo1.maven.org/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:49.198 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
tried
http://repo1.maven.org/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:49.557 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - HTTP
response status: 404 url=
http://repo1.maven.org/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:49.557 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - CLIENT
ERROR: Not Found url=
http://repo1.maven.org/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:49.557 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
MavenRepo: resource not reachable for com/sun/jdmk#jmxtools;1.2.1: res=
http://repo1.maven.org/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:49.558 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
http://repository.jboss.com/maven2/: no namespace defined: using system
22:19:49.559 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - trying
http://repository.jboss.com/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:49.559 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
tried
http://repository.jboss.com/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:50.032 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - HTTP
response status: 404 url=
http://repository.jboss.com/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:50.032 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - CLIENT
ERROR: Not Found url=
http://repository.jboss.com/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:50.033 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
http://repository.jboss.com/maven2/: resource not reachable for
com/sun/jdmk#jmxtools;1.2.1: res=
http://repository.jboss.com/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:50.040 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - trying
http://repo1.maven.org/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:50.040 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
tried http://repo1.maven.org/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:50.187 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - HTTP
response status: 404 url=
http://repo1.maven.org/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:50.187 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - CLIENT
ERROR: Not Found url=
http://repo1.maven.org/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:50.187 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
MavenRepo: resource not reachable for com/sun/jmx#jmxri;1.2.1: res=
http://repo1.maven.org/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:50.188 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - trying
http://repository.jboss.com/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:50.188 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
tried
http://repository.jboss.com/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:53.635 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - HTTP
response status: 404 url=
http://repository.jboss.com/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:53.635 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - CLIENT
ERROR: Not Found url=
http://repository.jboss.com/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:53.635 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
http://repository.jboss.com/maven2/: resource not reachable for
com/sun/jmx#jmxri;1.2.1: res=
http://repository.jboss.com/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:53.637 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] org.slf4j#slf4j-api;1.5.11!slf4j-api.jar
22:19:53.638 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] log4j#log4j;1.2.15!log4j.jar
22:19:53.639 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] org.testng#testng;5.10!testng.jar
22:19:53.640 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] org.testng#testng;5.10!testng.jar
22:19:53.641 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] org.testng#testng;5.10!testng.jar
22:19:53.642 [main] DEBUG o.g.a.i.tasks.SkipTaskExecuter - Finished
executing task ':elasticsearch:test'
22:19:53.643 [main] INFO org.gradle.TaskExecutionLogger -
22:19:53.663 [main] ERROR org.gradle.launcher.Main -
FAILURE: Build failed with an exception.

  • What went wrong:
    Could not resolve all dependencies for configuration
    ':elasticsearch:testRuntime'.
    Cause: Resolved files for :test-testng;default contains a null value.

  • Try:
    Run with -S option to get the full (very verbose) stacktrace.

  • Exception is:
    org.gradle.api.artifacts.LocationAwareResolveException: Could not resolve
    all dependencies for configuration ':elasticsearch:testRuntime'.
    at
    org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingIvyService.wrapException(ErrorHandlingIvyService.java:63)
    at
    org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingIvyService.access$000(ErrorHandlingIvyService.java:28)
    at
    org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingIvyService$ErrorHandlingResolvedConfiguration.getFiles(ErrorHandlingIvyService.java:92)
    at
    org.gradle.api.internal.artifacts.configurations.DefaultConfiguration$ConfigurationFileCollection.getFiles(DefaultConfiguration.java:522)
    at
    org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.getFiles(DefaultConfiguration.java:160)
    at
    org.gradle.api.internal.artifacts.configurations.DefaultConfiguration_Decorated.getFiles(Unknown
    Source)
    at
    org.gradle.api.internal.file.CompositeFileCollection.getFiles(CompositeFileCollection.java:36)
    at
    org.gradle.api.internal.file.CompositeFileCollection.getFiles(CompositeFileCollection.java:36)
    at
    org.gradle.api.internal.file.AbstractFileCollection.iterator(AbstractFileCollection.java:61)
    at
    org.gradle.api.internal.changedetection.DefaultFileSnapshotter.snapshot(DefaultFileSnapshotter.java:41)
    at
    org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepository$TaskConfiguration.(DefaultTaskArtifactStateRepository.java:271)
    at
    org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepository$TaskConfiguration.(DefaultTaskArtifactStateRepository.java:260)
    at
    org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepository$HistoricExecution.calcCurrentState(DefaultTaskArtifactStateRepository.java:122)
    at
    org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepository$HistoricExecution.isUpToDate(DefaultTaskArtifactStateRepository.java:127)
    at
    org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepository$TaskArtifactStateImpl.isUpToDate(DefaultTaskArtifactStateRepository.java:287)
    at
    org.gradle.api.internal.changedetection.ShortCircuitTaskArtifactStateRepository$1.isUpToDate(ShortCircuitTaskArtifactStateRepository.java:34)
    at
    org.gradle.api.internal.project.taskfactory.ExecutionShortCircuitTaskExecuter.execute(ExecutionShortCircuitTaskExecuter.java:40)
    at
    org.gradle.api.internal.tasks.SkipTaskExecuter.doExecute(SkipTaskExecuter.java:57)
    at
    org.gradle.api.internal.tasks.SkipTaskExecuter.execute(SkipTaskExecuter.java:35)
    at
    org.gradle.api.internal.tasks.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:32)
    at org.gradle.api.internal.AbstractTask.execute(AbstractTask.java:224)
    at
    org.gradle.execution.DefaultTaskGraphExecuter.executeTask(DefaultTaskGraphExecuter.java:165)
    at
    org.gradle.execution.DefaultTaskGraphExecuter.doExecute(DefaultTaskGraphExecuter.java:158)
    at
    org.gradle.execution.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:77)
    at
    org.gradle.execution.TaskNameResolvingBuildExecuter.execute(TaskNameResolvingBuildExecuter.java:161)
    at
    org.gradle.execution.DelegatingBuildExecuter.execute(DelegatingBuildExecuter.java:54)
    at
    org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:177)
    at
    org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:112)
    at
    org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:80)
    at org.gradle.launcher.Main.execute(Main.java:93)
    at org.gradle.launcher.Main.main(Main.java:42)
    at org.gradle.launcher.GradleMain.main(GradleMain.java:54)
    at
    org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:38)
    at org.gradle.wrapper.Wrapper.execute(Wrapper.java:58)
    at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:39)
    Caused by: org.gradle.api.GradleException: Resolved files for
    :test-testng;default contains a null value.
    at
    org.gradle.api.internal.artifacts.ivyservice.DefaultIvyDependencyResolver$ResolvedConfigurationImpl.getFiles(DefaultIvyDependencyResolver.java:114)
    at
    org.gradle.api.internal.artifacts.ivyservice.SelfResolvingDependencyResolver$1.getFiles(SelfResolvingDependencyResolver.java:59)
    at
    org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingIvyService$ErrorHandlingResolvedConfiguration.getFiles(ErrorHandlingIvyService.java:90)
    ... 32 common frames omitted
    22:19:53.665 [main] ERROR org.gradle.launcher.Main -
    BUILD FAILED


(Shay Banon) #2

Fixed the wrong dependency. There is still a problem with the gradle upgrade
I did and tests fail since the gradle build does not copy over non java
files for the test source set. Will fix it soon.

cheers,
shay.banon

On Wed, Apr 21, 2010 at 12:10 AM, Lukáš Vlček lukas.vlcek@gmail.com wrote:

I can not build tests from command line.

what I do:

  1. git pull
  2. ./gradlew clean
  3. ./gradlew
  4. ./gradlew -d test

the last action (#4) fails. I seems that jmxtools-1.2.1.jar and
jmxri-1.2.1.jar can not be found in maven repo.

... [just the end of the console output] ...
22:19:49.175 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - Sort
dependencies of : org.hamcrest#hamcrest-all;1.1 / Number of dependencies = 3
22:19:49.175 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - Sort done
for : org.hamcrest#hamcrest-all;1.1
22:19:49.178 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - report
for org.elasticsearch#elasticsearch;0.7.0-SNAPSHOT testRuntime produced in
/home/lukas/.gradle/cache/org.elasticsearch-elasticsearch-testRuntime.xml
22:19:49.179 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - resolve
done (1299ms resolve - 0ms download)
22:19:49.179 [main] DEBUG o.g.a.i.a.i.DefaultIvyDependencyResolver -
Timing: Ivy resolve took 1.441 secs
22:19:49.194 [main] DEBUG o.g.a.i.a.i.DefaultIvyReportConverter - Timing:
Translating report for configuration configuration
':elasticsearch:testRuntime' took 0.015 secs
22:19:49.195 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
clientModule: no namespace defined: using system
22:19:49.196 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] org.slf4j#slf4j-log4j12;1.5.11!slf4j-log4j12.jar
22:19:49.196 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] org.slf4j#slf4j-api;1.5.11!slf4j-api.jar
22:19:49.196 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] log4j#log4j;1.2.15!log4j.jar
22:19:49.196 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] javax.mail#mail;1.4!mail.jar
22:19:49.197 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] javax.activation#activation;1.1!activation.jar
22:19:49.197 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] javax.jms#jms;1.1!jms.jar
22:19:49.198 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - MavenRepo:
no namespace defined: using system
22:19:49.198 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - trying

http://repo1.maven.org/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:49.198 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
tried
http://repo1.maven.org/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:49.557 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - HTTP
response status: 404 url=
http://repo1.maven.org/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:49.557 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - CLIENT
ERROR: Not Found url=
http://repo1.maven.org/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:49.557 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
MavenRepo: resource not reachable for com/sun/jdmk#jmxtools;1.2.1: res=
http://repo1.maven.org/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:49.558 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
http://repository.jboss.com/maven2/: no namespace defined: using system
22:19:49.559 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - trying

http://repository.jboss.com/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:49.559 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
tried
http://repository.jboss.com/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:50.032 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - HTTP
response status: 404 url=
http://repository.jboss.com/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:50.032 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - CLIENT
ERROR: Not Found url=
http://repository.jboss.com/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:50.033 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
http://repository.jboss.com/maven2/: resource not reachable for
com/sun/jdmk#jmxtools;1.2.1: res=
http://repository.jboss.com/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:50.040 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - trying
http://repo1.maven.org/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:50.040 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
tried
http://repo1.maven.org/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:50.187 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - HTTP
response status: 404 url=
http://repo1.maven.org/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:50.187 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - CLIENT
ERROR: Not Found url=
http://repo1.maven.org/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:50.187 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
MavenRepo: resource not reachable for com/sun/jmx#jmxri;1.2.1: res=
http://repo1.maven.org/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:50.188 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - trying
http://repository.jboss.com/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:50.188 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
tried
http://repository.jboss.com/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:53.635 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - HTTP
response status: 404 url=
http://repository.jboss.com/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:53.635 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - CLIENT
ERROR: Not Found url=
http://repository.jboss.com/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:53.635 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
http://repository.jboss.com/maven2/: resource not reachable for
com/sun/jmx#jmxri;1.2.1: res=
http://repository.jboss.com/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:53.637 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] org.slf4j#slf4j-api;1.5.11!slf4j-api.jar
22:19:53.638 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] log4j#log4j;1.2.15!log4j.jar
22:19:53.639 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] org.testng#testng;5.10!testng.jar
22:19:53.640 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] org.testng#testng;5.10!testng.jar
22:19:53.641 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] org.testng#testng;5.10!testng.jar
22:19:53.642 [main] DEBUG o.g.a.i.tasks.SkipTaskExecuter - Finished
executing task ':elasticsearch:test'
22:19:53.643 [main] INFO org.gradle.TaskExecutionLogger -
22:19:53.663 [main] ERROR org.gradle.launcher.Main -
FAILURE: Build failed with an exception.

  • What went wrong:
    Could not resolve all dependencies for configuration
    ':elasticsearch:testRuntime'.
    Cause: Resolved files for :test-testng;default contains a null value.

  • Try:
    Run with -S option to get the full (very verbose) stacktrace.

  • Exception is:
    org.gradle.api.artifacts.LocationAwareResolveException: Could not resolve
    all dependencies for configuration ':elasticsearch:testRuntime'.
    at
    org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingIvyService.wrapException(ErrorHandlingIvyService.java:63)
    at
    org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingIvyService.access$000(ErrorHandlingIvyService.java:28)
    at
    org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingIvyService$ErrorHandlingResolvedConfiguration.getFiles(ErrorHandlingIvyService.java:92)
    at
    org.gradle.api.internal.artifacts.configurations.DefaultConfiguration$ConfigurationFileCollection.getFiles(DefaultConfiguration.java:522)
    at
    org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.getFiles(DefaultConfiguration.java:160)
    at
    org.gradle.api.internal.artifacts.configurations.DefaultConfiguration_Decorated.getFiles(Unknown
    Source)
    at
    org.gradle.api.internal.file.CompositeFileCollection.getFiles(CompositeFileCollection.java:36)
    at
    org.gradle.api.internal.file.CompositeFileCollection.getFiles(CompositeFileCollection.java:36)
    at
    org.gradle.api.internal.file.AbstractFileCollection.iterator(AbstractFileCollection.java:61)
    at
    org.gradle.api.internal.changedetection.DefaultFileSnapshotter.snapshot(DefaultFileSnapshotter.java:41)
    at
    org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepository$TaskConfiguration.(DefaultTaskArtifactStateRepository.java:271)
    at
    org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepository$TaskConfiguration.(DefaultTaskArtifactStateRepository.java:260)
    at
    org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepository$HistoricExecution.calcCurrentState(DefaultTaskArtifactStateRepository.java:122)
    at
    org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepository$HistoricExecution.isUpToDate(DefaultTaskArtifactStateRepository.java:127)
    at
    org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepository$TaskArtifactStateImpl.isUpToDate(DefaultTaskArtifactStateRepository.java:287)
    at
    org.gradle.api.internal.changedetection.ShortCircuitTaskArtifactStateRepository$1.isUpToDate(ShortCircuitTaskArtifactStateRepository.java:34)
    at
    org.gradle.api.internal.project.taskfactory.ExecutionShortCircuitTaskExecuter.execute(ExecutionShortCircuitTaskExecuter.java:40)
    at
    org.gradle.api.internal.tasks.SkipTaskExecuter.doExecute(SkipTaskExecuter.java:57)
    at
    org.gradle.api.internal.tasks.SkipTaskExecuter.execute(SkipTaskExecuter.java:35)
    at
    org.gradle.api.internal.tasks.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:32)
    at org.gradle.api.internal.AbstractTask.execute(AbstractTask.java:224)
    at
    org.gradle.execution.DefaultTaskGraphExecuter.executeTask(DefaultTaskGraphExecuter.java:165)
    at
    org.gradle.execution.DefaultTaskGraphExecuter.doExecute(DefaultTaskGraphExecuter.java:158)
    at
    org.gradle.execution.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:77)
    at
    org.gradle.execution.TaskNameResolvingBuildExecuter.execute(TaskNameResolvingBuildExecuter.java:161)
    at
    org.gradle.execution.DelegatingBuildExecuter.execute(DelegatingBuildExecuter.java:54)
    at
    org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:177)
    at
    org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:112)
    at
    org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:80)
    at org.gradle.launcher.Main.execute(Main.java:93)
    at org.gradle.launcher.Main.main(Main.java:42)
    at org.gradle.launcher.GradleMain.main(GradleMain.java:54)
    at
    org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:38)
    at org.gradle.wrapper.Wrapper.execute(Wrapper.java:58)
    at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:39)
    Caused by: org.gradle.api.GradleException: Resolved files for
    :test-testng;default contains a null value.
    at
    org.gradle.api.internal.artifacts.ivyservice.DefaultIvyDependencyResolver$ResolvedConfigurationImpl.getFiles(DefaultIvyDependencyResolver.java:114)
    at
    org.gradle.api.internal.artifacts.ivyservice.SelfResolvingDependencyResolver$1.getFiles(SelfResolvingDependencyResolver.java:59)
    at
    org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingIvyService$ErrorHandlingResolvedConfiguration.getFiles(ErrorHandlingIvyService.java:90)
    ... 32 common frames omitted
    22:19:53.665 [main] ERROR org.gradle.launcher.Main -
    BUILD FAILED


(Lukáš Vlček) #3

You mean the following test fail is expected?

java.lang.AssertionError:
Expected: <0>
got: <1>

at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:21)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:8)

at org.elasticsearch.util.ThreadLocalsTests.testCleanThreadLocals(ThreadLocalsTests.java:46)
at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.endProcessing(TestNGTestClassProcessor.java:91)

at org.gradle.api.internal.tasks.testing.WorkerTestClassProcessor.endProcessing(WorkerTestClassProcessor.java:57)
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:31)
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:22)

at org.gradle.messaging.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:59)

at $Proxy3.endProcessing(Unknown Source)
at org.gradle.api.testing.execution.fork.TestWorker.endProcessing(TestWorker.java:88)
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:31)

at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:22)
at org.gradle.messaging.dispatch.MethodInvocationUnmarshallingDispatch.dispatch(MethodInvocationUnmarshallingDispatch.java:45)

at org.gradle.messaging.dispatch.MethodInvocationUnmarshallingDispatch.dispatch(MethodInvocationUnmarshallingDispatch.java:22)
at org.gradle.messaging.dispatch.DiscardOnFailureDispatch.dispatch(DiscardOnFailureDispatch.java:31)

at org.gradle.messaging.dispatch.AsyncDispatch.dispatchMessages(AsyncDispatch.java:194)
at org.gradle.messaging.dispatch.AsyncDispatch.access$200(AsyncDispatch.java:34)
at org.gradle.messaging.dispatch.AsyncDispatch$2.run(AsyncDispatch.java:84)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)

... Removed 28 stack frames

Lukas

On Wed, Apr 21, 2010 at 12:23 AM, Shay Banon
shay.banon@elasticsearch.comwrote:

Fixed the wrong dependency. There is still a problem with the gradle
upgrade I did and tests fail since the gradle build does not copy over non
java files for the test source set. Will fix it soon.

cheers,
shay.banon

On Wed, Apr 21, 2010 at 12:10 AM, Lukáš Vlček lukas.vlcek@gmail.comwrote:

I can not build tests from command line.

what I do:

  1. git pull
  2. ./gradlew clean
  3. ./gradlew
  4. ./gradlew -d test

the last action (#4) fails. I seems that jmxtools-1.2.1.jar and
jmxri-1.2.1.jar can not be found in maven repo.

... [just the end of the console output] ...
22:19:49.175 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - Sort
dependencies of : org.hamcrest#hamcrest-all;1.1 / Number of dependencies = 3
22:19:49.175 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - Sort done
for : org.hamcrest#hamcrest-all;1.1
22:19:49.178 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - report
for org.elasticsearch#elasticsearch;0.7.0-SNAPSHOT testRuntime produced in
/home/lukas/.gradle/cache/org.elasticsearch-elasticsearch-testRuntime.xml
22:19:49.179 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
resolve done (1299ms resolve - 0ms download)
22:19:49.179 [main] DEBUG o.g.a.i.a.i.DefaultIvyDependencyResolver -
Timing: Ivy resolve took 1.441 secs
22:19:49.194 [main] DEBUG o.g.a.i.a.i.DefaultIvyReportConverter - Timing:
Translating report for configuration configuration
':elasticsearch:testRuntime' took 0.015 secs
22:19:49.195 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
clientModule: no namespace defined: using system
22:19:49.196 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] org.slf4j#slf4j-log4j12;1.5.11!slf4j-log4j12.jar
22:19:49.196 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] org.slf4j#slf4j-api;1.5.11!slf4j-api.jar
22:19:49.196 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] log4j#log4j;1.2.15!log4j.jar
22:19:49.196 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] javax.mail#mail;1.4!mail.jar
22:19:49.197 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] javax.activation#activation;1.1!activation.jar
22:19:49.197 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] javax.jms#jms;1.1!jms.jar
22:19:49.198 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - MavenRepo:
no namespace defined: using system
22:19:49.198 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
trying
http://repo1.maven.org/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:49.198 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
tried
http://repo1.maven.org/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:49.557 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - HTTP
response status: 404 url=
http://repo1.maven.org/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:49.557 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - CLIENT
ERROR: Not Found url=
http://repo1.maven.org/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:49.557 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
MavenRepo: resource not reachable for com/sun/jdmk#jmxtools;1.2.1: res=
http://repo1.maven.org/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:49.558 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
http://repository.jboss.com/maven2/: no namespace defined: using system
22:19:49.559 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
trying
http://repository.jboss.com/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:49.559 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
tried
http://repository.jboss.com/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:50.032 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - HTTP
response status: 404 url=
http://repository.jboss.com/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:50.032 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - CLIENT
ERROR: Not Found url=
http://repository.jboss.com/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:50.033 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
http://repository.jboss.com/maven2/: resource not reachable for
com/sun/jdmk#jmxtools;1.2.1: res=
http://repository.jboss.com/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:50.040 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
trying
http://repo1.maven.org/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:50.040 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
tried
http://repo1.maven.org/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:50.187 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - HTTP
response status: 404 url=
http://repo1.maven.org/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:50.187 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - CLIENT
ERROR: Not Found url=
http://repo1.maven.org/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:50.187 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
MavenRepo: resource not reachable for com/sun/jmx#jmxri;1.2.1: res=
http://repo1.maven.org/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:50.188 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
trying
http://repository.jboss.com/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:50.188 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
tried
http://repository.jboss.com/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:53.635 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - HTTP
response status: 404 url=
http://repository.jboss.com/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:53.635 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - CLIENT
ERROR: Not Found url=
http://repository.jboss.com/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:53.635 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
http://repository.jboss.com/maven2/: resource not reachable for
com/sun/jmx#jmxri;1.2.1: res=
http://repository.jboss.com/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:53.637 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] org.slf4j#slf4j-api;1.5.11!slf4j-api.jar
22:19:53.638 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] log4j#log4j;1.2.15!log4j.jar
22:19:53.639 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] org.testng#testng;5.10!testng.jar
22:19:53.640 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] org.testng#testng;5.10!testng.jar
22:19:53.641 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] org.testng#testng;5.10!testng.jar
22:19:53.642 [main] DEBUG o.g.a.i.tasks.SkipTaskExecuter - Finished
executing task ':elasticsearch:test'
22:19:53.643 [main] INFO org.gradle.TaskExecutionLogger -
22:19:53.663 [main] ERROR org.gradle.launcher.Main -
FAILURE: Build failed with an exception.

  • What went wrong:
    Could not resolve all dependencies for configuration
    ':elasticsearch:testRuntime'.
    Cause: Resolved files for :test-testng;default contains a null value.

  • Try:
    Run with -S option to get the full (very verbose) stacktrace.

  • Exception is:
    org.gradle.api.artifacts.LocationAwareResolveException: Could not resolve
    all dependencies for configuration ':elasticsearch:testRuntime'.
    at
    org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingIvyService.wrapException(ErrorHandlingIvyService.java:63)
    at
    org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingIvyService.access$000(ErrorHandlingIvyService.java:28)
    at
    org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingIvyService$ErrorHandlingResolvedConfiguration.getFiles(ErrorHandlingIvyService.java:92)
    at
    org.gradle.api.internal.artifacts.configurations.DefaultConfiguration$ConfigurationFileCollection.getFiles(DefaultConfiguration.java:522)
    at
    org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.getFiles(DefaultConfiguration.java:160)
    at
    org.gradle.api.internal.artifacts.configurations.DefaultConfiguration_Decorated.getFiles(Unknown
    Source)
    at
    org.gradle.api.internal.file.CompositeFileCollection.getFiles(CompositeFileCollection.java:36)
    at
    org.gradle.api.internal.file.CompositeFileCollection.getFiles(CompositeFileCollection.java:36)
    at
    org.gradle.api.internal.file.AbstractFileCollection.iterator(AbstractFileCollection.java:61)
    at
    org.gradle.api.internal.changedetection.DefaultFileSnapshotter.snapshot(DefaultFileSnapshotter.java:41)
    at
    org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepository$TaskConfiguration.(DefaultTaskArtifactStateRepository.java:271)
    at
    org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepository$TaskConfiguration.(DefaultTaskArtifactStateRepository.java:260)
    at
    org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepository$HistoricExecution.calcCurrentState(DefaultTaskArtifactStateRepository.java:122)
    at
    org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepository$HistoricExecution.isUpToDate(DefaultTaskArtifactStateRepository.java:127)
    at
    org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepository$TaskArtifactStateImpl.isUpToDate(DefaultTaskArtifactStateRepository.java:287)
    at
    org.gradle.api.internal.changedetection.ShortCircuitTaskArtifactStateRepository$1.isUpToDate(ShortCircuitTaskArtifactStateRepository.java:34)
    at
    org.gradle.api.internal.project.taskfactory.ExecutionShortCircuitTaskExecuter.execute(ExecutionShortCircuitTaskExecuter.java:40)
    at
    org.gradle.api.internal.tasks.SkipTaskExecuter.doExecute(SkipTaskExecuter.java:57)
    at
    org.gradle.api.internal.tasks.SkipTaskExecuter.execute(SkipTaskExecuter.java:35)
    at
    org.gradle.api.internal.tasks.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:32)
    at org.gradle.api.internal.AbstractTask.execute(AbstractTask.java:224)
    at
    org.gradle.execution.DefaultTaskGraphExecuter.executeTask(DefaultTaskGraphExecuter.java:165)
    at
    org.gradle.execution.DefaultTaskGraphExecuter.doExecute(DefaultTaskGraphExecuter.java:158)
    at
    org.gradle.execution.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:77)
    at
    org.gradle.execution.TaskNameResolvingBuildExecuter.execute(TaskNameResolvingBuildExecuter.java:161)
    at
    org.gradle.execution.DelegatingBuildExecuter.execute(DelegatingBuildExecuter.java:54)
    at
    org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:177)
    at
    org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:112)
    at
    org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:80)
    at org.gradle.launcher.Main.execute(Main.java:93)
    at org.gradle.launcher.Main.main(Main.java:42)
    at org.gradle.launcher.GradleMain.main(GradleMain.java:54)
    at
    org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:38)
    at org.gradle.wrapper.Wrapper.execute(Wrapper.java:58)
    at
    org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:39)
    Caused by: org.gradle.api.GradleException: Resolved files for
    :test-testng;default contains a null value.
    at
    org.gradle.api.internal.artifacts.ivyservice.DefaultIvyDependencyResolver$ResolvedConfigurationImpl.getFiles(DefaultIvyDependencyResolver.java:114)
    at
    org.gradle.api.internal.artifacts.ivyservice.SelfResolvingDependencyResolver$1.getFiles(SelfResolvingDependencyResolver.java:59)
    at
    org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingIvyService$ErrorHandlingResolvedConfiguration.getFiles(ErrorHandlingIvyService.java:90)
    ... 32 common frames omitted
    22:19:53.665 [main] ERROR org.gradle.launcher.Main -
    BUILD FAILED


(Shay Banon) #4

No, that one is not (I expect it has something to do with gradle class
loaders). Will look into it. Note, all tests pass when I run them from
within the IDEs, the gradle thingy is just properly setting up the env for
the tests.

shay

On Wed, Apr 21, 2010 at 9:49 AM, Lukáš Vlček lukas.vlcek@gmail.com wrote:

You mean the following test fail is expected?

java.lang.AssertionError:
Expected: <0>
got: <1>

at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:21)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:8)

at org.elasticsearch.util.ThreadLocalsTests.testCleanThreadLocals(ThreadLocalsTests.java:46)
at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.endProcessing(TestNGTestClassProcessor.java:91)

at org.gradle.api.internal.tasks.testing.WorkerTestClassProcessor.endProcessing(WorkerTestClassProcessor.java:57)
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:31)
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:22)

at org.gradle.messaging.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:59)

at $Proxy3.endProcessing(Unknown Source)
at org.gradle.api.testing.execution.fork.TestWorker.endProcessing(TestWorker.java:88)
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:31)

at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:22)
at org.gradle.messaging.dispatch.MethodInvocationUnmarshallingDispatch.dispatch(MethodInvocationUnmarshallingDispatch.java:45)

at org.gradle.messaging.dispatch.MethodInvocationUnmarshallingDispatch.dispatch(MethodInvocationUnmarshallingDispatch.java:22)
at org.gradle.messaging.dispatch.DiscardOnFailureDispatch.dispatch(DiscardOnFailureDispatch.java:31)

at org.gradle.messaging.dispatch.AsyncDispatch.dispatchMessages(AsyncDispatch.java:194)
at org.gradle.messaging.dispatch.AsyncDispatch.access$200(AsyncDispatch.java:34)
at org.gradle.messaging.dispatch.AsyncDispatch$2.run(AsyncDispatch.java:84)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)
... Removed 28 stack frames

Lukas

On Wed, Apr 21, 2010 at 12:23 AM, Shay Banon <shay.banon@elasticsearch.com

wrote:

Fixed the wrong dependency. There is still a problem with the gradle
upgrade I did and tests fail since the gradle build does not copy over non
java files for the test source set. Will fix it soon.

cheers,
shay.banon

On Wed, Apr 21, 2010 at 12:10 AM, Lukáš Vlček lukas.vlcek@gmail.comwrote:

I can not build tests from command line.

what I do:

  1. git pull
  2. ./gradlew clean
  3. ./gradlew
  4. ./gradlew -d test

the last action (#4) fails. I seems that jmxtools-1.2.1.jar and
jmxri-1.2.1.jar can not be found in maven repo.

... [just the end of the console output] ...
22:19:49.175 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - Sort
dependencies of : org.hamcrest#hamcrest-all;1.1 / Number of dependencies = 3
22:19:49.175 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - Sort done
for : org.hamcrest#hamcrest-all;1.1
22:19:49.178 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
report for org.elasticsearch#elasticsearch;0.7.0-SNAPSHOT testRuntime
produced in
/home/lukas/.gradle/cache/org.elasticsearch-elasticsearch-testRuntime.xml
22:19:49.179 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
resolve done (1299ms resolve - 0ms download)
22:19:49.179 [main] DEBUG o.g.a.i.a.i.DefaultIvyDependencyResolver -
Timing: Ivy resolve took 1.441 secs
22:19:49.194 [main] DEBUG o.g.a.i.a.i.DefaultIvyReportConverter - Timing:
Translating report for configuration configuration
':elasticsearch:testRuntime' took 0.015 secs
22:19:49.195 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
clientModule: no namespace defined: using system
22:19:49.196 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] org.slf4j#slf4j-log4j12;1.5.11!slf4j-log4j12.jar
22:19:49.196 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] org.slf4j#slf4j-api;1.5.11!slf4j-api.jar
22:19:49.196 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] log4j#log4j;1.2.15!log4j.jar
22:19:49.196 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] javax.mail#mail;1.4!mail.jar
22:19:49.197 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] javax.activation#activation;1.1!activation.jar
22:19:49.197 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] javax.jms#jms;1.1!jms.jar
22:19:49.198 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
MavenRepo: no namespace defined: using system
22:19:49.198 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
trying
http://repo1.maven.org/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:49.198 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
tried
http://repo1.maven.org/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:49.557 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - HTTP
response status: 404 url=
http://repo1.maven.org/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:49.557 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - CLIENT
ERROR: Not Found url=
http://repo1.maven.org/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:49.557 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
MavenRepo: resource not reachable for com/sun/jdmk#jmxtools;1.2.1: res=
http://repo1.maven.org/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:49.558 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
http://repository.jboss.com/maven2/: no namespace defined: using system
22:19:49.559 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
trying
http://repository.jboss.com/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:49.559 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
tried
http://repository.jboss.com/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:50.032 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - HTTP
response status: 404 url=
http://repository.jboss.com/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:50.032 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - CLIENT
ERROR: Not Found url=
http://repository.jboss.com/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:50.033 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
http://repository.jboss.com/maven2/: resource not reachable for
com/sun/jdmk#jmxtools;1.2.1: res=
http://repository.jboss.com/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar
22:19:50.040 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
trying
http://repo1.maven.org/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:50.040 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
tried
http://repo1.maven.org/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:50.187 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - HTTP
response status: 404 url=
http://repo1.maven.org/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:50.187 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - CLIENT
ERROR: Not Found url=
http://repo1.maven.org/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:50.187 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
MavenRepo: resource not reachable for com/sun/jmx#jmxri;1.2.1: res=
http://repo1.maven.org/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:50.188 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
trying
http://repository.jboss.com/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:50.188 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
tried
http://repository.jboss.com/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:53.635 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - HTTP
response status: 404 url=
http://repository.jboss.com/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:53.635 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - CLIENT
ERROR: Not Found url=
http://repository.jboss.com/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:53.635 [main] DEBUG org.gradle.logging.IvyLoggingAdaper -
http://repository.jboss.com/maven2/: resource not reachable for
com/sun/jmx#jmxri;1.2.1: res=
http://repository.jboss.com/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar
22:19:53.637 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] org.slf4j#slf4j-api;1.5.11!slf4j-api.jar
22:19:53.638 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] log4j#log4j;1.2.15!log4j.jar
22:19:53.639 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] org.testng#testng;5.10!testng.jar
22:19:53.640 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] org.testng#testng;5.10!testng.jar
22:19:53.641 [main] DEBUG org.gradle.logging.IvyLoggingAdaper - [NOT
REQUIRED] org.testng#testng;5.10!testng.jar
22:19:53.642 [main] DEBUG o.g.a.i.tasks.SkipTaskExecuter - Finished
executing task ':elasticsearch:test'
22:19:53.643 [main] INFO org.gradle.TaskExecutionLogger -
22:19:53.663 [main] ERROR org.gradle.launcher.Main -
FAILURE: Build failed with an exception.

  • What went wrong:
    Could not resolve all dependencies for configuration
    ':elasticsearch:testRuntime'.
    Cause: Resolved files for :test-testng;default contains a null value.

  • Try:
    Run with -S option to get the full (very verbose) stacktrace.

  • Exception is:
    org.gradle.api.artifacts.LocationAwareResolveException: Could not resolve
    all dependencies for configuration ':elasticsearch:testRuntime'.
    at
    org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingIvyService.wrapException(ErrorHandlingIvyService.java:63)
    at
    org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingIvyService.access$000(ErrorHandlingIvyService.java:28)
    at
    org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingIvyService$ErrorHandlingResolvedConfiguration.getFiles(ErrorHandlingIvyService.java:92)
    at
    org.gradle.api.internal.artifacts.configurations.DefaultConfiguration$ConfigurationFileCollection.getFiles(DefaultConfiguration.java:522)
    at
    org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.getFiles(DefaultConfiguration.java:160)
    at
    org.gradle.api.internal.artifacts.configurations.DefaultConfiguration_Decorated.getFiles(Unknown
    Source)
    at
    org.gradle.api.internal.file.CompositeFileCollection.getFiles(CompositeFileCollection.java:36)
    at
    org.gradle.api.internal.file.CompositeFileCollection.getFiles(CompositeFileCollection.java:36)
    at
    org.gradle.api.internal.file.AbstractFileCollection.iterator(AbstractFileCollection.java:61)
    at
    org.gradle.api.internal.changedetection.DefaultFileSnapshotter.snapshot(DefaultFileSnapshotter.java:41)
    at
    org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepository$TaskConfiguration.(DefaultTaskArtifactStateRepository.java:271)
    at
    org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepository$TaskConfiguration.(DefaultTaskArtifactStateRepository.java:260)
    at
    org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepository$HistoricExecution.calcCurrentState(DefaultTaskArtifactStateRepository.java:122)
    at
    org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepository$HistoricExecution.isUpToDate(DefaultTaskArtifactStateRepository.java:127)
    at
    org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepository$TaskArtifactStateImpl.isUpToDate(DefaultTaskArtifactStateRepository.java:287)
    at
    org.gradle.api.internal.changedetection.ShortCircuitTaskArtifactStateRepository$1.isUpToDate(ShortCircuitTaskArtifactStateRepository.java:34)
    at
    org.gradle.api.internal.project.taskfactory.ExecutionShortCircuitTaskExecuter.execute(ExecutionShortCircuitTaskExecuter.java:40)
    at
    org.gradle.api.internal.tasks.SkipTaskExecuter.doExecute(SkipTaskExecuter.java:57)
    at
    org.gradle.api.internal.tasks.SkipTaskExecuter.execute(SkipTaskExecuter.java:35)
    at
    org.gradle.api.internal.tasks.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:32)
    at
    org.gradle.api.internal.AbstractTask.execute(AbstractTask.java:224)
    at
    org.gradle.execution.DefaultTaskGraphExecuter.executeTask(DefaultTaskGraphExecuter.java:165)
    at
    org.gradle.execution.DefaultTaskGraphExecuter.doExecute(DefaultTaskGraphExecuter.java:158)
    at
    org.gradle.execution.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:77)
    at
    org.gradle.execution.TaskNameResolvingBuildExecuter.execute(TaskNameResolvingBuildExecuter.java:161)
    at
    org.gradle.execution.DelegatingBuildExecuter.execute(DelegatingBuildExecuter.java:54)
    at
    org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:177)
    at
    org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:112)
    at
    org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:80)
    at org.gradle.launcher.Main.execute(Main.java:93)
    at org.gradle.launcher.Main.main(Main.java:42)
    at org.gradle.launcher.GradleMain.main(GradleMain.java:54)
    at
    org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:38)
    at org.gradle.wrapper.Wrapper.execute(Wrapper.java:58)
    at
    org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:39)
    Caused by: org.gradle.api.GradleException: Resolved files for
    :test-testng;default contains a null value.
    at
    org.gradle.api.internal.artifacts.ivyservice.DefaultIvyDependencyResolver$ResolvedConfigurationImpl.getFiles(DefaultIvyDependencyResolver.java:114)
    at
    org.gradle.api.internal.artifacts.ivyservice.SelfResolvingDependencyResolver$1.getFiles(SelfResolvingDependencyResolver.java:59)
    at
    org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingIvyService$ErrorHandlingResolvedConfiguration.getFiles(ErrorHandlingIvyService.java:90)
    ... 32 common frames omitted
    22:19:53.665 [main] ERROR org.gradle.launcher.Main -
    BUILD FAILED


(system) #5