Gradle JaCoCo issue during build failure


(Jadhav) #1

Can someone please assist or point me in the right direction on gradle error seen during the build using JaCoCo plugin? Thanks in advance!
See details below on my setup and steps performed.
I am running Jenkins Job that has uses Gradle plugin(V1.26 from https://wiki.jenkins-ci.org/display/JENKINS/Gradle+Plugin) & JaCoCo plugin(V2.2.0 from https://wiki.jenkins-ci.org/display/JENKINS/JaCoCo+Plugin).
Here is how the Configuration in Jenkins Job is for Gradle & JaCoCo:
Gradle Plugin(uses build.gradle):

  1. Uses Gradle Version 2.9 installed on Jenkins server
  2. Calls gradle tasks “clean testjar -Dtest.single=AllTestsSuite test -DENVIRONMENT=dev2”. Note that -DENVIRONMENT is property used for distinguishing our test environments
    JaCoCo Plugin:
    Configured for recording of JacoCo coverage report

The build.gradle changes for executing jacocoTestReport has been done using instructions at https://docs.gradle.org/2.9/userguide/jacoco_plugin.html and the build.gradle for is as below:

apply plugin: ‘jacoco’

ext.buildWS = System.getenv(‘WORKSPACE’)

test {
println 'INFO: JUnit Test Properties’
jvmArgs “-javaagent:${configurations.testJMockitAgent.asPath}”,"-javaagent:${configurations.testSpringInstrumentAgent.asPath}"
// Override the DB type for this set of tests
systemProperties = System.getProperties();
systemProperties[‘user.dir’] = workingDir
//systemProperty ‘ENVIRONMENT’, 'dev2’
testLogging {
// Show that tests are run in the command-line output
events ‘started’, ‘passed’
}
finalizedBy jacocoTestReport
}

jacoco {
toolVersion = “0.7.1.201405082137”
}

jacocoTestReport {
group = "Reporting"
description = "Generate Jacoco coverage reports after running tests."
reports {
html.enabled true
xml.enabled true
csv.enabled false
html.destination “${buildWS}/jacocoHtml”
}
}

But the following is failing in Jenkins with the below mentioned error after the “test” task is executed. In the build workspace, I can see that test.exec is getting generated in the //build/jacoco/ :

--------------Many Lines Deleted-----------------

14:53:15 :jacocoTestReport FAILED
14:53:15
14:53:15 FAILURE: Build failed with an exception.
14:53:15
14:53:15 * What went wrong:
14:53:15 Execution failed for task ‘:jacocoTestReport’.
14:53:15 > org.jacoco.report.IReportGroupVisitor
14:53:15
14:53:15 * Try:
14:53:15 Run with --info or --debug option to get more log output.
14:53:15
14:53:15 * Exception is:
14:53:15 org.gradle.api.tasks.TaskExecutionException: Execution failed for task ‘:jacocoTestReport’.
14:53:15 at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
14:53:15 at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
14:53:15 at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
14:53:15 at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)
14:53:15 at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
14:53:15 at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52)
14:53:15 at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
14:53:15 at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
14:53:15 at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
14:53:15 at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203)
14:53:15 at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:185)
14:53:15 at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:66)
14:53:15 at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:50)
14:53:15 at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:25)
14:53:15 at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:110)
14:53:15 at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)
14:53:15 at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
14:53:15 at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:23)
14:53:15 at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:43)
14:53:15 at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
14:53:15 at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
14:53:15 at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30)
14:53:15 at org.gradle.initialization.DefaultGradleLauncher$4.run(DefaultGradleLauncher.java:154)
14:53:15 at org.gradle.internal.Factories$1.create(Factories.java:22)
14:53:15 at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
14:53:15 at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:52)
14:53:15 at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:151)
14:53:15 at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:32)
14:53:15 at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:99)
14:53:15 at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:93)
14:53:15 at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
14:53:15 at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:62)
14:53:15 at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:93)
14:53:15 at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:82)
14:53:15 at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:94)
14:53:15 at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
14:53:15 at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
14:53:15 at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:43)
14:53:15 at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28)
14:53:15 at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:77)
14:53:15 at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:47)
14:53:15 at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:51)
14:53:15 at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:28)
14:53:15 at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:43)
14:53:15 at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:170)
14:53:15 at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237)
14:53:15 at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210)
14:53:15 at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)
14:53:15 at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
14:53:15 at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)
14:53:15 at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
14:53:15 at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
14:53:15 at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
14:53:15 at org.gradle.launcher.Main.doAction(Main.java:33)
14:53:15 at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
14:53:15 at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)
14:53:15 at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)
14:53:15 at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
14:53:15 Caused by: java.lang.NoClassDefFoundError: org.jacoco.report.IReportGroupVisitor
14:53:15 at org.apache.tools.ant.ComponentHelper.checkTaskClass(ComponentHelper.java:376)
14:53:15 at org.apache.tools.ant.ComponentHelper.addTaskDefinition(ComponentHelper.java:341)
14:53:15 at org.apache.tools.ant.Project.addTaskDefinition(Project.java:968)
14:53:15 at org.apache.tools.ant.Project$addTaskDefinition.call(Unknown Source)
14:53:15 at org.gradle.api.internal.project.antbuilder.AntBuilderDelegate.taskdef(AntBuilderDelegate.groovy:34)
14:53:15 at org.gradle.api.internal.project.antbuilder.AntBuilderDelegate$taskdef.call(Unknown Source)
14:53:15 at org.gradle.testing.jacoco.tasks.JacocoReport$_generate_closure2.doCall(JacocoReport.groovy:88)
14:53:15 at org.gradle.api.internal.ClosureBackedAction.execute(ClosureBackedAction.java:67)
14:53:15 at org.gradle.util.ConfigureUtil.configure(ConfigureUtil.java:130)
14:53:15 at org.gradle.util.ConfigureUtil.configure(ConfigureUtil.java:91)
14:53:15 at org.gradle.api.internal.project.antbuilder.DefaultIsolatedAntBuilder$2.execute(DefaultIsolatedAntBuilder.java:140)
14:53:15 at org.gradle.api.internal.project.antbuilder.DefaultIsolatedAntBuilder$2.execute(DefaultIsolatedAntBuilder.java:122)
14:53:15 at org.gradle.api.internal.project.antbuilder.ClassPathToClassLoaderCache.withCachedClassLoader(ClassPathToClassLoaderCache.java:134)
14:53:15 at org.gradle.api.internal.project.antbuilder.DefaultIsolatedAntBuilder.execute(DefaultIsolatedAntBuilder.java:116)
14:53:15 at org.gradle.api.internal.project.IsolatedAntBuilder$execute$0.call(Unknown Source)
14:53:15 at org.gradle.testing.jacoco.tasks.JacocoReport.generate(JacocoReport.groovy:87)
14:53:15 at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
14:53:15 at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:227)
14:53:15 at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:220)
14:53:15 at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:209)
14:53:15 at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:585)
14:53:15 at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:568)
14:53:15 at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
14:53:15 at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
14:53:15 … 57 more
14:53:15 Caused by: java.lang.ClassNotFoundException: org.jacoco.report.IReportGroupVisitor
14:53:15 … 81 more

Thanks,
Mak


(James Justinic) #2

I haven’t seen this particular issue before, but ClassNotFoundException should be happening after Gradle has delegated to the Jacoco Ant ReportTask.

Could you log the output of jacocoTestReport.jacocoClasspath.asPath to verify what is being provided as the classpath from Gradle?


(Jadhav) #3

Hi James,

Thanks for your response!
Here is the debug stacktrace that got generated after I added the below lines in jacocoTestReport task in build.gradle
doFirst{
sourceSets.main.runtimeClasspath.each { println it}
}

Excerpt from stacktrace:
--------------------------------------Many Lines Deleted---------------------------------------------------------------

06:42:12 06:42:12.825 [QUIET] [system.out] /var/lib/jenkins/workspace/ccms_build1_java_app_gradle_build_JUNIT_test/ccms/build/classes/main
06:42:12 06:42:12.825 [QUIET] [system.out] /var/lib/jenkins/workspace/ccms_build1_java_app_gradle_build_JUNIT_test/ccms/build/resources/main
06:42:12 06:42:12.826 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.springframework/spring-aop/4.2.6.RELEASE/5efbfccb19efda2956b8977561bf4da6b15b0d0e/spring-aop-4.2.6.RELEASE.jar
06:42:12 06:42:12.826 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.springframework/spring-context/4.2.6.RELEASE/bbf3c8526fe37bb341507f28db17882d4348dbca/spring-context-4.2.6.RELEASE.jar
06:42:12 06:42:12.827 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.springframework/spring-instrument/4.2.6.RELEASE/8dd0926c28a81c841cd83931dfcf253cd2c6fad7/spring-instrument-4.2.6.RELEASE.jar
06:42:12 06:42:12.828 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.springframework/spring-orm/4.2.6.RELEASE/2ef30e836028ebe4dbba0d8355929625a758ed8d/spring-orm-4.2.6.RELEASE.jar
06:42:12 06:42:12.828 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.springframework/spring-oxm/4.2.6.RELEASE/3fdc13b31464934372f1b260c274f21491adbff/spring-oxm-4.2.6.RELEASE.jar
06:42:12 06:42:12.828 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.springframework/spring-tx/4.2.6.RELEASE/ba7502c0644414748b1eeb65b4193b05d335a110/spring-tx-4.2.6.RELEASE.jar
06:42:12 06:42:12.829 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.springframework/spring-web/4.2.6.RELEASE/d5ce949da3f3266f118ed899a153413613b503ad/spring-web-4.2.6.RELEASE.jar
06:42:12 06:42:12.829 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.springframework/spring-webmvc/4.2.6.RELEASE/7c7ea475d33287e0e3a92e98ccbe0ad6a0dbb9ca/spring-webmvc-4.2.6.RELEASE.jar
06:42:12 06:42:12.830 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.springframework.boot/spring-boot/1.3.5.RELEASE/b218ba5f3bd01e657fbde9b085722da1fafa4f8a/spring-boot-1.3.5.RELEASE.jar
06:42:12 06:42:12.830 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.springframework.boot/spring-boot-autoconfigure/1.3.5.RELEASE/2bcfa86bb3afd95eff5252db6d78f2693b706997/spring-boot-autoconfigure-1.3.5.RELEASE.jar
06:42:12 06:42:12.831 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.springframework.batch/spring-batch-core/3.0.7.RELEASE/b736f8c14550cdb1440e28bb6aa690a387a7aa57/spring-batch-core-3.0.7.RELEASE.jar
06:42:12 06:42:12.831 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.springframework.batch/spring-batch-infrastructure/3.0.7.RELEASE/6fa6cc10e95b548c3aa0aaa4e77308b3189388c4/spring-batch-infrastructure-3.0.7.RELEASE.jar
06:42:12 06:42:12.833 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.springframework.data/spring-data-commons/1.12.2.RELEASE/a827ed936b8685c19eecda0abb86fb86193ddffc/spring-data-commons-1.12.2.RELEASE.jar
06:42:12 06:42:12.834 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.springframework.data/spring-data-jpa/1.10.2.RELEASE/5da5131a02365790d38469cd3bae778e4891daff/spring-data-jpa-1.10.2.RELEASE.jar
06:42:12 06:42:12.834 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.springframework.security/spring-security-config/4.1.0.RELEASE/98b549f97d9544c590ba656fb8a2d5ab369b410a/spring-security-config-4.1.0.RELEASE.jar
06:42:12 06:42:12.835 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.springframework.security/spring-security-web/4.1.0.RELEASE/b0996431b0ebaa36794d1f2c81ecceaeb6ddece3/spring-security-web-4.1.0.RELEASE.jar
06:42:12 06:42:12.835 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.springframework.security/spring-security-core/4.1.0.RELEASE/7fe8351d0bec244b59c02a826719fcc5bc16a663/spring-security-core-4.1.0.RELEASE.jar
06:42:12 06:42:12.835 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.springframework.ws/spring-ws-core/2.3.0.RELEASE/7337a9e6cb5869d71a49b04c188a2f97320dee08/spring-ws-core-2.3.0.RELEASE.jar
06:42:12 06:42:12.836 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.springframework.ws/spring-xml/2.3.0.RELEASE/52dae008d93df5aea6042d5b3db1f3b56a185020/spring-xml-2.3.0.RELEASE.jar
06:42:12 06:42:12.836 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.apache.commons/commons-lang3/3.4/5fe28b9518e58819180a43a850fbc0dd24b7c050/commons-lang3-3.4.jar
06:42:12 06:42:12.837 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.apache.poi/poi/3.14/fad7ae6d2e59c59ffdb45f1981500babfa765180/poi-3.14.jar
06:42:12 06:42:12.837 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.apache.poi/poi-ooxml/3.14/911b3a5562b5dc4c5156d2d5f0f68a83346100d0/poi-ooxml-3.14.jar
06:42:12 06:42:12.838 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/commons-beanutils/commons-beanutils/1.9.1/d2662a4e018671ed061e9acca6299a31b7652f3c/commons-beanutils-1.9.1.jar
06:42:12 06:42:12.838 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/commons-fileupload/commons-fileupload/1.3.2/5d7491ed6ebd02b6a8d2305f8e6b7fe5dbd95f72/commons-fileupload-1.3.2.jar
06:42:12 06:42:12.839 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/javax.annotation/javax.annotation-api/1.2/479c1e06db31c432330183f5cae684163f186146/javax.annotation-api-1.2.jar
06:42:12 06:42:12.839 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/javax.batch/javax.batch-api/1.0/65392d027a6eb369fd9fcd1b75cae150e25ac03c/javax.batch-api-1.0.jar
06:42:12 06:42:12.839 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/javax.jms/javax.jms-api/2.0.1/5faaa3864ff6025ce69809b60d65bda3e358610c/javax.jms-api-2.0.1.jar
06:42:12 06:42:12.840 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/javax.servlet/javax.servlet-api/3.1.0/3cd63d075497751784b2fa84be59432f4905bf7c/javax.servlet-api-3.1.0.jar
06:42:12 06:42:12.840 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.thymeleaf/thymeleaf/2.1.5.RELEASE/513bffa3daaac277460c1a0a2dccb228fa40569e/thymeleaf-2.1.5.RELEASE.jar
06:42:12 06:42:12.841 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.thymeleaf/thymeleaf-spring4/2.1.5.RELEASE/74cb9028e99597b5d71a98e919fd531a7fc290b4/thymeleaf-spring4-2.1.5.RELEASE.jar
06:42:12 06:42:12.841 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.glassfish.web/el-impl/2.2.1-b05/e7257f648b1ec91b87db8893f7740e116b05d777/el-impl-2.2.1-b05.jar
06:42:12 06:42:12.842 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/com.thoughtworks.xstream/xstream/1.4.8/520d90f30f36a0d6ba2dc929d980831631ad6a92/xstream-1.4.8.jar
06:42:12 06:42:12.842 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-annotations/2.8.1/4465fda9834ab27eac2a76f9a378738d15a9b4fa/jackson-annotations-2.8.1.jar
06:42:12 06:42:12.843 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-core/2.8.1/fd13b1c033741d48291315c6370f7d475a42dccf/jackson-core-2.8.1.jar
06:42:12 06:42:12.843 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-databind/2.8.1/c04eb2cc599cd1742889bfa7cc41878db0d152f5/jackson-databind-2.8.1.jar
06:42:12 06:42:12.844 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.codehaus.jettison/jettison/1.2/765a6181653f4b05c18c7a9e8f5c1f8269bf9b2/jettison-1.2.jar
06:42:12 06:42:12.846 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/com.h2database/h2/1.4.192/1106492605db135523d2817881cdf029d9292afa/h2-1.4.192.jar
06:42:12 06:42:12.847 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/com.zaxxer/HikariCP/2.4.7/48879ebd6f4e8374b8fc90f39e564358f9455096/HikariCP-2.4.7.jar
06:42:12 06:42:12.847 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.eclipse.persistence/eclipselink/2.6.3/7c8ca22df28ccd67cca0968b6228991b8ec1526c/eclipselink-2.6.3.jar
06:42:12 06:42:12.848 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.aspectj/aspectjweaver/1.8.9/db28774f477f07220eac18d5ec9c4e01f48589d7/aspectjweaver-1.8.9.jar
06:42:12 06:42:12.848 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.aspectj/aspectjrt/1.8.9/87372d9e2323313bec24b09a325bfea8ae0eb867/aspectjrt-1.8.9.jar
06:42:12 06:42:12.849 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.hibernate/hibernate-validator/5.1.3.Final/334d46a93cf095160ce06d8382594b904933c808/hibernate-validator-5.1.3.Final.jar
06:42:12 06:42:12.849 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/com.sun.xml.bind/jaxb-core/2.2.11/c3f87d654f8d5943cd08592f3f758856544d279a/jaxb-core-2.2.11.jar
06:42:12 06:42:12.849 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/com.sun.xml.bind/jaxb-impl/2.2.11/a49ce57aee680f9435f49ba6ef427d38c93247a6/jaxb-impl-2.2.11.jar
06:42:12 06:42:12.850 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/com.sun.xml.bind/jaxb-xjc/2.2.11/f099cedb9b245323f906ab9f75adc48cef305cfd/jaxb-xjc-2.2.11.jar
06:42:12 06:42:12.850 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/javax.xml.bind/jaxb-api/2.2.11/32274d4244967ff43e7a5d967743d94ed3d2aea7/jaxb-api-2.2.11.jar
06:42:12 06:42:12.851 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.antlr/antlr-runtime/3.5.2/cd9cd41361c155f3af0f653009dcecb08d8b4afd/antlr-runtime-3.5.2.jar
06:42:12 06:42:12.851 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/com.ibm.mq/com.ibm.mq/8.0.0.4/2444dac18414759d376bc0f68e03e5fe6746926b/com.ibm.mq-8.0.0.4.jar
06:42:12 06:42:12.852 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/com.ibm.mq/com.ibm.mq.jmqi/8.0.0.4/5489dd8d1a6b19cd62a7932fee8fe54f1637f0c3/com.ibm.mq.jmqi-8.0.0.4.jar
06:42:12 06:42:12.852 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/com.ibm.mq/com.ibm.mqjms/8.0.0.4/8ada3b900c9e43e0861f8c10c8b84a3a2b9252a6/com.ibm.mqjms-8.0.0.4.jar
06:42:12 06:42:12.852 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/ch.qos.logback/logback-classic/1.1.5/92353eb144695bba80b31f7bec4f36d871f230ac/logback-classic-1.1.5.jar
06:42:12 06:42:12.853 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.dbunit/dbunit/2.4.9/29e9cfe5570a39791450af0e7c2f845f621605e1/dbunit-2.4.9.jar
06:42:12 06:42:12.853 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.jacoco/org.jacoco.ant/0.7.1.201405082137/fa7d7352cf2847db16efb1d2fc4eefa36e897690/org.jacoco.ant-0.7.1.201405082137.jar
06:42:12 06:42:12.853 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.jacoco/org.jacoco.report/0.7.1.201405082137/ce9a5584b7d79828535891b2d7733c639f97e8dd/org.jacoco.report-0.7.1.201405082137.jar
06:42:12 06:42:12.854 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.tmatesoft.svnkit/svnkit/1.8.12/a14959875cc8d719de98a18b95d250bb0a9ecd4b/svnkit-1.8.12.jar
06:42:12 06:42:12.855 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/db2jcc/db2jcc4/1.0.0/108c114495443e51002b9076d716879019690b2d/db2jcc4-1.0.0.jar
06:42:12 06:42:12.855 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/aopalliance/aopalliance/1.0/235ba8b489512805ac13a8f9ea77a1ca5ebe3e8/aopalliance-1.0.jar
06:42:12 06:42:12.856 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.springframework/spring-beans/4.2.6.RELEASE/d4a319fb4d949fb6313f45c929947b9b4e26283e/spring-beans-4.2.6.RELEASE.jar
06:42:12 06:42:12.856 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.springframework/spring-core/4.2.6.RELEASE/a1c6ef01f18888f51fc5054c65ef4787b7cf0a1e/spring-core-4.2.6.RELEASE.jar
06:42:12 06:42:12.857 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.springframework/spring-expression/4.2.6.RELEASE/c0182d73f348ab11d51d45cbe29f3820c32d0ccc/spring-expression-4.2.6.RELEASE.jar
06:42:12 06:42:12.857 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.springframework/spring-jdbc/4.2.6.RELEASE/16075bfb0901a5b89c5be975365ff09b2df04abb/spring-jdbc-4.2.6.RELEASE.jar
06:42:12 06:42:12.858 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/com.ibm.jbatch/com.ibm.jbatch-tck-spi/1.0/8ac869b0a60bff1a15eba0fb6398942410396938/com.ibm.jbatch-tck-spi-1.0.jar
06:42:12 06:42:12.859 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.springframework.retry/spring-retry/1.1.0.RELEASE/f7e1ec1fd7c8fcaca490fd298c5b3fe711cb5ed9/spring-retry-1.1.0.RELEASE.jar
06:42:12 06:42:12.859 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.slf4j/slf4j-api/1.7.21/139535a69a4239db087de9bab0bee568bf8e0b70/slf4j-api-1.7.21.jar
06:42:12 06:42:12.860 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.slf4j/jcl-over-slf4j/1.7.21/331b564a3a42f002a0004b039c1c430da89062cd/jcl-over-slf4j-1.7.21.jar
06:42:12 06:42:12.860 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/commons-codec/commons-codec/1.10/4b95f4897fa13f2cd904aee711aeafc0c5295cd8/commons-codec-1.10.jar
06:42:12 06:42:12.861 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.apache.poi/poi-ooxml-schemas/3.14/97fe4bfdef7f103bfd9ec63c98ea90469afeec7b/poi-ooxml-schemas-3.14.jar
06:42:12 06:42:12.862 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/com.github.virtuald/curvesapi/1.03/6b0977602901464b056959027fdf2396050f9dd2/curvesapi-1.03.jar
06:42:12 06:42:12.862 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/commons-collections/commons-collections/3.2.1/761ea405b9b37ced573d2df0d1e3a4e0f9edc668/commons-collections-3.2.1.jar
06:42:12 06:42:12.863 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/commons-io/commons-io/2.2/83b5b8a7ba1c08f9e8c8ff2373724e33d3c1e22a/commons-io-2.2.jar
06:42:12 06:42:12.863 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/ognl/ognl/3.0.8/37e1aebfde7eb7baebc9ad4f85116ef9009c5fc5/ognl-3.0.8.jar
06:42:12 06:42:12.863 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.javassist/javassist/3.16.1-GA/315891b371395271977af518d4db5cee1a0bc9bf/javassist-3.16.1-GA.jar
06:42:12 06:42:12.864 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.unbescape/unbescape/1.1.0.RELEASE/ab0db4fe0a6fa89fb8da2a40008a4e63a7f3f5b9/unbescape-1.1.0.RELEASE.jar
06:42:12 06:42:12.865 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/javax.el/el-api/2.2.1-b04/907e6b1a1c2c18661eea4aa5c11db175455d36e9/el-api-2.2.1-b04.jar
06:42:12 06:42:12.865 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/stax/stax-api/1.0.1/49c100caf72d658aca8e58bd74a4ba90fa2b0d70/stax-api-1.0.1.jar
06:42:12 06:42:12.866 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.eclipse.persistence/javax.persistence/2.1.1/4954fdf995d5083a1bdbf171ea3b240b88c85bac/javax.persistence-2.1.1.jar
06:42:12 06:42:12.866 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.eclipse.persistence/commonj.sdo/2.1.1/90d4c89ce0a69f58619f1a247bbf420122139ff5/commonj.sdo-2.1.1.jar
06:42:12 06:42:12.866 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/javax.validation/validation-api/1.1.0.Final/8613ae82954779d518631e05daa73a6a954817d5/validation-api-1.1.0.Final.jar
06:42:12 06:42:12.866 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.glassfish/javax.json/1.0.4/3178f73569fd7a1e5ffc464e680f7a8cc784b85a/javax.json-1.0.4.jar
06:42:12 06:42:12.867 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.jboss.logging/jboss-logging/3.1.3.GA/64499e907f19e5e1b3fdc02f81440c1832fe3545/jboss-logging-3.1.3.GA.jar
06:42:12 06:42:12.867 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/com.fasterxml/classmate/1.0.0/434efef28c81162b17c540e634cffa3bd9b09b4c/classmate-1.0.0.jar
06:42:12 06:42:12.867 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/ch.qos.logback/logback-core/1.1.5/16722afde74444716e299bee1f60aec9f6d1f0dc/logback-core-1.1.5.jar
06:42:12 06:42:12.868 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/junit/junit/3.8.2/7e4cde26b53a9a0e3fe5b00d1dbbc7cc1d46060/junit-3.8.2.jar
06:42:12 06:42:12.868 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/com.jcraft/jsch.agentproxy.svnkit-trilead-ssh2/0.0.7/95015f649026507428aa2f37baba69ba8a86dc67/jsch.agentproxy.svnkit-trilead-ssh2-0.0.7.jar
06:42:12 06:42:12.869 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/com.trilead/trilead-ssh2/1.0.0-build220/74d96b4d15dc841140487e01734201e604dfce71/trilead-ssh2-1.0.0-build220.jar
06:42:12 06:42:12.869 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/net.java.dev.jna/jna-platform/4.1.0/23457ad1cf75c2c16763330de5565a0e67b4bc0a/jna-platform-4.1.0.jar
06:42:12 06:42:12.869 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/net.java.dev.jna/jna/4.1.0/1c12d070e602efd8021891cdd7fd18bc129372d4/jna-4.1.0.jar
06:42:12 06:42:12.869 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/com.jcraft/jsch.agentproxy.connector-factory/0.0.7/780e0312287dd4e4f3601d401a073a081e403f2d/jsch.agentproxy.connector-factory-0.0.7.jar
06:42:12 06:42:12.870 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/de.regnis.q.sequence/sequence-library/1.0.3/3bcf12fa805a735bb26369cd66c5933767c026de/sequence-library-1.0.3.jar
06:42:12 06:42:12.870 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.tmatesoft.sqljet/sqljet/1.1.10/ede7fbabd4c96d34e48fda0e8feced24c98cedca/sqljet-1.1.10.jar
06:42:12 06:42:12.870 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/org.apache.xmlbeans/xmlbeans/2.6.0/29e80d2dd51f9dcdef8f9ffaee0d4dc1c9bbfc87/xmlbeans-2.6.0.jar
06:42:12 06:42:12.870 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/com.jcraft/jsch.agentproxy.core/0.0.7/9bcf818dc9e5247b01b1b18671a12caac293ae40/jsch.agentproxy.core-0.0.7.jar
06:42:12 06:42:12.871 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/com.jcraft/jsch.agentproxy.usocket-jna/0.0.7/98cf51ca8d7882c203729ffa48e9b7be4c50b835/jsch.agentproxy.usocket-jna-0.0.7.jar
06:42:12 06:42:12.871 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/com.jcraft/jsch.agentproxy.usocket-nc/0.0.7/aff6f0f3a68f9731580d7c48075fdf177532dfe6/jsch.agentproxy.usocket-nc-0.0.7.jar
06:42:12 06:42:12.871 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/com.jcraft/jsch.agentproxy.sshagent/0.0.7/5c09a3d2a0562de53cf616794f43f51a3c0a496c/jsch.agentproxy.sshagent-0.0.7.jar
06:42:12 06:42:12.871 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/com.jcraft/jsch.agentproxy.pageant/0.0.7/b40c0d9b10d79a0683ca93e3f70360b3d8045b62/jsch.agentproxy.pageant-0.0.7.jar
06:42:12 06:42:12.871 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/net.java.dev.jna/platform/3.4.0/e3f70017be8100d3d6923f50b3d2ee17714e9c13/platform-3.4.0.jar
06:42:12 06:42:12.872 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/xmlpull/xmlpull/1.1.3.1/2b8e230d2ab644e4ecaa94db7cdedbc40c805dfa/xmlpull-1.1.3.1.jar
06:42:12 06:42:12.872 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/xpp3/xpp3_min/1.1.4c/19d4e90b43059058f6e056f794f0ea4030d60b86/xpp3_min-1.1.4c.jar
06:42:12 06:42:12.872 [QUIET] [system.out] /opt/javab427/.gradle/caches/modules-2/files-2.1/commons-logging/commons-logging/1.2/4bfc12adfe4842bf07b657f0369c4cb522955686/commons-logging-1.2.jar
06:42:13 06:42:13.116 [DEBUG] [org.gradle.api.internal.project.antbuilder.DefaultIsolatedAntBuilder] Forking a new isolated ant builder for classpath : configuration ':jacocoAnt’
06:42:13 06:42:13.118 [DEBUG] [org.gradle.api.internal.project.antbuilder.ClassPathToClassLoaderCache] Classloader cache miss for classpath : [file:/opt/javab427/.gradle/caches/modules-2/files-2.1/org.jacoco/org.jacoco.ant/0.7.1.201405082137/fa7d7352cf2847db16efb1d2fc4eefa36e897690/org.jacoco.ant-0.7.1.201405082137.jar]. Creating classloader.
06:42:13 06:42:13.218 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':jacocoTestReport’
06:42:13 06:42:13.218 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :jacocoTestReport FAILED
06:42:13 06:42:13.218 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :jacocoTestReport (Thread[main,5,main]) completed. Took 1.037 secs.
06:42:13 06:42:13.218 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[main,5,main]] finished, busy: 2.478 secs, idle: 0.002 secs
06:42:13 06:42:13.221 [ERROR] [org.gradle.BuildExceptionReporter]
06:42:13 06:42:13.221 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
06:42:13 06:42:13.222 [ERROR] [org.gradle.BuildExceptionReporter]
06:42:13 06:42:13.222 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
06:42:13 06:42:13.222 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ‘:jacocoTestReport’.
06:42:13 06:42:13.222 [ERROR] [org.gradle.BuildExceptionReporter] > org.jacoco.report.IReportGroupVisitor
06:42:13 06:42:13.222 [ERROR] [org.gradle.BuildExceptionReporter]
06:42:13 06:42:13.222 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is:
06:42:13 06:42:13.223 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ‘:jacocoTestReport’.
06:42:13 06:42:13.223 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
06:42:13 06:42:13.223 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
06:42:13 06:42:13.223 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
06:42:13 06:42:13.223 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)
06:42:13 06:42:13.223 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
06:42:13 06:42:13.223 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52)
06:42:13 06:42:13.223 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
06:42:13 06:42:13.223 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
06:42:13 06:42:13.223 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
06:42:13 06:42:13.223 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203)
06:42:13 06:42:13.223 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:185)
06:42:13 06:42:13.223 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:66)
06:42:13 06:42:13.223 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:50)
------Many Lines Deleted ----
onAction.java:24)
06:42:13 06:42:13.225 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)
06:42:13 06:42:13.225 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
06:42:13 06:42:13.225 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
06:42:13 06:42:13.225 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
06:42:13 06:42:13.225 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.Main.doAction(Main.java:33)
06:42:13 06:42:13.225 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
06:42:13 06:42:13.225 [ERROR] [org.gradle.BuildExceptionReporter] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
06:42:13 06:42:13.225 [ERROR] [org.gradle.BuildExceptionReporter] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
06:42:13 06:42:13.225 [ERROR] [org.gradle.BuildExceptionReporter] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
06:42:13 06:42:13.225 [ERROR] [org.gradle.BuildExceptionReporter] at java.lang.reflect.Method.invoke(Method.java:620)
06:42:13 06:42:13.225 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)
06:42:13 06:42:13.225 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)
06:42:13 06:42:13.225 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
06:42:13 06:42:13.225 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.lang.NoClassDefFoundError: org.jacoco.report.IReportGroupVisitor
06:42:13 06:42:13.225 [ERROR] [org.gradle.BuildExceptionReporter] at java.lang.J9VMInternals.prepareClassImpl(Native Method)
06:42:13 06:42:13.225 [ERROR] [org.gradle.BuildExceptionReporter] at java.lang.J9VMInternals.prepare(J9VMInternals.java:283)
06:42:13 06:42:13.225 [ERROR] [org.gradle.BuildExceptionReporter] at java.lang.Class.getConstructor(Class.java:494)

  • Many Lines Deleted–

06:42:13 06:42:13.226 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.testing.jacoco.tasks.JacocoReport$_generate_closure2.doCall(JacocoReport.groovy:88)
06:42:13 06:42:13.226 [ERROR] [org.gradle.BuildExceptionReporter] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
06:42:13 06:42:13.226 [ERROR] [org.gradle.BuildExceptionReporter] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
06:42:13 06:42:13.226 [ERROR] [org.gradle.BuildExceptionReporter] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
06:42:13 06:42:13.226 [ERROR] [org.gradle.BuildExceptionReporter] at java.lang.reflect.Method.invoke(Method.java:620)
06:42:13 06:42:13.226 [ERROR] [org.gradle.BuildExceptionReporter] at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
06:42:13 06:42:13.226 [ERROR] [org.gradle.BuildExceptionReporter] at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
----Many Lines Deleted—
06:42:13 06:42:13.227 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
06:42:13 06:42:13.227 [ERROR] [org.gradle.BuildExceptionReporter] … 61 more
06:42:13 06:42:13.227 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.lang.ClassNotFoundException: org.jacoco.report.IReportGroupVisitor
06:42:13 06:42:13.227 [ERROR] [org.gradle.BuildExceptionReporter] at java.net.URLClassLoader.findClass(URLClassLoader.java:600)
06:42:13 06:42:13.227 [ERROR] [org.gradle.BuildExceptionReporter] at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:786)
06:42:13 06:42:13.227 [ERROR] [org.gradle.BuildExceptionReporter] at java.lang.ClassLoader.loadClass(ClassLoader.java:764)
06:42:13 06:42:13.228 [ERROR] [org.gradle.BuildExceptionReporter] at java.lang.ClassLoader.loadClass(ClassLoader.java:741)
06:42:13 06:42:13.228 [ERROR] [org.gradle.BuildExceptionReporter] … 111 more
06:42:13 06:42:13.228 [ERROR] [org.gradle.BuildExceptionReporter]
06:42:13 06:42:13.228 [LIFECYCLE] [org.gradle.BuildResultLogger]
06:42:13 06:42:13.228 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED
06:42:13 06:42:13.228 [LIFECYCLE] [org.gradle.BuildResultLogger]
06:42:13 06:42:13.228 [LIFECYCLE] [org.gradle.BuildResultLogger] Total time: 9.79 secs
06:42:13 06:42:13.232 [DEBUG] [org.gradle.api.internal.project.antbuilder.FinalizerThread] Shutdown of classloader cache in progress
06:42:13 06:42:13.233 [DEBUG] [org.gradle.api.internal.project.antbuilder.FinalizerThread] Removing classloader from cache, classpath = [file:/opt/javab427/.gradle/caches/modules-2/files-2.1/org.jacoco/org.jacoco.ant/0.7.1.201405082137/fa7d7352cf2847db16efb1d2fc4eefa36e897690/org.jacoco.ant-0.7.1.201405082137.jar]
06:42:13 06:42:13.258 [DEBUG] [org.gradle.api.internal.project.antbuilder.FinalizerThread] Completed shutdown

I can get the artifacts org.jacoco:org.jacoco.ant:0.7.1.201405082137 & org.jacoco:org.jacoco.report:0.7.1.201405082137 in gradle cache during build. Still not sure why its failing to find the “ClassNotFoundException: org.jacoco.report.IReportGroupVisitor”?

Thanks,
Mak


(James Justinic) #4

The output of sourceSets.main.runtimeClasspath.each { println it} shows the runtime classpath of your main source set. However, what I’m really wanting to see is the output of the classpath being used for the jacocoTestReport task that is failing (i.e. jacocoTestReport.jacocoClasspath.each { println it } to match what you did). I can create a similar failure if I purposefully sabotage that classpath.

Also, is the Jacoco report successfully generated when a build is run somewhere other than the Jenkins server?


(Jadhav) #5

Please see the output from jacocoTestReport.jacocoClasspath.each { println it } as part of build log,:

-------------------------Excerpt from log-----------------------------

9:03:29 Executing task ‘:jacocoTestReport’ (up-to-date check took 0.282 secs) due to:
09:03:29 No history is available.
09:03:29 /opt/javab427/.gradle/caches/modules-2/files-2.1/org.jacoco/org.jacoco.ant/0.7.1.201405082137/fa7d7352cf2847db16efb1d2fc4eefa36e897690/org.jacoco.ant-0.7.1.201405082137.jar
09:03:29 :jacocoTestReport FAILED
09:03:29 :jacocoTestReport (Thread[main,5,main]) completed. Took 0.599 secs.
09:03:30
09:03:30 FAILURE: Build failed with an exception.
09:03:30
09:03:30 * What went wrong:
09:03:30 Execution failed for task ‘:jacocoTestReport’.
09:03:30 > org.jacoco.report.IReportGroupVisitor
09:03:30
09:03:30 * Try:
09:03:30 Run with --debug option to get more log output.
09:03:30
09:03:30 * Exception is:
09:03:30 org.gradle.api.tasks.TaskExecutionException: Execution failed for task ‘:jacocoTestReport’.
09:03:30 at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
09:03:30 at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
09:03:30 at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
09:03:30 at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)
09:03:30 at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
09:03:30 at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52)
09:03:30 at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
09:03:30 at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
09:03:30 at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
09:03:30 at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203)
09:03:30 at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:185)
09:03:30 at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:66)
09:03:30 at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:50)
09:03:30 at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:25)
09:03:30 at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:110)
09:03:30 at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)
09:03:30 at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
09:03:30 at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:23)
09:03:30 at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:43)
09:03:30 at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
09:03:30 at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
09:03:30 at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30)
09:03:30 at org.gradle.initialization.DefaultGradleLauncher$4.run(DefaultGradleLauncher.java:154)
09:03:30 at org.gradle.internal.Factories$1.create(Factories.java:22)
09:03:30 at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
09:03:30 at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:52)
09:03:30 at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:151)
09:03:30 at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:32)
09:03:30 at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:99)
09:03:30 at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:93)
09:03:30 at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
09:03:30 at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:62)
09:03:30 at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:93)
09:03:30 at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:82)
09:03:30 at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:94)
09:03:30 at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
09:03:30 at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
09:03:30 at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:43)
09:03:30 at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28)
09:03:30 at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:77)
09:03:30 at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:47)
09:03:30 at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:51)
09:03:30 at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:28)
09:03:30 at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:43)
09:03:30 at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:170)
09:03:30 at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237)
09:03:30 at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210)
09:03:30 at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)
09:03:30 at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
09:03:30 at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)
09:03:30 at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
09:03:30 at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
09:03:30 at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
09:03:30 at org.gradle.launcher.Main.doAction(Main.java:33)
09:03:30 at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
09:03:30 at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)
09:03:30 at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)
09:03:30 at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
09:03:30 Caused by: java.lang.NoClassDefFoundError: org.jacoco.report.IReportGroupVisitor
09:03:30 at org.apache.tools.ant.ComponentHelper.checkTaskClass(ComponentHelper.java:376)
09:03:30 at org.apache.tools.ant.ComponentHelper.addTaskDefinition(ComponentHelper.java:341)
09:03:30 at org.apache.tools.ant.Project.addTaskDefinition(Project.java:968)
09:03:30 at org.apache.tools.ant.Project$addTaskDefinition.call(Unknown Source)
09:03:30 at org.gradle.api.internal.project.antbuilder.AntBuilderDelegate.taskdef(AntBuilderDelegate.groovy:34)
09:03:30 at org.gradle.api.internal.project.antbuilder.AntBuilderDelegate$taskdef.call(Unknown Source)
09:03:30 at org.gradle.testing.jacoco.tasks.JacocoReport$_generate_closure2.doCall(JacocoReport.groovy:88)
09:03:30 at org.gradle.api.internal.ClosureBackedAction.execute(ClosureBackedAction.java:67)
09:03:30 at org.gradle.util.ConfigureUtil.configure(ConfigureUtil.java:130)
09:03:30 at org.gradle.util.ConfigureUtil.configure(ConfigureUtil.java:91)
09:03:30 at org.gradle.api.internal.project.antbuilder.DefaultIsolatedAntBuilder$2.execute(DefaultIsolatedAntBuilder.java:140)
09:03:30 at org.gradle.api.internal.project.antbuilder.DefaultIsolatedAntBuilder$2.execute(DefaultIsolatedAntBuilder.java:122)
09:03:30 at org.gradle.api.internal.project.antbuilder.ClassPathToClassLoaderCache.withCachedClassLoader(ClassPathToClassLoaderCache.java:134)
09:03:30 at org.gradle.api.internal.project.antbuilder.DefaultIsolatedAntBuilder.execute(DefaultIsolatedAntBuilder.java:116)
09:03:30 at org.gradle.api.internal.project.IsolatedAntBuilder$execute$0.call(Unknown Source)
09:03:30 at org.gradle.testing.jacoco.tasks.JacocoReport.generate(JacocoReport.groovy:87)
09:03:30 at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
09:03:30 at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:227)
09:03:30 at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:220)
09:03:30 at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:209)
09:03:30 at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:585)
09:03:30 at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:568)
09:03:30 at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
09:03:30 at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
09:03:30 … 57 more
09:03:30 Caused by: java.lang.ClassNotFoundException: org.jacoco.report.IReportGroupVisitor
09:03:30 … 81 more
09:03:30
09:03:30
09:03:30 BUILD FAILED

I have tried to run the build in one of local machine and it fails with similar error:

2017-05-03 14:23:53 INFO o.s.c.s.GenericApplicationContext - Closing org.springframework.context.support.GenericApplicationContext@1db4cfc: startup date [Wed May 03 13:50:47 BST 2017]; root of context hierarchy
2017-05-03 14:23:54 INFO o.s.jmx.export.MBeanExporter - Unregistering JMX-exposed beans on shutdown
2017-05-03 14:23:54 INFO o.s.jmx.export.MBeanExporter - Unregistering JMX-exposed beans
2017-05-03 14:23:54 WARN o.s.jmx.export.MBeanExporter - Could not unregister MBean [com.zaxxer.hikari:name=hikariConfig,type=HikariConfig] as said MBean is not registered (perhaps already unregistered by an external process)
2017-05-03 14:23:54 WARN o.s.jmx.export.MBeanExporter - Could not unregister MBean [com.zaxxer.hikari:name=dataSource,type=HikariDataSource] as said MBean is not registered (perhaps already unregistered by an external process)
2017-05-03 14:23:54 INFO o.s.o.j.LocalContainerEntityManagerFactoryBean - Closing JPA EntityManagerFactory for persistence unit 'default’
Picked up _JAVA_OPTIONS: -agentlib:“C:\windows\System32\Aternity\Java\JAVAHO~1”
:jacocoTestReport
C:\Users\X200366.gradle\caches\modules-2\files-2.1\org.jacoco\org.jacoco.ant\0.7.1.201405082137\fa7d7352cf2847db16efb1d2fc4eefa36e897690\org.jacoco.ant-0.7.1.201405082137.jar
:jacocoTestReport FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:jacocoTestReport’.

org/jacoco/core/analysis/ICoverageVisitor

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 35 mins 56.648 secs

I am clueless on what needs to be done here, any thoughts please?

Thanks,
Mak


(James Justinic) #6

Perfect. This confirms that the Jenkins environment is irrelevant, so we can concentrate on the build itself.

You only have one dependency on the jacocoClasspath:

/opt/javab427/.gradle/caches/modules-2/files-2.1/org.jacoco/org.jacoco.ant/0.7.1.201405082137/fa7d7352cf2847db16efb1d2fc4eefa36e897690/org.jacoco.ant-0.7.1.201405082137.jar

You should have several, including the org.jacoco-report jar:

/opt/javab427/.gradle/caches/modules-2/files-2.1/org.jacoco/org.jacoco.ant/0.7.1.201405082137/fa7d7352cf2847db16efb1d2fc4eefa36e897690/org.jacoco.ant-0.7.1.201405082137.jar
/opt/javab427/.gradle/caches/modules-2/files-2.1/org.jacoco/org.jacoco.core/0.7.1.201405082137/4e8449045f1ac3b845ad5947f87c96e31c88c4eb/org.jacoco.core-0.7.1.201405082137.jar
/opt/javab427/.gradle/caches/modules-2/files-2.1/org.jacoco/org.jacoco.report/0.7.1.201405082137/ce9a5584b7d79828535891b2d7733c639f97e8dd/org.jacoco.report-0.7.1.201405082137.jar
/opt/javab427/.gradle/caches/modules-2/files-2.1/org.jacoco/org.jacoco.agent/0.7.1.201405082137/e1b1c97041a0a92f87ab265b6b977c7d409ead40/org.jacoco.agent-0.7.1.201405082137.jar
/opt/javab427/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm-debug-all/5.0.1/f69b5f7d96cec0d448acf1c1a266584170c9643b/asm-debug-all-5.0.1.jar

The root cause of your problem is likely in a part of your build that you did not share. Do you have any logic around disabling transitive dependencies? Something like the following would definitely cause your problem:

configurations.all {
    transitive = false
}

(Jadhav) #7

Thanks James, I also kind of figured out there were dependencies issues. I tried putting the dependencies in the buildscript section of our project build.gradle as below and not I am getting different error:

Note: I did not find any transitive dependencies in our build script.

----------Many Lines deleted--------
buildscript {

dependencies {
	println 'INFO: Building JaCoCO Dependencies'
	classpath group:'org.jacoco', name:'org.jacoco.core', version:'0.7.1.201405082137'
	classpath group:'org.jacoco', name:'org.jacoco.report', version:'0.7.1.201405082137'
	classpath group:'org.jacoco', name:'org.jacoco.agent', version:'0.7.1.201405082137'
	classpath group:'org.jacoco', name:'org.jacoco.ant', version:'0.7.1.201405082137'		
	//classpath group: 'org.jacoco', name: 'org.jacoco.ant', version: '0.7.2'
}

}

:classes UP-TO-DATE
:jacocoTestReport
C:\Users\X200366.gradle\caches\modules-2\files-2.1\org.jacoco\org.jacoco.ant\0.7.1.201405082137\fa7d7352cf2847db16efb1d2fc4eefa36e897690\org.jacoco.ant-0.7.1.201405082137.jar
:jacocoTestReport FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:jacocoTestReport’.

org/jacoco/core/analysis/ICoverageVisitor

  • Try:
    Run with --info or --debug option to get more log output.

  • Exception is:
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ‘:jacocoTestReport’.
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
    at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
    at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)
    at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
    at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52)
    at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
    at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
    at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203)
    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:185)
    at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:66)
    at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:50)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:25)
    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:110)
    at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)
    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
    at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:23)
    at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:43)
    at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30)
    at org.gradle.initialization.DefaultGradleLauncher$4.run(DefaultGradleLauncher.java:154)
    at org.gradle.internal.Factories$1.create(Factories.java:22)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:52)
    at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:151)
    at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:32)
    at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:99)
    at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:93)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:62)
    at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:93)
    at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:82)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:94)
    at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
    at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:43)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28)
    at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:77)
    at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:47)
    at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:51)
    at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:28)
    at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:43)
    at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:170)
    at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237)
    at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210)
    at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)
    at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
    at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)
    at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
    at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
    at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
    at org.gradle.launcher.Main.doAction(Main.java:33)
    at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
    at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)
    at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)
    at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
    Caused by: java.lang.NoClassDefFoundError: org/jacoco/core/analysis/ICoverageVisitor
    at org.apache.tools.ant.ComponentHelper.checkTaskClass(ComponentHelper.java:376)
    at org.apache.tools.ant.ComponentHelper.addTaskDefinition(ComponentHelper.java:341)
    at org.apache.tools.ant.Project.addTaskDefinition(Project.java:968)
    at org.apache.tools.ant.Project$addTaskDefinition.call(Unknown Source)
    at org.gradle.api.internal.project.antbuilder.AntBuilderDelegate.taskdef(AntBuilderDelegate.groovy:34)
    at org.gradle.api.internal.project.antbuilder.AntBuilderDelegate$taskdef.call(Unknown Source)
    at org.gradle.testing.jacoco.tasks.JacocoReport$_generate_closure2.doCall(JacocoReport.groovy:88)
    at org.gradle.api.internal.ClosureBackedAction.execute(ClosureBackedAction.java:67)
    at org.gradle.util.ConfigureUtil.configure(ConfigureUtil.java:130)
    at org.gradle.util.ConfigureUtil.configure(ConfigureUtil.java:91)
    at org.gradle.api.internal.project.antbuilder.DefaultIsolatedAntBuilder$2.execute(DefaultIsolatedAntBuilder.java:140)
    at org.gradle.api.internal.project.antbuilder.DefaultIsolatedAntBuilder$2.execute(DefaultIsolatedAntBuilder.java:122)
    at org.gradle.api.internal.project.antbuilder.ClassPathToClassLoaderCache.withCachedClassLoader(ClassPathToClassLoaderCache.java:134)
    at org.gradle.api.internal.project.antbuilder.DefaultIsolatedAntBuilder.execute(DefaultIsolatedAntBuilder.java:116)
    at org.gradle.api.internal.project.IsolatedAntBuilder$execute$0.call(Unknown Source)
    at org.gradle.testing.jacoco.tasks.JacocoReport.generate(JacocoReport.groovy:87)
    at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
    at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:227)
    at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:220)
    at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:209)
    at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:585)
    at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:568)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
    … 57 more
    Caused by: java.lang.ClassNotFoundException: org.jacoco.core.analysis.ICoverageVisitor
    … 81 more

BUILD FAILED

Total time: 47.494 secs

Thanks again for helping me until now.


(James Justinic) #8

The buildscript section is not the right place to be adding these things. That’s for the classpath of the Gradle buildscript. These are where the plugins for the buildscript would go. In this case, the jacoco plugin creates another configuration with jacoco dependencies that it then uses when it delegates to the jacoco ant classes.

If you want to manually try to add these things back, you’d want to add those direct dependencies to your regular dependencies block, not the one in buildscript and on the jacocoAnt configuration, not classpath.

However, you should not really be having to do this, but it you can’t find it, it would be better to see if you can use

configurations.jacocoAnt.transitive = true

You might have to play around with where it goes though because it’d need execute after whatever is causing this problem.


(Jadhav) #9

As you said I removed the dependencies from buildscript dependencies block and added to regular dependencies block as below:
dependencies {
println 'INFO: Building JaCoCO Dependencies’
compile group:‘org.jacoco’, name:‘org.jacoco.core’, version:'0.7.1.201405082137’
compile group:‘org.jacoco’, name:‘org.jacoco.report’, version:'0.7.1.201405082137’
compile group:‘org.jacoco’, name:‘org.jacoco.agent’, version:'0.7.1.201405082137’
compile group:‘org.jacoco’, name:‘org.jacoco.ant’, version:‘0.7.1.201405082137’
}

The build shows it is able to download from our internal Artifactory repository as seen in the log:
-------Many Lines deleted-----
11:44:40 :compileJava
11:44:40 Download http:///artifactory/libs-release/org/jacoco/org.jacoco.core/0.7.1.201405082137/org.jacoco.core-0.7.1.201405082137.pom
11:44:43 Download http:////artifactory/libs-release/org/jacoco/org.jacoco.build/0.7.1.201405082137/org.jacoco.build-0.7.1.201405082137.pom
11:44:46 Download http:////artifactory/libs-release/org/ow2/asm/asm-debug-all/5.0.1/asm-debug-all-5.0.1.pom
11:44:49 Download http//artifactory/libs-release/org/ow2/asm/asm-parent/5.0.1/asm-parent-5.0.1.pom
11:44:53 Download http:////artifactory/libs-release/org/jacoco/org.jacoco.core/0.7.1.201405082137/org.jacoco.core-0.7.1.201405082137.jar
11:44:58 Download http:////artifactory/libs-release/org/ow2/asm/asm-debug-all/5.0.1/asm-debug-all-5.0.1.jar
11:44:58 Executing task ‘:compileJava’ (up-to-date check took 22.5 secs) due to:
11:44:58 Input file /opt/javab427/.gradle/caches/modules-2/files-2.1/org.jacoco/org.jacoco.ant/0.7.1.201405082137/fa7d7352cf2847db16efb1d2fc4eefa36e897690/org.jacoco.ant-0.7.1.201405082137.jar has been added.
11:44:58 Input file /opt/javab427/.gradle/caches/modules-2/files-2.1/org.jacoco/org.jacoco.core/0.7.1.201405082137/4e8449045f1ac3b845ad5947f87c96e31c88c4eb/org.jacoco.core-0.7.1.201405082137.jar has been added.
11:44:58 Input file /opt/javab427/.gradle/caches/modules-2/files-2.1/org.jacoco/org.jacoco.report/0.7.1.201405082137/ce9a5584b7d79828535891b2d7733c639f97e8dd/org.jacoco.report-0.7.1.201405082137.jar has been added.

As per your advice, I also happen to set configurations.jacocoAnt.transitive = true in build script as below:

jacocoTestReport {
group = "Reporting"
description = "Generate Jacoco coverage reports after running tests."
additionalSourceDirs = files(sourceSets.main.allJava.srcDirs)
configurations.jacocoAnt.transitive = true
doFirst{
jacocoTestReport.jacocoClasspath.each { println it }
}
reports {
html.enabled true
xml.enabled true
csv.enabled false
html.destination “${buildWS}/jacocoHtml”
}
}

I am still seeing the same error while executing jacocoTestReport :slight_smile:


11:45:08 :jacocoTestReport
11:45:08 Executing task ‘:jacocoTestReport’ (up-to-date check took 0.192 secs) due to:
11:45:08 No history is available.
11:45:08 /opt/javab427/.gradle/caches/modules-2/files-2.1/org.jacoco/org.jacoco.ant/0.7.1.201405082137/fa7d7352cf2847db16efb1d2fc4eefa36e897690/org.jacoco.ant-0.7.1.201405082137.jar
11:45:09 :jacocoTestReport FAILED
11:45:09 :jacocoTestReport (Thread[main,5,main]) completed. Took 0.532 secs.
11:45:09
11:45:09 FAILURE: Build failed with an exception.
11:45:09
11:45:09 * What went wrong:
11:45:09 Execution failed for task ‘:jacocoTestReport’.
11:45:09 > org.jacoco.report.IReportGroupVisitor
11:45:09
11:45:09 * Try:
11:45:09 Run with --debug option to get more log output.
11:45:09
11:45:09 * Exception is:

I am not gradle expert, Is there a way we can force the classpath dependencies required for jacocoTestReport
to be set?
Thanks!


(James Justinic) #10

When you added it to the regular dependencies instead of the buildscript dependencies, you missed the part about adding to the jacocoAnt configuration instead of the classpath configuration. Instead you added it to the compile configuration. Your work-around should read:

dependencies {
    jacocoAnt group:'org.jacoco', name:'org.jacoco.core', version:'0.7.1.201405082137'
    jacocoAnt group:'org.jacoco', name:'org.jacoco.report', version:'0.7.1.201405082137'
    jacocoAnt group:'org.jacoco', name:'org.jacoco.agent', version:'0.7.1.201405082137'
    jacocoAnt group:'org.jacoco', name:'org.jacoco.ant', version:'0.7.1.201405082137'
}

(Jadhav) #11

Dear James,

Thanks a million for all the help provided until now. I was able to fix the issue using your last input. The jacocoTestReport task is getting built with right dependencies now on my local machine and also on the Jenkins server. I am also able to use the Jenkins JaCoCo plugin to generate the Coverage report post the tests have been executed.
I was still not able to understand though why would we really need to explicitly specify the jacocoAnt Dependencies for adding to the jacocoAnt configuration in build.gradle, I thought this should have been picked up by Gradle script anyways?
Even the documentation at https://docs.gradle.org/2.9/userguide/jacoco_plugin.html does not say to add any external dependencies, am I missing anything here?

Here is what was done in build script to get the JaCoCo coverage reports generated:

configurations {
println ‘INFO: JaCoCO Configuration’
jacocoAnt
}

dependencies {
println 'INFO: Building JaCoCO Dependencies’
jacocoAnt group:‘org.jacoco’, name:‘org.jacoco.core’, version:'0.7.1.201405082137’
jacocoAnt group:‘org.jacoco’, name:‘org.jacoco.report’, version:'0.7.1.201405082137’
jacocoAnt group:‘org.jacoco’, name:‘org.jacoco.agent’, version:'0.7.1.201405082137’
jacocoAnt group:‘org.jacoco’, name:‘org.jacoco.ant’, version:‘0.7.1.201405082137’
}

jacoco {
toolVersion = “0.7.1.201405082137”
}

jacocoTestReport {
group = "Reporting"
description = "Generate Jacoco coverage reports after running tests."
println 'INFO: Generating JaCoCO Coverage Report’
configurations.jacocoAnt.transitive = true
doFirst{
jacocoTestReport.jacocoClasspath.each { println it }
}
reports {
html.enabled true
xml.enabled true
csv.enabled false
html.destination “${buildWS}/jacocoHtml”
}
}

Hope this helps for anyone else facing the issue. Thanks !


(James Justinic) #12

This is a work-around. It’s not resolving the root cause of your issue. You’re not supposed to add these dependencies normally. Something in your build script or a plugin is breaking the transitive dependencies of the jacocoAnt configuration.

Since you said that you couldn’t find anything related to transitivity and haven’t shared anything other than the jacoco related part of your build script, I can’t give you anything better. However, if there’s more you can share, or want to research the root cause further, I’m happy to help.