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

ClassCastException when reports are created with maven-site-plugin

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Duplicate
    • Component/s: findbugs-plugin
    • Labels:
      None
    • Environment:
    • Similar Issues:

      Description

      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).

        Attachments

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

          Issue Links

            Activity

            zlika Thomas Zlika created issue -
            zlika Thomas Zlika made changes -
            Field Original Value New Value
            Link This issue is related to JENKINS-7666 [ JENKINS-7666 ]
            zlika Thomas Zlika made changes -
            Environment 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
            zlika Thomas Zlika made changes -
            Environment 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
            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_issue_link SCM/JIRA link daemon made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            zlika Thomas Zlika made changes -
            Resolution Fixed [ 1 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            drulli Ulli Hafner made changes -
            Link This issue is related to JENKINS-13718 [ JENKINS-13718 ]
            drulli Ulli Hafner made changes -
            Link This issue is related to JENKINS-13718 [ JENKINS-13718 ]
            zlika Thomas Zlika made changes -
            Attachment test.zip [ 22630 ]
            drulli Ulli Hafner made changes -
            Link This issue is related to JENKINS-14737 [ JENKINS-14737 ]
            drulli Ulli Hafner made changes -
            Summary Publishing Findbugs analysis report on a multi-module maven project results in ClassCastException ClassCastException when reports are created with maven-site-plugin
            Priority Major [ 3 ] Minor [ 4 ]
            Description 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 ?
            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).
            kinow Bruno P. Kinoshita made changes -
            Link This issue is related to JENKINS-17488 [ JENKINS-17488 ]
            bdellegrazie Brett Delle Grazie made changes -
            Link This issue is duplicated by JENKINS-13709 [ JENKINS-13709 ]
            bdellegrazie Brett Delle Grazie made changes -
            Link This issue is duplicated by JENKINS-13709 [ JENKINS-13709 ]
            bdellegrazie Brett Delle Grazie made changes -
            Link This issue is related to JENKINS-13709 [ JENKINS-13709 ]
            ndeloof Nicolas De Loof made changes -
            Link This issue is duplicated by JENKINS-13709 [ JENKINS-13709 ]
            kohsuke Kohsuke Kawaguchi made changes -
            Status Reopened [ 4 ] Resolved [ 5 ]
            Assignee Ulli Hafner [ drulli ] Kohsuke Kawaguchi [ kohsuke ]
            Resolution Duplicate [ 3 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 146067 ] JNJira + In-Review [ 191770 ]

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: