Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-13671

Fix ClassFormatException in trunk build.

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha2
    • 3.0.0-alpha2
    • build
    • None

    Description

      The maven-project-info-reports-plugin version 2.7 depends on maven-shared-jar-1.1, which uses bcel 5.2. This does not work well with the new lamda expression. The 2.9 depends on maven-shared-jar-1.2, which works around this problem by using the custom release of bcel 6.0.

      Attachments

        1. HADOOP-13671.patch
          0.8 kB
          Kihwal Lee

        Activity

          kihwal Kihwal Lee created issue -
          kihwal Kihwal Lee added a comment -

          The current trunk build has this:

          [WARNING] Unable to process class org/apache/hadoop/hdfs/StripeReader.class in 
          JarAnalyzer File /home1/kihwal/devel/apache/hadoop/hadoop-hdfs-project/
          hadoop-hdfs-client/target/hadoop-hdfs-client-3.0.0-alpha2-SNAPSHOT.jar
          org.apache.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 18
              at org.apache.bcel.classfile.Constant.readConstant(Constant.java:146)
              at org.apache.bcel.classfile.ConstantPool.<init>(ConstantPool.java:67)
              at org.apache.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:222)
              at org.apache.bcel.classfile.ClassParser.parse(ClassParser.java:136)
              at org.apache.maven.shared.jar.classes.JarClassesAnalysis.analyze(JarClassesAnalysis.java:92)
          ...
          
          kihwal Kihwal Lee added a comment - The current trunk build has this: [WARNING] Unable to process class org/apache/hadoop/hdfs/StripeReader.class in JarAnalyzer File /home1/kihwal/devel/apache/hadoop/hadoop-hdfs-project/ hadoop-hdfs-client/target/hadoop-hdfs-client-3.0.0-alpha2-SNAPSHOT.jar org.apache.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 18 at org.apache.bcel.classfile.Constant.readConstant(Constant.java:146) at org.apache.bcel.classfile.ConstantPool.<init>(ConstantPool.java:67) at org.apache.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:222) at org.apache.bcel.classfile.ClassParser.parse(ClassParser.java:136) at org.apache.maven.shared.jar.classes.JarClassesAnalysis.analyze(JarClassesAnalysis.java:92) ...
          kihwal Kihwal Lee made changes -
          Field Original Value New Value
          Assignee Kihwal Lee [ kihwal ]
          kihwal Kihwal Lee made changes -
          Target Version/s 3.0.0-alpha2 [ 12337975 ]
          kihwal Kihwal Lee made changes -
          Attachment HADOOP-13671.patch [ 12831123 ]
          kihwal Kihwal Lee made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          kihwal Kihwal Lee made changes -
          Summary Fix ClassFormatException during trunk build. Fix ClassFormatException in trunk build.
          hadoopqa Hadoop QA added a comment -
          -1 overall



          Vote Subsystem Runtime Comment
          0 reexec 0m 21s Docker mode activated.
          +1 @author 0m 0s The patch does not contain any @author tags.
          -1 test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
          +1 mvninstall 7m 51s trunk passed
          +1 compile 0m 9s trunk passed
          +1 mvnsite 0m 12s trunk passed
          +1 mvneclipse 0m 10s trunk passed
          +1 javadoc 0m 8s trunk passed
          +1 mvninstall 0m 7s the patch passed
          +1 compile 0m 6s the patch passed
          +1 javac 0m 6s the patch passed
          +1 mvnsite 0m 8s the patch passed
          +1 mvneclipse 0m 8s the patch passed
          +1 whitespace 0m 0s The patch has no whitespace issues.
          +1 xml 0m 3s The patch has no ill-formed XML file.
          +1 javadoc 0m 6s the patch passed
          +1 unit 0m 6s hadoop-project in the patch passed.
          +1 asflicense 0m 17s The patch does not generate ASF License warnings.
          10m 27s



          Subsystem Report/Notes
          Docker Image:yetus/hadoop:9560f25
          JIRA Issue HADOOP-13671
          JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12831123/HADOOP-13671.patch
          Optional Tests asflicense compile javac javadoc mvninstall mvnsite unit xml
          uname Linux 49008caaf53f 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
          Build tool maven
          Personality /testptch/hadoop/patchprocess/precommit/personality/provided.sh
          git revision trunk / 0670149
          Default Java 1.8.0_101
          Test Results https://builds.apache.org/job/PreCommit-HADOOP-Build/10633/testReport/
          modules C: hadoop-project U: hadoop-project
          Console output https://builds.apache.org/job/PreCommit-HADOOP-Build/10633/console
          Powered by Apache Yetus 0.4.0-SNAPSHOT http://yetus.apache.org

          This message was automatically generated.

          hadoopqa Hadoop QA added a comment - -1 overall Vote Subsystem Runtime Comment 0 reexec 0m 21s Docker mode activated. +1 @author 0m 0s The patch does not contain any @author tags. -1 test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. +1 mvninstall 7m 51s trunk passed +1 compile 0m 9s trunk passed +1 mvnsite 0m 12s trunk passed +1 mvneclipse 0m 10s trunk passed +1 javadoc 0m 8s trunk passed +1 mvninstall 0m 7s the patch passed +1 compile 0m 6s the patch passed +1 javac 0m 6s the patch passed +1 mvnsite 0m 8s the patch passed +1 mvneclipse 0m 8s the patch passed +1 whitespace 0m 0s The patch has no whitespace issues. +1 xml 0m 3s The patch has no ill-formed XML file. +1 javadoc 0m 6s the patch passed +1 unit 0m 6s hadoop-project in the patch passed. +1 asflicense 0m 17s The patch does not generate ASF License warnings. 10m 27s Subsystem Report/Notes Docker Image:yetus/hadoop:9560f25 JIRA Issue HADOOP-13671 JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12831123/HADOOP-13671.patch Optional Tests asflicense compile javac javadoc mvninstall mvnsite unit xml uname Linux 49008caaf53f 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux Build tool maven Personality /testptch/hadoop/patchprocess/precommit/personality/provided.sh git revision trunk / 0670149 Default Java 1.8.0_101 Test Results https://builds.apache.org/job/PreCommit-HADOOP-Build/10633/testReport/ modules C: hadoop-project U: hadoop-project Console output https://builds.apache.org/job/PreCommit-HADOOP-Build/10633/console Powered by Apache Yetus 0.4.0-SNAPSHOT http://yetus.apache.org This message was automatically generated.
          kihwal Kihwal Lee added a comment -

          Verified that the update pulls the new version of maven-shared-jar during build and the warning no longer appears.

          Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-shared-jar/1.2/maven-shared-jar-1.2.pom (5 KB at 134.6 KB/sec)
          
          kihwal Kihwal Lee added a comment - Verified that the update pulls the new version of maven-shared-jar during build and the warning no longer appears. Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-shared-jar/1.2/maven-shared-jar-1.2.pom (5 KB at 134.6 KB/sec)
          stevel@apache.org Steve Loughran added a comment -

          +1

          stevel@apache.org Steve Loughran added a comment - +1
          epayne Eric Payne added a comment -

          Thanks kihwal. +1
          Committing to trunk.

          epayne Eric Payne added a comment - Thanks kihwal . +1 Committing to trunk.
          kihwal Kihwal Lee added a comment -

          Thanks, Steve and Eric for reviews.

          kihwal Kihwal Lee added a comment - Thanks, Steve and Eric for reviews.
          kihwal Kihwal Lee made changes -
          Fix Version/s 3.0.0-alpha2 [ 12337975 ]
          Resolution Fixed [ 1 ]
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          hudson Hudson added a comment -

          SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #10520 (See https://builds.apache.org/job/Hadoop-trunk-Commit/10520/)
          HADOOP-13671. Fix ClassFormatException in trunk build. Contributed by (kihwal: rev d6afcf364c3d5a8bdb7dbd99626fab70fe6dc47a)

          • (edit) hadoop-project/pom.xml
          hudson Hudson added a comment - SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #10520 (See https://builds.apache.org/job/Hadoop-trunk-Commit/10520/ ) HADOOP-13671 . Fix ClassFormatException in trunk build. Contributed by (kihwal: rev d6afcf364c3d5a8bdb7dbd99626fab70fe6dc47a) (edit) hadoop-project/pom.xml
          stevel@apache.org Steve Loughran made changes -
          Component/s build [ 12311543 ]
          Affects Version/s 3.0.0-alpha2 [ 12337975 ]

          People

            kihwal Kihwal Lee
            kihwal Kihwal Lee
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: