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

Trying to display info bout package name is "n/a" gives a 500

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: warnings-plugin
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:

      Description

      Im running warnings v1.5 and ran it on the java project Mockito. The warnings
      plugin displays the following package list for a build
      (http://hudson.ramfelt.se/job/Mockito/110/warningsResult/):

      Package Total
      org.mockitousage.stubbing 7
      org.mockitousage.misuse 1
      org.mockitousage.verification 2
      n/a 7

      When I click on the "n/a" package, I get a 500 on page
      http://hudson.ramfelt.se/job/Mockito/110/warningsResult/package.n/a/

      java.util.NoSuchElementException: Package not found: n
      at
      hudson.plugins.warnings.util.model.AnnotationContainer.getPackage(AnnotationContainer.java:489)
      at hudson.plugins.warnings.util.DetailBuilder.createDetails(DetailBuilder.java:78)
      at
      hudson.plugins.warnings.util.DetailBuilder.createTrendDetails(DetailBuilder.java:52)
      at hudson.plugins.warnings.WarningsResult.getDynamic(WarningsResult.java:456)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:103)

        Attachments

          Activity

          Hide
          redsolo redsolo added a comment -

          Did not build using the new version of warnings plugin. The "n/a" package
          disappeared.

          Show
          redsolo redsolo added a comment - Did not build using the new version of warnings plugin. The "n/a" package disappeared.
          Hide
          drulli Ulli Hafner added a comment -

          If you don't mind, I reopen this issue Using n/a is not a good idea for
          missing package names (which still could happen under some circumstances).

          Show
          drulli Ulli Hafner added a comment - If you don't mind, I reopen this issue Using n/a is not a good idea for missing package names (which still could happen under some circumstances).
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : drulli
          Path:
          trunk/hudson/plugins/tasks/src/main/java/hudson/plugins/tasks/parser/WorkspaceScanner.java
          http://fisheye4.cenqua.com/changelog/hudson/?cs=11121
          Log:
          [FIXED JENKINS-2132] Unknown packages are now named "unknown" rather than "n/a".

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : drulli Path: trunk/hudson/plugins/tasks/src/main/java/hudson/plugins/tasks/parser/WorkspaceScanner.java http://fisheye4.cenqua.com/changelog/hudson/?cs=11121 Log: [FIXED JENKINS-2132] Unknown packages are now named "unknown" rather than "n/a".

            People

            Assignee:
            drulli Ulli Hafner
            Reporter:
            redsolo redsolo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: