Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-15344

ClassCastException when reports are created with maven-site-plugin

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • findbugs-plugin
    • None

      When enabling the Jenkins Findbugs plugin on a Maven job that uses the maven-site-plugin to generate the reports then the build fails with the root cause exception:
      java.lang.ClassCastException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory
      (cf. attachment for full stack-trace).

        1. test.zip
          3 kB
        2. jenkins.txt
          11 kB

          [JENKINS-15344] ClassCastException when reports are created with maven-site-plugin

          Thomas Zlika created issue -
          Thomas Zlika made changes -
          Link New: This issue is related to JENKINS-7666 [ JENKINS-7666 ]
          Thomas Zlika made changes -
          Environment New: The problem occurs at least on the following tested environments:
          - Jenkins 1.483 & 1.437 on both Windows and Linux
          - Multi-module Maven 3 project using Maven Findbugs plugin 2.5.2
          - JDK 1.7
          - It is not a slave build
          Thomas Zlika made changes -
          Environment Original: The problem occurs at least on the following tested environments:
          - Jenkins 1.483 & 1.437 on both Windows and Linux
          - Multi-module Maven 3 project using Maven Findbugs plugin 2.5.2
          - JDK 1.7
          - It is not a slave build
          New: The problem occurs at least on the following tested environments:
          - Jenkins 1.483 & 1.437 on both Windows and Linux
          - analysis-core plugin 1.47 and findbugs plugin 4.44
          - Multi-module Maven 3 project using Maven Findbugs plugin 2.5.2
          - JDK 1.7 or JRE1.6
          - Jenkins launched in standalone mode (java -jar jenkins.war) or deployed in a Tomcat server
          - It is not a slave build
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Thomas Zlika made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]
          Ulli Hafner made changes -
          Link New: This issue is related to JENKINS-13718 [ JENKINS-13718 ]
          Ulli Hafner made changes -
          Link Original: This issue is related to JENKINS-13718 [ JENKINS-13718 ]
          Thomas Zlika made changes -
          Attachment New: test.zip [ 22630 ]
          Ulli Hafner made changes -
          Link New: This issue is related to JENKINS-14737 [ JENKINS-14737 ]
          Ulli Hafner made changes -
          Description Original: When using the Jenkins Findbugs plugin on a multi-module Maven plugin, the build fails with the root cause exception:
          java.lang.ClassCastException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory
          (cf. attachment for full stack-trace).

          Note: the Findbugs Maven plugin is not able to generate an aggregated report for multi-module Maven, so maybe this is the origin of the problem ?
          New: When enabling the Jenkins Findbugs plugin on a Maven job that uses the maven-site-plugin to generate the reports then the build fails with the root cause exception:
          java.lang.ClassCastException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory
          (cf. attachment for full stack-trace).
          Priority Original: Major [ 3 ] New: Minor [ 4 ]
          Summary Original: Publishing Findbugs analysis report on a multi-module maven project results in ClassCastException New: ClassCastException when reports are created with maven-site-plugin

            kohsuke Kohsuke Kawaguchi
            zlika Thomas Zlika
            Votes:
            10 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: