java.lang.reflect.InvocationTargetException

Jenkins JIRA | Choon Chern Lim | 3 years ago
  1. 0

    I'm getting this error in v1.545 and v1.546. java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:178) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at hudson.maven.Maven3Builder.call(Maven3Builder.java:134) at hudson.maven.Maven3Builder.call(Maven3Builder.java:69) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:328) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:679) Caused by: java.lang.ExceptionInInitializerError at edu.umd.cs.findbugs.DetectorFactoryCollection.getCoreResource(DetectorFactoryCollection.java:360) at edu.umd.cs.findbugs.SystemProperties.loadPropertiesFromConfigFile(SystemProperties.java:72) at edu.umd.cs.findbugs.SystemProperties.<clinit>(SystemProperties.java:55) at edu.umd.cs.findbugs.SortedBugCollection.<clinit>(SortedBugCollection.java:189) at hudson.plugins.findbugs.parser.FindBugsParser.readXml(FindBugsParser.java:282) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:221) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:159) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:138) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:105) at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:306) at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:264) at hudson.plugins.analysis.core.FilesParser.parserCollectionOfFiles(FilesParser.java:215) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:184) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:31) at hudson.FilePath.act(FilePath.java:914) at hudson.FilePath.act(FilePath.java:887) at hudson.plugins.findbugs.FindBugsReporter.perform(FindBugsReporter.java:179) at hudson.plugins.analysis.core.HealthAwareReporter.postExecute(HealthAwareReporter.java:315) at hudson.maven.Maven3Builder$MavenExecutionListener.recordMojoEnded(Maven3Builder.java:628) at hudson.maven.Maven3Builder$MavenExecutionListener.mojoSucceeded(Maven3Builder.java:610) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:87) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:228) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:117) ... 22 more Caused by: java.lang.IllegalStateException: Unable to load core plugin at edu.umd.cs.findbugs.PluginLoader.loadCorePlugin(PluginLoader.java:1423) at edu.umd.cs.findbugs.PluginLoader.loadInitialPlugins(PluginLoader.java:1373) at edu.umd.cs.findbugs.PluginLoader.<clinit>(PluginLoader.java:156) ... 54 more Caused by: edu.umd.cs.findbugs.PluginException: Couldn't parse "jar:file:/var/lib/jenkins/.jenkins/cache/jars/DB/BFFF630BEF40FBA05BFDA2CDC31BC1.jar!/findbugs.xml" using org.dom4j.io.SAXReader at edu.umd.cs.findbugs.PluginLoader.getPluginDescriptor(PluginLoader.java:1122) at edu.umd.cs.findbugs.PluginLoader.init(PluginLoader.java:611) at edu.umd.cs.findbugs.PluginLoader.<init>(PluginLoader.java:357) at edu.umd.cs.findbugs.PluginLoader.loadCorePlugin(PluginLoader.java:1419) ... 56 more Caused by: org.dom4j.DocumentException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory Nested exception: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory at org.dom4j.io.SAXReader.read(SAXReader.java:484) at org.dom4j.io.SAXReader.read(SAXReader.java:365) at edu.umd.cs.findbugs.PluginLoader.getPluginDescriptor(PluginLoader.java:1120) ... 59 more Caused by: java.lang.ClassCastException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory at org.dom4j.DocumentFactory.getInstance(DocumentFactory.java:97) at org.dom4j.io.SAXReader.getDocumentFactory(SAXReader.java:645) at org.dom4j.io.SAXReader.createContentHandler(SAXReader.java:969) at org.dom4j.io.SAXReader.read(SAXReader.java:449) ... 61 more

    Jenkins JIRA | 3 years ago | Choon Chern Lim
    java.lang.reflect.InvocationTargetException
  2. 0

    I'm getting this error in v1.545 and v1.546. java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:178) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at hudson.maven.Maven3Builder.call(Maven3Builder.java:134) at hudson.maven.Maven3Builder.call(Maven3Builder.java:69) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:328) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:679) Caused by: java.lang.ExceptionInInitializerError at edu.umd.cs.findbugs.DetectorFactoryCollection.getCoreResource(DetectorFactoryCollection.java:360) at edu.umd.cs.findbugs.SystemProperties.loadPropertiesFromConfigFile(SystemProperties.java:72) at edu.umd.cs.findbugs.SystemProperties.<clinit>(SystemProperties.java:55) at edu.umd.cs.findbugs.SortedBugCollection.<clinit>(SortedBugCollection.java:189) at hudson.plugins.findbugs.parser.FindBugsParser.readXml(FindBugsParser.java:282) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:221) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:159) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:138) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:105) at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:306) at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:264) at hudson.plugins.analysis.core.FilesParser.parserCollectionOfFiles(FilesParser.java:215) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:184) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:31) at hudson.FilePath.act(FilePath.java:914) at hudson.FilePath.act(FilePath.java:887) at hudson.plugins.findbugs.FindBugsReporter.perform(FindBugsReporter.java:179) at hudson.plugins.analysis.core.HealthAwareReporter.postExecute(HealthAwareReporter.java:315) at hudson.maven.Maven3Builder$MavenExecutionListener.recordMojoEnded(Maven3Builder.java:628) at hudson.maven.Maven3Builder$MavenExecutionListener.mojoSucceeded(Maven3Builder.java:610) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:87) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:228) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:117) ... 22 more Caused by: java.lang.IllegalStateException: Unable to load core plugin at edu.umd.cs.findbugs.PluginLoader.loadCorePlugin(PluginLoader.java:1423) at edu.umd.cs.findbugs.PluginLoader.loadInitialPlugins(PluginLoader.java:1373) at edu.umd.cs.findbugs.PluginLoader.<clinit>(PluginLoader.java:156) ... 54 more Caused by: edu.umd.cs.findbugs.PluginException: Couldn't parse "jar:file:/var/lib/jenkins/.jenkins/cache/jars/DB/BFFF630BEF40FBA05BFDA2CDC31BC1.jar!/findbugs.xml" using org.dom4j.io.SAXReader at edu.umd.cs.findbugs.PluginLoader.getPluginDescriptor(PluginLoader.java:1122) at edu.umd.cs.findbugs.PluginLoader.init(PluginLoader.java:611) at edu.umd.cs.findbugs.PluginLoader.<init>(PluginLoader.java:357) at edu.umd.cs.findbugs.PluginLoader.loadCorePlugin(PluginLoader.java:1419) ... 56 more Caused by: org.dom4j.DocumentException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory Nested exception: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory at org.dom4j.io.SAXReader.read(SAXReader.java:484) at org.dom4j.io.SAXReader.read(SAXReader.java:365) at edu.umd.cs.findbugs.PluginLoader.getPluginDescriptor(PluginLoader.java:1120) ... 59 more Caused by: java.lang.ClassCastException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory at org.dom4j.DocumentFactory.getInstance(DocumentFactory.java:97) at org.dom4j.io.SAXReader.getDocumentFactory(SAXReader.java:645) at org.dom4j.io.SAXReader.createContentHandler(SAXReader.java:969) at org.dom4j.io.SAXReader.read(SAXReader.java:449) ... 61 more

    Jenkins JIRA | 3 years ago | Choon Chern Lim
    java.lang.reflect.InvocationTargetException
  3. 0

    Jenkins marking a build as UNSTABLE even if all tests are passing

    Stack Overflow | 3 years ago | user3627846
    org.dom4j.DocumentException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory Nested exception: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    {{Started by user anonymous Building remotely on Dev-Build3 Updating http://code/sw/iE2/trunk/iBO-iE2 At revision 23722 no change for http://code/sw/iE2/trunk/iBO-iE2 since the previous build No emails were triggered. Parsing POMs [iBO-iE2] $ "C:\Program Files\Java\jdk1.6.0_20/bin/java" -Xmx512m -XX:MaxPermSize=128m -Dmaven.test.failure.ignore=false -cp "C:\HudsonHome\Slave1\maven-agent.jar;C:\Program Files\apache-maven-2.2.1\boot\classworlds-1.1.jar" hudson.maven.agent.Main "C:\Program Files\apache-maven-2.2.1" C:\HudsonHome\Slave1\slave.jar C:\HudsonHome\Slave1\maven-interceptor.jar 58208 C:\HudsonHome\Slave1\maven2.1-interceptor.jar <===[HUDSON REMOTING CAPACITY]===>���channel started Executing Maven: -B -f C:\HudsonHome\Slave1\workspace\iBO-iE2\iBO-iE2\pom.xml clean -X -U -e org.codehaus.mojo:sonar-maven-plugin:1.0-beta-2:sonar + Error stacktraces are turned on. Apache Maven 2.2.1 (r801777; 2009-08-07 07:16:01+1200) Java version: 1.6.0_20 }} ... {{Results : Tests run: 73, Failures: 0, Errors: 0, Skipped: 0 Flushing results... Flushing results done Cobertura: Loaded information on 330 classes. Cobertura: Saved information on 330 classes. [HUDSON] Recording test results [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Can not execute Sonar Embedded error: Unable to execute maven plugin org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory [INFO] ------------------------------------------------------------------------ [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Can not execute Sonar at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:65) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at hudson.maven.agent.Main.launch(Main.java:165) at hudson.maven.MavenBuilder.call(MavenBuilder.java:165) at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:744) at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:688) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: org.apache.maven.plugin.MojoExecutionException: Can not execute Sonar at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:103) at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:79) at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:88) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:182) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) ... 28 more Caused by: org.sonar.api.utils.SonarException: Unable to execute maven plugin at org.sonar.maven.Maven2PluginExecutor.execute(Maven2PluginExecutor.java:67) at org.sonar.maven.Maven2PluginExecutor.execute(Maven2PluginExecutor.java:46) at org.sonar.batch.SensorsExecutor.executeMavenPlugin(SensorsExecutor.java:69) at org.sonar.batch.SensorsExecutor.execute(SensorsExecutor.java:55) at org.sonar.batch.ProjectBatch.execute(ProjectBatch.java:59) at org.sonar.batch.Batch.analyzeProject(Batch.java:120) at org.sonar.batch.Batch.analyzeProjects(Batch.java:83) at org.sonar.batch.Batch.execute(Batch.java:58) at org.sonar.maven.SonarMojo.executeBatch(SonarMojo.java:142) at org.sonar.maven.SonarMojo.execute(SonarMojo.java:133) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:182) at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:98) ... 33 more Caused by: org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-surefire-plugin:2.4.3:test': Failed to read C:\HudsonHome\Slave1\workspace\iBO-iE2\iBO-iE2\target\surefire-reports\TEST-com.energyintellect.TestDateHelperCheckTimeAlign.xml at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:698) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(DefaultLifecycleExecutor.java:1205) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(DefaultLifecycleExecutor.java:1038) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:643) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:65) at org.sonar.maven.Maven2PluginExecutor.execute(Maven2PluginExecutor.java:64) ... 45 more Caused by: org.apache.maven.plugin.PluginManagerException: Failed to read C:\HudsonHome\Slave1\workspace\iBO-iE2\iBO-iE2\target\surefire-reports\TEST-com.energyintellect.TestDateHelperCheckTimeAlign.xml at hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:196) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) ... 56 more Caused by: hudson.util.IOException2: Failed to read C:\HudsonHome\Slave1\workspace\iBO-iE2\iBO-iE2\target\surefire-reports\TEST-com.energyintellect.TestDateHelperCheckTimeAlign.xml at hudson.tasks.junit.TestResult.parse(TestResult.java:214) at hudson.tasks.junit.TestResult.parse(TestResult.java:155) at hudson.maven.reporters.SurefireArchiver.postExecute(SurefireArchiver.java:108) at hudson.maven.MavenModuleSetBuild$Builder.postExecute(MavenModuleSetBuild.java:822) at hudson.maven.MavenBuilder$Adapter.postExecute(MavenBuilder.java:300) at hudson.maven.agent.PluginManagerInterceptor$1MojoIntercepterImpl.callPost(PluginManagerInterceptor.java:170) at hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:183) ... 57 more Caused by: org.dom4j.DocumentException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory Nested exception: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory at org.dom4j.io.SAXReader.read(SAXReader.java:484) at org.dom4j.io.SAXReader.read(SAXReader.java:264) at hudson.tasks.junit.SuiteResult.parse(SuiteResult.java:99) at hudson.tasks.junit.TestResult.parse(TestResult.java:199) ... 63 more Caused by: java.lang.ClassCastException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory at org.dom4j.DocumentFactory.getInstance(DocumentFactory.java:97) at org.dom4j.io.SAXReader.getDocumentFactory(SAXReader.java:645) at org.dom4j.io.SAXReader.createContentHandler(SAXReader.java:969) at org.dom4j.io.SAXReader.read(SAXReader.java:449) ... 66 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2 minutes 14 seconds [INFO] Finished at: Fri Dec 17 14:34:07 GMT+12:00 2010 [INFO] Final Memory: 51M/167M [INFO] ------------------------------------------------------------------------ Waiting for Hudson to finish collecting data channel stopped [WARNINGS] Skipping publisher since build result is FAILURE Email was triggered for: Failure Email was triggered for: Still Failing Trigger Failure was overridden by another trigger and will not send an email. Sending email for trigger: Still Failing An attempt to send an e-mail to empty list of recipients, ignored. Finished: FAILURE}} More details in the attachment. This problem doesn't occur if I start the same maven command locally on that slave computer or if I start the test run on the Hudson master. So the problem must be somewhere in the slave agent starting the maven job. The Hudson Sonar plugin doesn't work here as it constantly fails to load its dependencies under Maven 2.2.1, but this is a bug from the maven-sonar-plugin - that is why we hardcoded the plugin version number in the call above

    Jenkins JIRA | 6 years ago | schlaufuchs
    org.apache.maven.lifecycle.LifecycleExecutionException: Can not execute Sonar
  6. 0

    When generating a website with mvn clean site site:deploy, I will consistently get a ClassCastException when jenkins is trying to parse the junit surefire reports. This does not happen if I run the command from the command-line, and interestingly enough it doesn't happen for the non-site build (e.g. mvn clean deploy) ------------------------------------------------------- T E S T S ------------------------------------------------------- Running com.ften.creditpool.latency.ThroughputStatsTest Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.566 sec Running com.ften.creditpool.latency.ThroughputCreditPoolTest Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec Running com.ften.creditpool.latency.MinMaxAverageTest Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 sec Running com.ften.creditpool.audit.AuditingCreditPoolTest Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.012 sec Running com.ften.creditpool.CreditPoolBeanTest Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec Results : Tests run: 29, Failures: 0, Errors: 0, Skipped: 0 mojoSucceeded org.apache.maven.plugins:maven-surefire-plugin:2.12(default-test) [JENKINS] Recording test results hudson.util.IOException2: Failed to read /var/lib/jenkins/jobs/risk-alerts_site/workspace/credit-pool/target/surefire-reports/TEST-com.ften.creditpool.CreditPoolBeanTest.xml at hudson.tasks.junit.TestResult.parse(TestResult.java:244) at hudson.tasks.junit.TestResult.parse(TestResult.java:163) at hudson.maven.reporters.SurefireArchiver.postExecute(SurefireArchiver.java:141) at hudson.maven.Maven3Builder$MavenExecutionListener.recordMojoEnded(Maven3Builder.java:421) at hudson.maven.Maven3Builder$MavenExecutionListener.mojoSucceeded(Maven3Builder.java:403) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:87) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:228) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecutions(MojoExecutor.java:365) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeForkedExecutions(DefaultLifecycleExecutor.java:173) at org.apache.maven.reporting.exec.DefaultMavenReportExecutor.buildReportPlugin(DefaultMavenReportExecutor.java:284) at org.apache.maven.reporting.exec.DefaultMavenReportExecutor.buildMavenReports(DefaultMavenReportExecutor.java:150) at org.apache.maven.plugins.site.AbstractSiteRenderingMojo.getReports(AbstractSiteRenderingMojo.java:247) at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:121) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158) at hudson.maven.Maven3Builder.call(Maven3Builder.java:98) at hudson.maven.Maven3Builder.call(Maven3Builder.java:64) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:287) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) 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:722) Caused by: org.dom4j.DocumentException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory Nested exception: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory at org.dom4j.io.SAXReader.read(SAXReader.java:484) at org.dom4j.io.SAXReader.read(SAXReader.java:264) at hudson.tasks.junit.SuiteResult.parse(SuiteResult.java:112) at hudson.tasks.junit.TestResult.parse(TestResult.java:227) ... 44 more Caused by: java.lang.ClassCastException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory at org.dom4j.DocumentFactory.getInstance(DocumentFactory.java:97) at org.dom4j.io.SAXReader.getDocumentFactory(SAXReader.java:645) at org.dom4j.io.SAXReader.createContentHandler(SAXReader.java:969) at org.dom4j.io.SAXReader.read(SAXReader.java:449) ... 47 more forkedProjectSucceeded com.ften.creditpool:credit-pool:0.0.2-SNAPSHOT

    Jenkins JIRA | 5 years ago | scooper4711
    hudson.util.IOException2: Failed to read /var/lib/jenkins/jobs/risk-alerts_site/workspace/credit-pool/target/surefire-reports/TEST-com.ften.creditpool.CreditPoolBeanTest.xml

    41 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory

      at org.dom4j.DocumentFactory.getInstance()
    2. dom4j
      SAXReader.read
      1. org.dom4j.DocumentFactory.getInstance(DocumentFactory.java:97)
      2. org.dom4j.io.SAXReader.getDocumentFactory(SAXReader.java:645)
      3. org.dom4j.io.SAXReader.createContentHandler(SAXReader.java:969)
      4. org.dom4j.io.SAXReader.read(SAXReader.java:449)
      5. org.dom4j.io.SAXReader.read(SAXReader.java:365)
      5 frames
    3. jOpenDocument
      SortedBugCollection.<clinit>
      1. edu.umd.cs.findbugs.PluginLoader.getPluginDescriptor(PluginLoader.java:1120)
      2. edu.umd.cs.findbugs.PluginLoader.init(PluginLoader.java:611)
      3. edu.umd.cs.findbugs.PluginLoader.<init>(PluginLoader.java:357)
      4. edu.umd.cs.findbugs.PluginLoader.loadCorePlugin(PluginLoader.java:1419)
      5. edu.umd.cs.findbugs.PluginLoader.loadInitialPlugins(PluginLoader.java:1373)
      6. edu.umd.cs.findbugs.PluginLoader.<clinit>(PluginLoader.java:156)
      7. edu.umd.cs.findbugs.DetectorFactoryCollection.getCoreResource(DetectorFactoryCollection.java:360)
      8. edu.umd.cs.findbugs.SystemProperties.loadPropertiesFromConfigFile(SystemProperties.java:72)
      9. edu.umd.cs.findbugs.SystemProperties.<clinit>(SystemProperties.java:55)
      10. edu.umd.cs.findbugs.SortedBugCollection.<clinit>(SortedBugCollection.java:189)
      10 frames
    4. hudson.plugins.findbugs
      FindBugsParser.parse
      1. hudson.plugins.findbugs.parser.FindBugsParser.readXml(FindBugsParser.java:282)
      2. hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:221)
      3. hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:159)
      4. hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:138)
      5. hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:105)
      5 frames
    5. Static Analysis Utilities
      FilesParser.invoke
      1. hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:306)
      2. hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:264)
      3. hudson.plugins.analysis.core.FilesParser.parserCollectionOfFiles(FilesParser.java:215)
      4. hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:184)
      5. hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:31)
      5 frames
    6. Hudson
      FilePath.act
      1. hudson.FilePath.act(FilePath.java:914)
      2. hudson.FilePath.act(FilePath.java:887)
      2 frames
    7. hudson.plugins.findbugs
      FindBugsReporter.perform
      1. hudson.plugins.findbugs.FindBugsReporter.perform(FindBugsReporter.java:179)
      1 frame
    8. Static Analysis Utilities
      HealthAwareReporter.postExecute
      1. hudson.plugins.analysis.core.HealthAwareReporter.postExecute(HealthAwareReporter.java:315)
      1 frame
    9. Hudson Maven Embedder
      Maven3Builder$MavenExecutionListener.mojoSucceeded
      1. hudson.maven.Maven3Builder$MavenExecutionListener.recordMojoEnded(Maven3Builder.java:628)
      2. hudson.maven.Maven3Builder$MavenExecutionListener.mojoSucceeded(Maven3Builder.java:610)
      2 frames
    10. Maven Core
      DefaultMaven.execute
      1. org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:87)
      2. org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42)
      3. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:228)
      4. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      5. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      6. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
      7. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
      8. org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
      9. org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
      10. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
      11. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
      11 frames
    11. M3 Interceptor
      Maven3Launcher.main
      1. org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:117)
      1 frame
    12. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:616)
      4 frames
    13. Plexus
      Launcher.launch
      1. org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
      2. org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
      2 frames
    14. M3 Agent
      Maven3Main.launch
      1. org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:178)
      1 frame
    15. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:616)
      4 frames
    16. Hudson Maven Embedder
      Maven3Builder.call
      1. hudson.maven.Maven3Builder.call(Maven3Builder.java:134)
      2. hudson.maven.Maven3Builder.call(Maven3Builder.java:69)
      2 frames
    17. Hudson :: Remoting Layer
      InterceptingExecutorService$1.call
      1. hudson.remoting.UserRequest.perform(UserRequest.java:118)
      2. hudson.remoting.UserRequest.perform(UserRequest.java:48)
      3. hudson.remoting.Request$2.run(Request.java:328)
      4. hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      4 frames
    18. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:166)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      5. java.lang.Thread.run(Thread.java:679)
      5 frames