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

NPE in GendarmeParser

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • violations-plugin
    • None
    • Master - Ubuntu 10.04 x64, Slave - Windows Server 2008 x86

      When parsing Gendarme violations I ran into this error:

      ERROR: Publisher hudson.plugins.violations.ViolationsPublisher aborted due to exception
      java.lang.NullPointerException
      at hudson.plugins.violations.types.gendarme.GendarmeParser.parseViolations(GendarmeParser.java:180)
      at hudson.plugins.violations.types.gendarme.GendarmeParser.parse(GendarmeParser.java:73)
      at hudson.plugins.violations.ViolationsCollector.doType(ViolationsCollector.java:189)
      at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:116)
      at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:27)
      at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1899)
      at hudson.remoting.UserRequest.perform(UserRequest.java:114)
      at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      at hudson.remoting.Request$2.run(Request.java:270)
      at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)

      After looking at the code I'm unsure as to how it could happen since there doesn't seem any way for fileName or filePath to become null, I'm quite happy to investigate further with a bit of guidance.

      Is there anyway I can directly test parsing one of the XML files, without running it via Hudson? I can't really post them here as it's for all internal code unfortunately.

            peterkittreilly peterkittreilly
            damoxc damoxc
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: