This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 170267 - NullPointerException at org.netbeans.modules.hudson.impl.HudsonConnector.getBuilds
Summary: NullPointerException at org.netbeans.modules.hudson.impl.HudsonConnector.getB...
Status: RESOLVED FIXED
Alias: None
Product: connecteddeveloper
Classification: Unclassified
Component: Hudson (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jesse Glick
URL: http://statistics.netbeans.org/except...
Keywords:
: 179686 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-08-12 12:49 UTC by netmackan
Modified: 2010-01-19 17:55 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 155633


Attachments
stacktrace (558 bytes, text/plain)
2009-08-12 12:49 UTC, netmackan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description netmackan 2009-08-12 12:49:51 UTC
Build: NetBeans IDE 6.7.1 (Build 200907230233)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08
OS: Linux, 2.6.27-11-generic, amd64

User Comments:
netmackan: Trying to expand a Hudson Job.



Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.hudson.impl.HudsonConnector.getBuilds(HudsonConnector.java:175)
        at org.netbeans.modules.hudson.impl.HudsonJobImpl.getBuilds(HudsonJobImpl.java:263)
        at org.netbeans.modules.hudson.ui.nodes.HudsonJobNode$1.createKeys(HudsonJobNode.java:87)
        at org.openide.nodes.AsynchChildren.run(AsynchChildren.java:164)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:577)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1030)
Comment 1 netmackan 2009-08-12 12:49:56 UTC
Created attachment 86149 [details]
stacktrace
Comment 2 Jesse Glick 2009-08-12 19:54:28 UTC
Making more robust in cdev #9c023254bb27, but cannot reproduce. What version of Hudson do you run? Which plugins? Please
open

<HUDSONURL>/job/<JOBNAME>/api/xml?depth=1&xpath=/*/build&wrapper=root&exclude=//artifact&exclude=//action&exclude=//changeSet&exclude=//culprit&exclude=//duration&exclude=//fullDisplayName&exclude=//keepLog&exclude=//timestamp&exclude=//url&exclude=//builtOn&exclude=//id

and attach the resulting XML file to this issue for diagnosis. (If your job involves proprietary code or information you
may need to sanitize it a bit.) Expect to see

<root>
  <build>
    <building>...</building>
    <number>...</number>
    <result>...</result>
  </build>
  ...
</root>

and nothing else. If you see other elements, particularly empty elements, please let me know.
Comment 3 Quality Engineering 2009-08-13 06:06:05 UTC
Integrated into 'main-golden', will be available in build *200908130201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/9c023254bb27
User: Jesse Glick <jglick@netbeans.org>
Log: #170267: NPE caused by unknown unexpected output from Hudson.
Comment 4 netmackan 2009-08-15 09:23:34 UTC
I have not yet tried the new build but to answer your first questions, the Hudson version is 1.307 and I also found some
description-tags in:
http://hudson.primekey.se/job/SignServer_HyperSonic/api/xml?depth=1&xpath=/*/build&wrapper=root&exclude=//artifact&exclude=//action&exclude=//changeSet&exclude=//culprit&exclude=//duration&exclude=//fullDisplayName&exclude=//keepLog&exclude=//timestamp&exclude=//url&exclude=//builtOn&exclude=//id

Plugins are: PMD, SSH slaves, JIRA, Maven, Audit Trail, Build-timeout and Clover.
Comment 5 Jesse Glick 2009-08-17 18:08:29 UTC
OK, thanks: cdev #a8c3b82bf563
Comment 6 Quality Engineering 2009-08-21 06:04:43 UTC
Integrated into 'main-golden', will be available in build *200908210201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/a8c3b82bf563
User: Jesse Glick <jglick@netbeans.org>
Log: #170267 cont'd: ignore Run.description attr when set.
Comment 7 Jesse Glick 2010-01-19 17:55:25 UTC
*** Bug 179686 has been marked as a duplicate of this bug. ***