XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      $ mvn javadoc:javadoc -pl hadoop-hdfs-project/hadoop-hdfs
      ...
      [ERROR] javadoc: error - An internal exception has occurred.
      [ERROR]         (com.sun.tools.javac.code.ClassFinder$BadClassFile: bad class file: /hadoop/hadoop-hdfs-project/hadoop-hdfs-client/target/hadoop-hdfs-client-3.3.0-SNAPSHOT.jar(/org/apache/hadoop/hdfs/web/WebHdfsFileSystem$13.class)
      [ERROR]   class file contains malformed variable arity method: WebHdfsFileSystem$13(org.apache.hadoop.hdfs.web.WebHdfsFileSystem,org.apache.hadoop.hdfs.web.resources.HttpOpParam.Op,org.apache.hadoop.fs.Path,org.apache.hadoop.hdfs.web.resources.Param[],java.net.URI,org.apache.hadoop.fs.Path)
      [ERROR]   Please remove or make sure it appears in the correct subdirectory of the classpath.)
      [ERROR] Please file a bug against the javadoc tool via the Java bug reporting page
      [ERROR] (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com)
      [ERROR] for duplicates. Include error messages and the following diagnostic in your report. Thank you.
      [ERROR] com.sun.tools.javac.code.ClassFinder$BadClassFile: bad class file: /hadoop/hadoop-hdfs-project/hadoop-hdfs-client/target/hadoop-hdfs-client-3.3.0-SNAPSHOT.jar(/org/apache/hadoop/hdfs/web/WebHdfsFileSystem$13.class)
      [ERROR]   class file contains malformed variable arity method: WebHdfsFileSystem$13(org.apache.hadoop.hdfs.web.WebHdfsFileSystem,org.apache.hadoop.hdfs.web.resources.HttpOpParam.Op,org.apache.hadoop.fs.Path,org.apache.hadoop.hdfs.web.resources.Param[],java.net.URI,org.apache.hadoop.fs.Path)
      [ERROR]   Please remove or make sure it appears in the correct subdirectory of the classpath.
      [ERROR]         at jdk.compiler/com.sun.tools.javac.jvm.ClassReader.badClassFile(ClassReader.java:281)
      [ERROR]         at jdk.compiler/com.sun.tools.javac.jvm.ClassReader.readMethod(ClassReader.java:2413)
      [ERROR]         at jdk.compiler/com.sun.tools.javac.jvm.ClassReader.readClass(ClassReader.java:2654)
      [ERROR]         at jdk.compiler/com.sun.tools.javac.jvm.ClassReader.readClassBuffer(ClassReader.java:2718)
      [ERROR]         at jdk.compiler/com.sun.tools.javac.jvm.ClassReader.readClassFile(ClassReader.java:2731)
      [ERROR]         at jdk.compiler/com.sun.tools.javac.code.ClassFinder.fillIn(ClassFinder.java:352)
      [ERROR]         at jdk.compiler/com.sun.tools.javac.code.ClassFinder.complete(ClassFinder.java:284)
      [ERROR]         at jdk.compiler/com.sun.tools.javac.code.Symbol.complete(Symbol.java:633)
      [ERROR]         at jdk.compiler/com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1308)
      [ERROR]         at jdk.compiler/com.sun.tools.javac.code.Symbol$ClassSymbol.flags(Symbol.java:1242)
      [ERROR]         at jdk.compiler/com.sun.tools.javac.code.Symbol$TypeSymbol.getEnclosedElements(Symbol.java:800)
      [ERROR]         at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.util.Utils.getItems0(Utils.java:2404)
      [ERROR]         at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.util.Utils.getItems0(Utils.java:2399)
      [ERROR]         at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.util.Utils.recursiveGetItems(Utils.java:2387)
      [ERROR]         at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.util.Utils$17.visitPackage(Utils.java:2372)
      [ERROR]         at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.util.Utils$17.visitPackage(Utils.java:2368)
      [ERROR]         at jdk.compiler/com.sun.tools.javac.code.Symbol$PackageSymbol.accept(Symbol.java:1160)
      [ERROR]         at java.compiler@10.0.2/javax.lang.model.util.AbstractElementVisitor6.visit(AbstractElementVisitor6.java:106)
      [ERROR]         at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.util.Utils.getItems(Utils.java:2381)
      [ERROR]         at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.util.Utils.getClasses(Utils.java:2121)
      [ERROR]         at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.util.Utils.getAllClasses(Utils.java:2294)
      [ERROR]         at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.AbstractDoclet.generateClassFiles(AbstractDoclet.java:277)
      [ERROR]         at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:211)
      [ERROR]         at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.AbstractDoclet.run(AbstractDoclet.java:117)
      [ERROR]         at jdk.javadoc/jdk.javadoc.doclet.StandardDoclet.run(StandardDoclet.java:72)
      [ERROR]         at jdk.javadoc/jdk.javadoc.internal.tool.Start.parseAndExecute(Start.java:581)
      [ERROR]         at jdk.javadoc/jdk.javadoc.internal.tool.Start.begin(Start.java:430)
      [ERROR]         at jdk.javadoc/jdk.javadoc.internal.tool.Start.begin(Start.java:343)
      [ERROR]         at jdk.javadoc/jdk.javadoc.internal.tool.Main.execute(Main.java:63)
      [ERROR]         at jdk.javadoc/jdk.javadoc.internal.tool.Main.main(Main.java:52)
      [ERROR]
      [ERROR] Command line was: /usr/java/jdk-10.0.2/bin/javadoc -J-Xmx768m @options @packages
      
      

      The cause of this error is a JDK bug that has been fixed in JDK 11.
      https://bugs.openjdk.java.net/browse/JDK-8187950

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tasanuma Takanobu Asanuma
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: