Issue Details (XML | Word | Printable)

Key: HUDSON-5238
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: abayer
Reporter: heikof
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Hudson

ClearCase NPE

Created: 12/Jan/10 12:36 AM   Updated: 12/Jan/10 10:16 PM   Resolved: 12/Jan/10 02:41 PM
Component/s: clearcase
Affects Version/s: current
Fix Version/s: None


 Description  « Hide

After upgrading to Hudson 1.339 and ClearCase Plugin 1.1 I got the following error after loading of all files from a snapshot view was finished:

Done loading "\EVTL_COMPS01\STM" (1565 objects, copied 11855 KB).
FATAL: null
java.lang.NullPointerException
at hudson.plugins.clearcase.ClearCaseUcmSCM.getBranchNames(ClearCaseUcmSCM.java:120)
at hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:424)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1013)
at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:486)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:412)
at hudson.model.Run.run(Run.java:1179)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:122)

I have no idea what the reason could be. I will go back to clearcase version 1.0.2. There I don't see this issue.



Sort Order: Ascending order - Click to sort in descending order
abayer added a comment - 12/Jan/10 07:19 AM

Ah, I see it. We added a new optional config variable, but in existing setups, it wouldn't be initialized. Committing a fix now.


heikof added a comment - 12/Jan/10 12:51 PM

Okay, saw your changes. Have built the plugin and will check it tomorrow morning in the office. Get back to you with feedback asap.


abayer added a comment - 12/Jan/10 02:41 PM

Fixed in trunk.


scm_issue_link added a comment - 12/Jan/10 04:13 PM

Code changed in hudson
User: : abayer
Path:
trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearCaseUcmSCM.java
http://fisheye4.cenqua.com/changelog/hudson/?cs=25723
Log:
[FIXED HUDSON-5238] NPE in upgraded, unmodified UCM jobs due to new optional configuration value - handling properly now


heikof added a comment - 12/Jan/10 10:16 PM

Tested your fix and the NPE is gone. Thanks for your quick response.
BTW: Why are the commands cleartool pwv -root and cleartool lsview executed at the beginning? We have over 3000 views. Was this intended for debug only?