java.lang.IllegalArgumentException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Unable to run get Lucee 5 running Jetty 9.3.10 on Linux
    via by Andrew Penhorwood,
  • Using Jenkins 1.567 on Linux. Each project is Maven 3 based and publishes jacoco coverage reports. Since upgrading plugins yesterday we're seeing a crash whenever the plugin tries to run. Here's one example: [JaCoCo plugin] Collecting JaCoCo coverage data... [JaCoCo plugin] **/**.exec;**/classes;**/src/main/java; locations are configured [JaCoCo plugin] Number of found exec files: 3 [JaCoCo plugin] Saving matched execfiles: /var/lib/jenkins/jobs/mjls-parent/workspace/automated-readers/target/jacoco.exec /var/lib/jenkins/jobs/mjls-parent/workspace/mjls-core/target/jacoco.exec /var/lib/jenkins/jobs/mjls-parent/workspace/mjls-web/target/jacoco.exec [JaCoCo plugin] Saving matched class directories: /var/lib/jenkins/jobs/mjls-parent/workspace/automated-readers/target/classes /var/lib/jenkins/jobs/mjls-parent/workspace/mjls-core/target/classes /var/lib/jenkins/jobs/mjls-parent/workspace/mjls-web/target/classes /var/lib/jenkins/jobs/mjls-parent/workspace/mjls-web/target/mjls/WEB-INF/classes [JaCoCo plugin] Saving matched source directories: /var/lib/jenkins/jobs/mjls-parent/workspace/automated-readers/src/main/java /var/lib/jenkins/jobs/mjls-parent/workspace/mjls-core/src/main/java /var/lib/jenkins/jobs/mjls-parent/workspace/mjls-web/src/main/java [JaCoCo plugin] Loading inclusions files.. [JaCoCo plugin] inclusions: [] [JaCoCo plugin] exclusions: [] ERROR: Publisher hudson.plugins.jacoco.JacocoPublisher aborted due to exception java.io.IOException: Error while analyzing class /var/lib/jenkins/jobs/mjls-parent/builds/2014-06-13_12-58-21/jacoco/classes/com/mjog/mjls/attachment/DeletedAttachmentToSaas.class. at org.jacoco.core.analysis.Analyzer.analyzerError(Analyzer.java:150) at org.jacoco.core.analysis.Analyzer.analyzeClass(Analyzer.java:144) at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:175) at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:208) at hudson.plugins.jacoco.ExecutionFileLoader.analyzeStructure(ExecutionFileLoader.java:130) at hudson.plugins.jacoco.ExecutionFileLoader.loadBundleCoverage(ExecutionFileLoader.java:137) at hudson.plugins.jacoco.JacocoReportDir.parse(JacocoReportDir.java:102) at hudson.plugins.jacoco.JacocoBuildAction.loadRatios(JacocoBuildAction.java:291) at hudson.plugins.jacoco.JacocoBuildAction.load(JacocoBuildAction.java:273) at hudson.plugins.jacoco.JacocoPublisher.perform(JacocoPublisher.java:371) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:756) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1040) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:669) at hudson.model.Run.execute(Run.java:1735) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:234) Caused by: java.lang.IllegalArgumentException at org.objectweb.asm.ClassVisitor.<init>(Unknown Source) at org.jacoco.core.internal.flow.ClassProbesVisitor.<init>(ClassProbesVisitor.java:37) at org.jacoco.core.internal.flow.ClassProbesVisitor.<init>(ClassProbesVisitor.java:27) at org.jacoco.core.internal.analysis.ClassAnalyzer.<init>(ClassAnalyzer.java:47) at org.jacoco.core.analysis.Analyzer$1.<init>(Analyzer.java:90) at org.jacoco.core.analysis.Analyzer.createAnalyzingVisitor(Analyzer.java:87) at org.jacoco.core.analysis.Analyzer.analyzeClass(Analyzer.java:105) at org.jacoco.core.analysis.Analyzer.analyzeClass(Analyzer.java:142) ... 17 more Finished: FAILURE Similar stacktraces can be found across our other projects. I've updated the jacoco plugin within the project to the latest 0.7.1 with no change. The build itself is successful - it's just the publishing of the report that fails.
    via by James Green,
  • The Jenkins configuration for Jacoco is using default values. Here is the error message: [JaCoCo plugin] Collecting JaCoCo coverage data... [JaCoCo plugin] **/**.exec;**/classes;**/src/main/java; locations are configured [JaCoCo plugin] Number of found exec files: 1 [JaCoCo plugin] Saving matched execfiles: /share/pub/build/projects/hudson/workspace/d4-aces-classifier/target/jacoco.exec [JaCoCo plugin] Saving matched class directories: /share/pub/build/projects/hudson/workspace/d4-aces-classifier/target/classes [JaCoCo plugin] Saving matched source directories: /share/pub/build/projects/hudson/workspace/d4-aces-classifier/src/main/java [JaCoCo plugin] Loading inclusions files.. [JaCoCo plugin] inclusions: [] [JaCoCo plugin] exclusions: [] ERROR: Publisher hudson.plugins.jacoco.JacocoPublisher aborted due to exception java.io.IOException: Error while analyzing class /share/pub/build/hudson/jobs/d4-aces-classifier/builds/2014-06-25_13-18-52/jacoco/classes/com/proofpoint/d4/aces/classifier/Attribute.class. at org.jacoco.core.analysis.Analyzer.analyzerError(Analyzer.java:150) at org.jacoco.core.analysis.Analyzer.analyzeClass(Analyzer.java:144) at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:175) at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:208) at hudson.plugins.jacoco.ExecutionFileLoader.analyzeStructure(ExecutionFileLoader.java:130) at hudson.plugins.jacoco.ExecutionFileLoader.loadBundleCoverage(ExecutionFileLoader.java:137) at hudson.plugins.jacoco.JacocoReportDir.parse(JacocoReportDir.java:102) at hudson.plugins.jacoco.JacocoBuildAction.loadRatios(JacocoBuildAction.java:291) at hudson.plugins.jacoco.JacocoBuildAction.load(JacocoBuildAction.java:273) at hudson.plugins.jacoco.JacocoPublisher.perform(JacocoPublisher.java:371) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:776) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:725) at hudson.model.Run.execute(Run.java:1709) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231) Caused by: java.lang.IllegalArgumentException at org.objectweb.asm.ClassVisitor.<init>(Unknown Source) at org.jacoco.core.internal.flow.ClassProbesVisitor.<init>(ClassProbesVisitor.java:37) at org.jacoco.core.internal.flow.ClassProbesVisitor.<init>(ClassProbesVisitor.java:27) at org.jacoco.core.internal.analysis.ClassAnalyzer.<init>(ClassAnalyzer.java:47) at org.jacoco.core.analysis.Analyzer$1.<init>(Analyzer.java:90) at org.jacoco.core.analysis.Analyzer.createAnalyzingVisitor(Analyzer.java:87) at org.jacoco.core.analysis.Analyzer.analyzeClass(Analyzer.java:105) at org.jacoco.core.analysis.Analyzer.analyzeClass(Analyzer.java:142) ... 17 more Build did not succeed and the project is configured to only push after a successful build, so no pushing will occur. Finished: FAILURE
    via by wgracelee,
    • java.lang.IllegalArgumentException at org.objectweb.asm.ClassVisitor.<init>(Unknown Source) at org.objectweb.asm.ClassVisitor.<init>(Unknown Source) at org.eclipse.jetty.annotations.AnnotationParser$MyClassVisitor.<init>(AnnotationParser.java:457) at org.eclipse.jetty.annotations.AnnotationParser.scanClass(AnnotationParser.java:1004) at org.eclipse.jetty.annotations.AnnotationParser.parseJarEntry(AnnotationParser.java:984) at org.eclipse.jetty.annotations.AnnotationParser.parseJar(AnnotationParser.java:933) at org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:851) at org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call(AnnotationConfiguration.java:163) at org.eclipse.jetty.annotations.AnnotationConfiguration$1.run(AnnotationConfiguration.java:546) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589) at java.lang.Thread.run(Thread.java:745)
    No Bugmate found.