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

AggregatedTestResultPublisher$TestResultAction cannot be cast to hudson.tasks.test.TestResult

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: core
    • Labels:
      None
    • Environment:
      Hudson 1.356 on Java 1.6.0_20 x64, Windows Server 2008 x64
    • Similar Issues:

      Description

      I am having some issues with publishing of JUnit reports, in that certain data don't come out right. Aggregation of testresults is enabled. I see in Hudson's log that exceptions are reported, at least some of which have to do with testresult reporting. I've attached a paste of my log, so you should be able to grasp the context in which this is happening.

        Attachments

          Issue Links

            Activity

            Hide
            mindless Alan Harder added a comment -

            there is a problem there (ATRP$TRA.getResult() returns "this" and ATRA.findCorrespondingResult tries to cast it to TestResult.. which it is not), but I'm not familiar enough with this part of the code to know the right fix.. I wonder if it should just catch the type mismatch and return null.

            Show
            mindless Alan Harder added a comment - there is a problem there (ATRP$TRA.getResult() returns "this" and ATRA.findCorrespondingResult tries to cast it to TestResult .. which it is not), but I'm not familiar enough with this part of the code to know the right fix.. I wonder if it should just catch the type mismatch and return null.
            Hide
            arhawth arhawth added a comment -

            I also see the same issue. When I navigate to hudson -> Project -> Build -> Latest Test Result -> History, the chart that's supposed to be there shows a "broken image" icon, and I see the same ClassCastException in the logs.

            Show
            arhawth arhawth added a comment - I also see the same issue. When I navigate to hudson -> Project -> Build -> Latest Test Result -> History, the chart that's supposed to be there shows a "broken image" icon, and I see the same ClassCastException in the logs.
            Hide
            evernat evernat added a comment -

            Hi Arve and arhawth,
            Is this still an issue with a recent Jenkins version?
            Thanks

            Show
            evernat evernat added a comment - Hi Arve and arhawth, Is this still an issue with a recent Jenkins version? Thanks
            Hide
            hoblin Evgeny Gurin added a comment - - edited

            Just updated to 1.440 and it still present. Error here
            I got this exception on page http://server.name:8080/job/JobName/lastCompletedBuild/testReport/history/countGraph/png?start=0&end=25 Feel free to ask anything else

            # java -version
            java version "1.6.0_20"
            OpenJDK Runtime Environment (IcedTea6 1.9.8) (6b20-1.9.8-0ubuntu1~10.04.1)
            OpenJDK Client VM (build 19.0-b09, mixed mode, sharing)
            
            # uname -a
            Linux li354-11 2.6.39.1-linode34 #1 SMP Tue Jun 21 10:29:24 EDT 2011 i686 GNU/Linux
            

            Installed and updated with "apt-get install jenkins"

            Show
            hoblin Evgeny Gurin added a comment - - edited Just updated to 1.440 and it still present. Error here I got this exception on page http://server.name:8080/job/JobName/lastCompletedBuild/testReport/history/countGraph/png?start=0&end=25 Feel free to ask anything else # java -version java version "1.6.0_20" OpenJDK Runtime Environment (IcedTea6 1.9.8) (6b20-1.9.8-0ubuntu1~10.04.1) OpenJDK Client VM (build 19.0-b09, mixed mode, sharing) # uname -a Linux li354-11 2.6.39.1-linode34 #1 SMP Tue Jun 21 10:29:24 EDT 2011 i686 GNU/Linux Installed and updated with "apt-get install jenkins"
            Hide
            hoblin Evgeny Gurin added a comment -

            I just try to run jenkins on same server from WAR file without additional plugins with new build task and bug gone. I'll try to reproduce it on clean setup.

            Show
            hoblin Evgeny Gurin added a comment - I just try to run jenkins on same server from WAR file without additional plugins with new build task and bug gone. I'll try to reproduce it on clean setup.
            Hide
            hoblin Evgeny Gurin added a comment -

            Seems like running from WAR file fixes my first jenkins setup as well. Bug is gone and i can't reproduce it at all.

            Show
            hoblin Evgeny Gurin added a comment - Seems like running from WAR file fixes my first jenkins setup as well. Bug is gone and i can't reproduce it at all.
            Hide
            hoblin Evgeny Gurin added a comment -

            Ah, no. It appears again after i run build on the old setup. Magic... Ok, later I'll try to figure out how to reproduce it.

            Show
            hoblin Evgeny Gurin added a comment - Ah, no. It appears again after i run build on the old setup. Magic... Ok, later I'll try to figure out how to reproduce it.
            Hide
            hoblin Evgeny Gurin added a comment -

            Seems like it caused by one (or many) of old builds in .jenkins/jobs/JobName/builds/ dir. I'll try to find which one.

            Show
            hoblin Evgeny Gurin added a comment - Seems like it caused by one (or many) of old builds in .jenkins/jobs/JobName/builds/ dir. I'll try to find which one.
            Hide
            tyrael Ferenc Kovacs added a comment -

            I'm still seeing broken graphs with this error on my jenkins install (jenkins lts 1.447.1 running on debian squeeze).
            Some jobs (with the same config except they are using different git branches) are fine others borked.

            Show
            tyrael Ferenc Kovacs added a comment - I'm still seeing broken graphs with this error on my jenkins install (jenkins lts 1.447.1 running on debian squeeze). Some jobs (with the same config except they are using different git branches) are fine others borked.

              People

              • Assignee:
                Unassigned
                Reporter:
                aknuds1 Arve Knudsen
              • Votes:
                5 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated: