Uploaded image for project: 'Red Hat CodeReady Studio (devstudio)'
  1. Red Hat CodeReady Studio (devstudio)
  2. JBDS-3053

FindBugs 2.0.3 fails with java 8

XMLWordPrintable

      The current FindBugs version does not support java 8.
      When you try to analyze a project with java compiler set to java 8, you will get errors:

      An internal error occurred during: "Finding bugs in jboss-as-kitchensink-html5-mobile...".
      45461
      

      This is in the workspace log:

      !ENTRY edu.umd.cs.findbugs.plugin.eclipse 4 4 2014-05-30 12:57:33.599
      !MESSAGE The following errors occurred during FindBugs analysis:
      !SUBENTRY 1 edu.umd.cs.findbugs.plugin.eclipse 4 0 2014-05-30 12:57:33.599
      !MESSAGE Unable to get XClass for java/lang/StringBuilder
      !STACK 0
      java.lang.ArrayIndexOutOfBoundsException: 5747
      	at org.objectweb.asm.ClassReader.readClass(Unknown Source)
      	at org.objectweb.asm.ClassReader.accept(Unknown Source)
      	at edu.umd.cs.findbugs.asm.FBClassReader.accept(FBClassReader.java:44)
      	at org.objectweb.asm.ClassReader.accept(Unknown Source)
      	at edu.umd.cs.findbugs.classfile.engine.ClassParserUsingASM.parse(ClassParserUsingASM.java:110)
      	at edu.umd.cs.findbugs.classfile.engine.ClassParserUsingASM.parse(ClassParserUsingASM.java:587)
      	at edu.umd.cs.findbugs.classfile.engine.ClassInfoAnalysisEngine.analyze(ClassInfoAnalysisEngine.java:76)
      	at edu.umd.cs.findbugs.classfile.engine.ClassInfoAnalysisEngine.analyze(ClassInfoAnalysisEngine.java:38)
      	at edu.umd.cs.findbugs.classfile.impl.AnalysisCache.getClassAnalysis(AnalysisCache.java:268)
      	at edu.umd.cs.findbugs.ba.XFactory.getXClass(XFactory.java:652)
      	at edu.umd.cs.findbugs.ba.ch.Subtypes2.addInheritanceEdge(Subtypes2.java:1260)
      	at edu.umd.cs.findbugs.ba.ch.Subtypes2.addSupertypeEdges(Subtypes2.java:1233)
      	at edu.umd.cs.findbugs.ba.ch.Subtypes2.addClassAndGetClassVertex(Subtypes2.java:275)
      	at edu.umd.cs.findbugs.ba.ch.Subtypes2.addClass(Subtypes2.java:244)
      	at edu.umd.cs.findbugs.ba.AnalysisContext.setAppClassList(AnalysisContext.java:941)
      	at edu.umd.cs.findbugs.FindBugs2.setAppClassList(FindBugs2.java:997)
      	at edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:225)
      	at de.tobject.findbugs.builder.FindBugsWorker.runFindBugs(FindBugsWorker.java:321)
      	at de.tobject.findbugs.builder.FindBugsWorker.work(FindBugsWorker.java:225)
      	at de.tobject.findbugs.actions.FindBugsAction$StartedFromViewJob.runWithProgress(FindBugsAction.java:271)
      	at de.tobject.findbugs.FindBugsJob.run(FindBugsJob.java:135)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      !SUBENTRY 1 edu.umd.cs.findbugs.plugin.eclipse 4 0 2014-05-30 12:57:33.599
      !MESSAGE Unable to get XClass for java/util/regex/Pattern
      !STACK 0
      java.lang.ArrayIndexOutOfBoundsException: 10247
      	at org.objectweb.asm.ClassReader.readUTF8(Unknown Source)
      	at org.objectweb.asm.ClassReader.readClass(Unknown Source)
      	at org.objectweb.asm.ClassReader.accept(Unknown Source)
      	at edu.umd.cs.findbugs.asm.FBClassReader.accept(FBClassReader.java:44)
      	at org.objectweb.asm.ClassReader.accept(Unknown Source)
      	at edu.umd.cs.findbugs.classfile.engine.ClassParserUsingASM.parse(ClassParserUsingASM.java:110)
      	at edu.umd.cs.findbugs.classfile.engine.ClassParserUsingASM.parse(ClassParserUsingASM.java:587)
      	at edu.umd.cs.findbugs.classfile.engine.ClassInfoAnalysisEngine.analyze(ClassInfoAnalysisEngine.java:76)
      	at edu.umd.cs.findbugs.classfile.engine.ClassInfoAnalysisEngine.analyze(ClassInfoAnalysisEngine.java:38)
      	at edu.umd.cs.findbugs.classfile.impl.AnalysisCache.getClassAnalysis(AnalysisCache.java:268)
      	at edu.umd.cs.findbugs.ba.XFactory.getXClass(XFactory.java:652)
      	at edu.umd.cs.findbugs.ba.AnalysisContext.setAppClassList(AnalysisContext.java:932)
      	at edu.umd.cs.findbugs.FindBugs2.setAppClassList(FindBugs2.java:997)
      	at edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:225)
      	at de.tobject.findbugs.builder.FindBugsWorker.runFindBugs(FindBugsWorker.java:321)
      	at de.tobject.findbugs.builder.FindBugsWorker.work(FindBugsWorker.java:225)
      	at de.tobject.findbugs.actions.FindBugsAction$StartedFromViewJob.runWithProgress(FindBugsAction.java:271)
      	at de.tobject.findbugs.FindBugsJob.run(FindBugsJob.java:135)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      !SUBENTRY 1 edu.umd.cs.findbugs.plugin.eclipse 4 0 2014-05-30 12:57:33.599
      !MESSAGE Unable to get XClass for java/lang/String
      !STACK 0
      java.lang.ArrayIndexOutOfBoundsException: 5747
      	at org.objectweb.asm.ClassReader.readClass(Unknown Source)
      	at org.objectweb.asm.ClassReader.accept(Unknown Source)
      	at edu.umd.cs.findbugs.asm.FBClassReader.accept(FBClassReader.java:44)
      	at org.objectweb.asm.ClassReader.accept(Unknown Source)
      	at edu.umd.cs.findbugs.classfile.engine.ClassParserUsingASM.parse(ClassParserUsingASM.java:110)
      	at edu.umd.cs.findbugs.classfile.engine.ClassParserUsingASM.parse(ClassParserUsingASM.java:587)
      	at edu.umd.cs.findbugs.classfile.engine.ClassInfoAnalysisEngine.analyze(ClassInfoAnalysisEngine.java:76)
      	at edu.umd.cs.findbugs.classfile.engine.ClassInfoAnalysisEngine.analyze(ClassInfoAnalysisEngine.java:38)
      	at edu.umd.cs.findbugs.classfile.impl.AnalysisCache.getClassAnalysis(AnalysisCache.java:268)
      	at edu.umd.cs.findbugs.ba.XFactory.getXClass(XFactory.java:652)
      	at edu.umd.cs.findbugs.ba.ch.Subtypes2.addInheritanceEdge(Subtypes2.java:1260)
      	at edu.umd.cs.findbugs.ba.ch.Subtypes2.addSupertypeEdges(Subtypes2.java:1233)
      	at edu.umd.cs.findbugs.ba.ch.Subtypes2.addClassAndGetClassVertex(Subtypes2.java:275)
      	at edu.umd.cs.findbugs.ba.ch.Subtypes2.addClass(Subtypes2.java:244)
      	at edu.umd.cs.findbugs.ba.AnalysisContext.setAppClassList(AnalysisContext.java:941)
      	at edu.umd.cs.findbugs.FindBugs2.setAppClassList(FindBugs2.java:997)
      	at edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:225)
      	at de.tobject.findbugs.builder.FindBugsWorker.runFindBugs(FindBugsWorker.java:321)
      	at de.tobject.findbugs.builder.FindBugsWorker.work(FindBugsWorker.java:225)
      	at de.tobject.findbugs.actions.FindBugsAction$StartedFromViewJob.runWithProgress(FindBugsAction.java:271)
      	at de.tobject.findbugs.FindBugsJob.run(FindBugsJob.java:135)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      !SUBENTRY 1 edu.umd.cs.findbugs.plugin.eclipse 4 0 2014-05-30 12:57:33.599
      !MESSAGE Unable to get XClass for java/lang/CharSequence
      !STACK 0
      java.lang.ArrayIndexOutOfBoundsException: 5747
      	at org.objectweb.asm.ClassReader.readClass(Unknown Source)
      	at org.objectweb.asm.ClassReader.accept(Unknown Source)
      	at edu.umd.cs.findbugs.asm.FBClassReader.accept(FBClassReader.java:44)
      	at org.objectweb.asm.ClassReader.accept(Unknown Source)
      	at edu.umd.cs.findbugs.classfile.engine.ClassParserUsingASM.parse(ClassParserUsingASM.java:110)
      	at edu.umd.cs.findbugs.classfile.engine.ClassParserUsingASM.parse(ClassParserUsingASM.java:587)
      	at edu.umd.cs.findbugs.classfile.engine.ClassInfoAnalysisEngine.analyze(ClassInfoAnalysisEngine.java:76)
      	at edu.umd.cs.findbugs.classfile.engine.ClassInfoAnalysisEngine.analyze(ClassInfoAnalysisEngine.java:38)
      	at edu.umd.cs.findbugs.classfile.impl.AnalysisCache.getClassAnalysis(AnalysisCache.java:268)
      	at edu.umd.cs.findbugs.ba.XFactory.getXClass(XFactory.java:652)
      	at edu.umd.cs.findbugs.ba.ch.Subtypes2.addInheritanceEdge(Subtypes2.java:1260)
      	at edu.umd.cs.findbugs.ba.ch.Subtypes2.addSupertypeEdges(Subtypes2.java:1233)
      	at edu.umd.cs.findbugs.ba.ch.Subtypes2.addClassAndGetClassVertex(Subtypes2.java:275)
      	at edu.umd.cs.findbugs.ba.ch.Subtypes2.addClass(Subtypes2.java:244)
      	at edu.umd.cs.findbugs.ba.AnalysisContext.setAppClassList(AnalysisContext.java:941)
      	at edu.umd.cs.findbugs.FindBugs2.setAppClassList(FindBugs2.java:997)
      	at edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:225)
      	at de.tobject.findbugs.builder.FindBugsWorker.runFindBugs(FindBugsWorker.java:321)
      	at de.tobject.findbugs.builder.FindBugsWorker.work(FindBugsWorker.java:225)
      	at de.tobject.findbugs.actions.FindBugsAction$StartedFromViewJob.runWithProgress(FindBugsAction.java:271)
      	at de.tobject.findbugs.FindBugsJob.run(FindBugsJob.java:135)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      !SUBENTRY 1 edu.umd.cs.findbugs.plugin.eclipse 4 0 2014-05-30 12:57:33.599
      !MESSAGE Unable to get XClass for java/lang/Class
      !STACK 0
      java.lang.ArrayIndexOutOfBoundsException: 207
      	at org.objectweb.asm.ClassReader.a(Unknown Source)
      	at org.objectweb.asm.ClassReader.readUTF8(Unknown Source)
      	at org.objectweb.asm.ClassReader.readClass(Unknown Source)
      	at org.objectweb.asm.ClassReader.accept(Unknown Source)
      	at edu.umd.cs.findbugs.asm.FBClassReader.accept(FBClassReader.java:44)
      	at org.objectweb.asm.ClassReader.accept(Unknown Source)
      	at edu.umd.cs.findbugs.classfile.engine.ClassParserUsingASM.parse(ClassParserUsingASM.java:110)
      	at edu.umd.cs.findbugs.classfile.engine.ClassParserUsingASM.parse(ClassParserUsingASM.java:587)
      	at edu.umd.cs.findbugs.classfile.engine.ClassInfoAnalysisEngine.analyze(ClassInfoAnalysisEngine.java:76)
      	at edu.umd.cs.findbugs.classfile.engine.ClassInfoAnalysisEngine.analyze(ClassInfoAnalysisEngine.java:38)
      	at edu.umd.cs.findbugs.classfile.impl.AnalysisCache.getClassAnalysis(AnalysisCache.java:268)
      	at edu.umd.cs.findbugs.ba.XFactory.getXClass(XFactory.java:652)
      	at edu.umd.cs.findbugs.ba.ch.Subtypes2.addInheritanceEdge(Subtypes2.java:1260)
      	at edu.umd.cs.findbugs.ba.ch.Subtypes2.addSupertypeEdges(Subtypes2.java:1233)
      	at edu.umd.cs.findbugs.ba.ch.Subtypes2.addClassAndGetClassVertex(Subtypes2.java:275)
      	at edu.umd.cs.findbugs.ba.ch.Subtypes2.addClass(Subtypes2.java:244)
      	at edu.umd.cs.findbugs.ba.AnalysisContext.setAppClassList(AnalysisContext.java:941)
      	at edu.umd.cs.findbugs.FindBugs2.setAppClassList(FindBugs2.java:997)
      	at edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:225)
      	at de.tobject.findbugs.builder.FindBugsWorker.runFindBugs(FindBugsWorker.java:321)
      	at de.tobject.findbugs.builder.FindBugsWorker.work(FindBugsWorker.java:225)
      	at de.tobject.findbugs.actions.FindBugsAction$StartedFromViewJob.runWithProgress(FindBugsAction.java:271)
      	at de.tobject.findbugs.FindBugsJob.run(FindBugsJob.java:135)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      !SUBENTRY 1 edu.umd.cs.findbugs.plugin.eclipse 4 0 2014-05-30 12:57:33.599
      !MESSAGE Couldn't get class info for java/util/regex/Pattern
      !STACK 0
      java.lang.ArrayIndexOutOfBoundsException: 10247
      	at org.objectweb.asm.ClassReader.readUTF8(Unknown Source)
      	at org.objectweb.asm.ClassReader.readClass(Unknown Source)
      	at org.objectweb.asm.ClassReader.accept(Unknown Source)
      	at edu.umd.cs.findbugs.asm.FBClassReader.accept(FBClassReader.java:44)
      	at org.objectweb.asm.ClassReader.accept(Unknown Source)
      	at edu.umd.cs.findbugs.classfile.engine.ClassParserUsingASM.parse(ClassParserUsingASM.java:110)
      	at edu.umd.cs.findbugs.classfile.engine.ClassParserUsingASM.parse(ClassParserUsingASM.java:587)
      	at edu.umd.cs.findbugs.classfile.engine.ClassInfoAnalysisEngine.analyze(ClassInfoAnalysisEngine.java:76)
      	at edu.umd.cs.findbugs.classfile.engine.ClassInfoAnalysisEngine.analyze(ClassInfoAnalysisEngine.java:38)
      	at edu.umd.cs.findbugs.classfile.impl.AnalysisCache.getClassAnalysis(AnalysisCache.java:268)
      	at edu.umd.cs.findbugs.ba.XFactory.getXClass(XFactory.java:652)
      	at edu.umd.cs.findbugs.ba.AnalysisContext.setAppClassList(AnalysisContext.java:932)
      	at edu.umd.cs.findbugs.FindBugs2.setAppClassList(FindBugs2.java:997)
      	at edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:225)
      	at de.tobject.findbugs.builder.FindBugsWorker.runFindBugs(FindBugsWorker.java:321)
      	at de.tobject.findbugs.builder.FindBugsWorker.work(FindBugsWorker.java:225)
      	at de.tobject.findbugs.actions.FindBugsAction$StartedFromViewJob.runWithProgress(FindBugsAction.java:271)
      	at de.tobject.findbugs.FindBugsJob.run(FindBugsJob.java:135)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      !SUBENTRY 1 edu.umd.cs.findbugs.plugin.eclipse 4 0 2014-05-30 12:57:33.600
      !MESSAGE Couldn't get class info for java/lang/CharSequence
      !STACK 0
      java.lang.ArrayIndexOutOfBoundsException: 5747
      	at org.objectweb.asm.ClassReader.readClass(Unknown Source)
      	at org.objectweb.asm.ClassReader.accept(Unknown Source)
      	at edu.umd.cs.findbugs.asm.FBClassReader.accept(FBClassReader.java:44)
      	at org.objectweb.asm.ClassReader.accept(Unknown Source)
      	at edu.umd.cs.findbugs.classfile.engine.ClassParserUsingASM.parse(ClassParserUsingASM.java:110)
      	at edu.umd.cs.findbugs.classfile.engine.ClassParserUsingASM.parse(ClassParserUsingASM.java:587)
      	at edu.umd.cs.findbugs.classfile.engine.ClassInfoAnalysisEngine.analyze(ClassInfoAnalysisEngine.java:76)
      	at edu.umd.cs.findbugs.classfile.engine.ClassInfoAnalysisEngine.analyze(ClassInfoAnalysisEngine.java:38)
      	at edu.umd.cs.findbugs.classfile.impl.AnalysisCache.getClassAnalysis(AnalysisCache.java:268)
      	at edu.umd.cs.findbugs.ba.XFactory.getXClass(XFactory.java:652)
      	at edu.umd.cs.findbugs.ba.ch.Subtypes2.addInheritanceEdge(Subtypes2.java:1260)
      	at edu.umd.cs.findbugs.ba.ch.Subtypes2.addSupertypeEdges(Subtypes2.java:1233)
      	at edu.umd.cs.findbugs.ba.ch.Subtypes2.addClassAndGetClassVertex(Subtypes2.java:275)
      	at edu.umd.cs.findbugs.ba.ch.Subtypes2.addClass(Subtypes2.java:244)
      	at edu.umd.cs.findbugs.ba.AnalysisContext.setAppClassList(AnalysisContext.java:941)
      	at edu.umd.cs.findbugs.FindBugs2.setAppClassList(FindBugs2.java:997)
      	at edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:225)
      	at de.tobject.findbugs.builder.FindBugsWorker.runFindBugs(FindBugsWorker.java:321)
      	at de.tobject.findbugs.builder.FindBugsWorker.work(FindBugsWorker.java:225)
      	at de.tobject.findbugs.actions.FindBugsAction$StartedFromViewJob.runWithProgress(FindBugsAction.java:271)
      	at de.tobject.findbugs.FindBugsJob.run(FindBugsJob.java:135)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      
      !ENTRY org.eclipse.core.jobs 4 2 2014-05-30 12:57:33.607
      !MESSAGE An internal error occurred during: "Finding bugs in jboss-as-kitchensink-html5-mobile...".
      !STACK 0
      java.lang.ArrayIndexOutOfBoundsException: 45461
      	at org.objectweb.asm.ClassReader.<init>(Unknown Source)
      	at org.objectweb.asm.ClassReader.<init>(Unknown Source)
      	at edu.umd.cs.findbugs.asm.FBClassReader.<init>(FBClassReader.java:35)
      	at edu.umd.cs.findbugs.classfile.engine.asm.ClassReaderAnalysisEngine.analyze(ClassReaderAnalysisEngine.java:47)
      	at edu.umd.cs.findbugs.classfile.engine.asm.ClassReaderAnalysisEngine.analyze(ClassReaderAnalysisEngine.java:34)
      	at edu.umd.cs.findbugs.classfile.impl.AnalysisCache.getClassAnalysis(AnalysisCache.java:268)
      	at edu.umd.cs.findbugs.classfile.engine.ClassInfoAnalysisEngine.analyze(ClassInfoAnalysisEngine.java:72)
      	at edu.umd.cs.findbugs.classfile.engine.ClassInfoAnalysisEngine.analyze(ClassInfoAnalysisEngine.java:38)
      	at edu.umd.cs.findbugs.classfile.impl.AnalysisCache.getClassAnalysis(AnalysisCache.java:268)
      	at edu.umd.cs.findbugs.ba.npe.TypeQualifierNullnessAnnotationDatabase.getXMethod(TypeQualifierNullnessAnnotationDatabase.java:363)
      	at edu.umd.cs.findbugs.ba.npe.TypeQualifierNullnessAnnotationDatabase.addMethodParameterAnnotation(TypeQualifierNullnessAnnotationDatabase.java:425)
      	at edu.umd.cs.findbugs.ba.DefaultNullnessAnnotations.addDefaultNullnessAnnotations(DefaultNullnessAnnotations.java:69)
      	at edu.umd.cs.findbugs.ba.npe.TypeQualifierNullnessAnnotationDatabase.loadAuxiliaryAnnotations(TypeQualifierNullnessAnnotationDatabase.java:460)
      	at edu.umd.cs.findbugs.ba.AnalysisContext.updateDatabases(AnalysisContext.java:962)
      	at edu.umd.cs.findbugs.FindBugs2.analyzeApplication(FindBugs2.java:1154)
      	at edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:282)
      	at de.tobject.findbugs.builder.FindBugsWorker.runFindBugs(FindBugsWorker.java:321)
      	at de.tobject.findbugs.builder.FindBugsWorker.work(FindBugsWorker.java:225)
      	at de.tobject.findbugs.actions.FindBugsAction$StartedFromViewJob.runWithProgress(FindBugsAction.java:271)
      	at de.tobject.findbugs.FindBugsJob.run(FindBugsJob.java:135)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      

      There is an upstream bug for this, fixed in 3.0.0.
      http://sourceforge.net/p/findbugs/bugs/1264/

      3.0.0 is available from the nightly update site, I'm not sure what their schedule is:
      http://findbugs.cs.umd.edu/eclipse-daily

              nickboldt Nick Boldt
              exd-mmalina Martin Malina
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: