2016-06-30 100 views
1

我正在使用sonarQube4.5.7版本與JDK 1.8版本。目前運行時出現此錯誤項目無法執行Findbugs:java.lang.ArrayIndexOutOfBoundsException

mvn sonar:sonar 

命令。任何人都可以建議我如何解決這個錯誤。

日誌是:

Unable to get XClass for java/lang/StringBuilder 
java.lang.ArrayIndexOutOfBoundsException: 26721 
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 org.sonar.plugins.findbugs.FindbugsExecutor$FindbugsTask.call(FindbugsExecutor.java:207) 
At java.util.concurrent.FutureTask.run(FutureTask.java:266) 
At java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
At java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
At java.lang.Thread.run(Thread.java:745) 

回答

2

你可能已經打蟲here。嘗試使用jdk 7或升級findbug pluguin。

+1

是的。有效。它與FindBugs的一個bug –

相關問題