Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324758 - [build][hudson] NPE in HudsonServerBehaviour.parseDuration
Summary: [build][hudson] NPE in HudsonServerBehaviour.parseDuration
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: 0.7   Edit
Assignee: Steffen Pingel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-08 11:21 EDT by Robert Munteanu CLA
Modified: 2011-01-05 14:44 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Munteanu CLA 2010-09-08 11:21:55 EDT
After updating to the latest version of the Hudson connector I get the following errors in the logs.

!ENTRY org.eclipse.mylyn.builds.core 4 0 2010-09-08 18:18:29.944
!MESSAGE Unexpected error during invocation in server behavior
!STACK 0
java.lang.NullPointerException
        at org.eclipse.mylyn.internal.hudson.core.HudsonServerBehaviour.parseDuration(HudsonServerBehaviour.java:274)
        at org.eclipse.mylyn.internal.hudson.core.HudsonServerBehaviour.parseTestResult(HudsonServerBehaviour.java:409)
        at org.eclipse.mylyn.internal.hudson.core.HudsonServerBehaviour.getBuilds(HudsonServerBehaviour.java:119)
        at org.eclipse.mylyn.builds.internal.core.operations.RefreshSession$1.run(RefreshSession.java:86)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
        at org.eclipse.mylyn.builds.internal.core.operations.RefreshSession.refreshBuilds(RefreshSession.java:79)
        at org.eclipse.mylyn.builds.internal.core.operations.RefreshSession.refresh(RefreshSession.java:72)
        at org.eclipse.mylyn.builds.internal.core.operations.RefreshOperation$RefreshJob.doExecute(RefreshOperation.java:48)
        at org.eclipse.mylyn.builds.internal.core.operations.BuildJob.run(BuildJob.java:79)
        at org.eclipse.mylyn.builds.internal.core.operations.AbstractElementOperation.doExecute(AbstractElementOperation.java:105)
        at org.eclipse.mylyn.internal.builds.ui.BuildRefresher$RefreshJob.doExecute(BuildRefresher.java:41)
        at org.eclipse.mylyn.builds.internal.core.operations.BuildJob.run(BuildJob.java:79)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
        
Also, trying to import unit test results brings up an error dialog which says that 'The build did not produce test results', although they are shown in the Builds view as '0 tests failing out of total 189 tests'.
Comment 1 Steffen Pingel CLA 2010-09-08 12:46:17 EDT
Thanks for reporting that. The second error is a result of the parsing error. I have added a null check and will spin a new build shortly.