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

ArrayIndexOutOfBoundsException retriving Test Result Trend Chart

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Grettings.

      We have integrated Jenkins with Testlink and every thing works fine. Executing test and recollect Junit test results. But the test result trend chart is not displayed.

      Investigating logs we have found the following error:

      java.lang.ArrayIndexOutOfBoundsException: 0
      at sun.font.CompositeStrike.getStrikeForSlot(CompositeStrike.java:75)
      at sun.font.CompositeStrike.getFontMetrics(CompositeStrike.java:93)
      at sun.font.Font2D.getFontMetrics(Font2D.java:415)
      at java.awt.Font.defaultLineMetrics(Font.java:2176)
      at java.awt.Font.getLineMetrics(Font.java:2246)
      at org.jfree.chart.axis.NumberAxis.estimateMaximumTickLabelHeight(NumberAxis.java:974)
      at org.jfree.chart.axis.NumberAxis.selectVerticalAutoTickUnit(NumberAxis.java:1104)
      at org.jfree.chart.axis.NumberAxis.selectAutoTickUnit(NumberAxis.java:1048)
      at org.jfree.chart.axis.NumberAxis.refreshTicksVertical(NumberAxis.java:1249)
      at org.jfree.chart.axis.NumberAxis.refreshTicks(NumberAxis.java:1149)
      at org.jfree.chart.axis.ValueAxis.reserveSpace(ValueAxis.java:788)
      at org.jfree.chart.plot.CategoryPlot.calculateRangeAxisSpace(CategoryPlot.java:2650)
      at org.jfree.chart.plot.CategoryPlot.calculateAxisSpace(CategoryPlot.java:2669)
      at org.jfree.chart.plot.CategoryPlot.draw(CategoryPlot.java:2716)
      at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1222)
      at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1396)
      at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1376)
      at hudson.util.Graph.render(Graph.java:98)
      at hudson.util.Graph.doMap(Graph.java:174)
      at hudson.util.ChartUtil.generateClickableMap(ChartUtil.java:176)
      at hudson.util.ChartUtil.generateClickableMap(ChartUtil.java:160)
      at hudson.tasks.test.AbstractTestResultAction.doGraphMap(AbstractTestResultAction.java:312)
      at hudson.tasks.test.TestResultProjectAction.doTrendMap(TestResultProjectAction.java:122)
      at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
      at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)

       

      Aslo we can see http errors retriving two urls in the browser

      GET https://JENKINSURL/job/JOBNAME/testLinkResult/graph 500 ()
      prototype.js:1585 GET https://JENKINSURL/jenkinsRMMSCNS/job/JOBNAME/testLinkResult/graphMap 500 ()
      request @ prototype.js:1585
      prototype.js:1585 GET https:/JENKINSURL/jenkinsRMMSCNS/job/JOBNAME/test/trendMap?failureOnly=true 500 ()

       

      Any help will be apreciated

      Regards

        Attachments

          Issue Links

            Activity

            Hide
            caelumvox Matthew Miling added a comment -

            Hello

            I experience the same issue when I build a Java 8 Maven project using the Maven Surefire plugin to generate the surefire reports.  

            Not sure if this helps but the Junit XML output from Surefire plugin does not have <testsuites> as the toplevel tag, but instead it has a collection of XML files that have <testsuite> as the top level tag.

            Show
            caelumvox Matthew Miling added a comment - Hello I experience the same issue when I build a Java 8 Maven project using the Maven Surefire plugin to generate the surefire reports.   Not sure if this helps but the Junit XML output from Surefire plugin does not have <testsuites> as the toplevel tag, but instead it has a collection of XML files that have <testsuite> as the top level tag.

              People

              • Assignee:
                menonvarun Varun Menon
                Reporter:
                mahernandezp Miguel Angel Hernandez
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: