You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@creadur.apache.org by "Dennis Lundberg (JIRA)" <ji...@apache.org> on 2014/09/07 19:03:28 UTC

[jira] [Commented] (WHISKER-13) Error during site generation with Java8

    [ https://issues.apache.org/jira/browse/WHISKER-13?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14124970#comment-14124970 ] 

Dennis Lundberg commented on WHISKER-13:
----------------------------------------

Now that we have a Jenkins job that builds the site using the latest Java 8, another problem with the site build has been found. In the log it looks like this:

{noformat}
[INFO] Generating "FindBugs" report             --- findbugs-maven-plugin:2.5.5:findbugs
[INFO] Locale is en
[INFO] Fork Value is true
     [java] The following errors occurred during analysis:
     [java]   Unable to get XClass for java/lang/StringBuilder
     [java]     java.lang.ArrayIndexOutOfBoundsException: 5747
     [java]       At org.objectweb.asm.ClassReader.readClass(Unknown Source)
     [java]       At org.objectweb.asm.ClassReader.accept(Unknown Source)
     [java]       At edu.umd.cs.findbugs.asm.FBClassReader.accept(FBClassReader.java:44)
     [java]       At org.objectweb.asm.ClassReader.accept(Unknown Source)
     [java]       At edu.umd.cs.findbugs.classfile.engine.ClassParserUsingASM.parse(ClassParserUsingASM.java:110)
     [java]       At edu.umd.cs.findbugs.classfile.engine.ClassParserUsingASM.parse(ClassParserUsingASM.java:587)
     [java]       At edu.umd.cs.findbugs.classfile.engine.ClassInfoAnalysisEngine.analyze(ClassInfoAnalysisEngine.java:76)
     [java]       At edu.umd.cs.findbugs.classfile.engine.ClassInfoAnalysisEngine.analyze(ClassInfoAnalysisEngine.java:38)
     [java]       At edu.umd.cs.findbugs.classfile.impl.AnalysisCache.getClassAnalysis(AnalysisCache.java:268)
     [java]       At edu.umd.cs.findbugs.ba.XFactory.getXClass(XFactory.java:652)
     [java]       At edu.umd.cs.findbugs.ba.ch.Subtypes2.addInheritanceEdge(Subtypes2.java:1260)
     [java]       At edu.umd.cs.findbugs.ba.ch.Subtypes2.addSupertypeEdges(Subtypes2.java:1233)
     [java]       At edu.umd.cs.findbugs.ba.ch.Subtypes2.addClassAndGetClassVertex(Subtypes2.java:275)
     [java]       At edu.umd.cs.findbugs.ba.ch.Subtypes2.addClass(Subtypes2.java:244)
     [java]       At edu.umd.cs.findbugs.ba.AnalysisContext.setAppClassList(AnalysisContext.java:941)
     [java]       At edu.umd.cs.findbugs.FindBugs2.setAppClassList(FindBugs2.java:997)
     [java]       At edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:225)
     [java]       At edu.umd.cs.findbugs.FindBugs.runMain(FindBugs.java:393)
     [java]       At edu.umd.cs.findbugs.FindBugs2.main(FindBugs2.java:1317)
{noformat}

This is most likely due to ASM, which is a common problem with Java 8.

> Error during site generation with Java8
> ---------------------------------------
>
>                 Key: WHISKER-13
>                 URL: https://issues.apache.org/jira/browse/WHISKER-13
>             Project: Apache Whisker
>          Issue Type: Bug
>    Affects Versions: 0.2
>            Reporter: Philipp Ottlinger
>            Assignee: Dennis Lundberg
>             Fix For: 0.2
>
>
> The compiler complains that the generated HelpMojo produces invalid Javadoc. This fails the site-builds.
> It's not really clear why we get these build errors since 
>   https://jira.codehaus.org/browse/MPLUGIN-244 
>   is solved in the version we are using (3.3)
> Explore what needs to be updated since we do not see this problem in RAT.
> The errors are:
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.4:site (default-cli) on project apache-whisker: Error generating maven-javadoc-plugin:2.9.1:aggregate:
> [ERROR] Exit code: 1 - /apache-whisker-trunk/apache-whisker-plugin4maven/target/generated-sources/plugin/org/apache/creadur/whisker/plugin/maven/HelpMojo.java:24: error: self-closing element not allowed
> [ERROR] * Display help information on apache-whisker-plugin4maven.<br/>
> [ERROR] ^
> [ERROR] /apache-whisker-trunk/apache-whisker-plugin4maven/target/generated-sources/plugin/org/apache/creadur/whisker/plugin/maven/HelpMojo.java:26: warning: no description for @author
> [ERROR] * @author
> [ERROR] ^
> [ERROR] /apache-whisker-trunk/apache-whisker-plugin4maven/target/generated-sources/plugin/org/apache/creadur/whisker/plugin/maven/HelpMojo.java:27: warning: no description for @version
> [ERROR] * @version
> [ERROR] ^
> [ERROR]
> [ERROR] Command line was: /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/bin/javadoc @options @packages
> [ERROR]
> [ERROR] Refer to the generated Javadoc files in '/apache-whisker-trunk/target/site/apidocs' dir.
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> {noformat}
> when
> {noformat}
> mvn -Prat site:site 
> {noformat}
> is run.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)