Project

General

Profile

Actions

Bug #4959

closed

Reporting call to getDefaultProvenaceRecorder occasionally gets an NPE

Added by Derik Barseghian almost 14 years ago. Updated almost 14 years ago.

Status:
Resolved
Priority:
Normal
Category:
reporting
Target version:
Start date:
04/26/2010
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
4959

Description

Sometimes when you execute a workflow in WRP, you'll get an NPE from Reporting when it calls ProvenaceRecorder.getDefaultProvenaceRecorder. I think this may be related to changing the report and rerunning the workflow but I'm not sure...

Actions #1

Updated by Derik Barseghian almost 14 years ago

Now I think this happens when you make a change to certain workflows and an entirely new lsid is gotten, and the old one is placed in the derived from list, instead of just bumping the revision. I'm not sure of all the cases in which this occurs (it seems like this sometimes happens when it shouldn't, but that would be a separate issue), but one is when you rename the workflow. When a new lsid is assigned to the workflow, the call to get the workflow out of ObjectManager in getProveanceRecorder returns null, even though the new lsid is used:

NamedObj reference = ObjectManager.getInstance().getHighestObjectRevision(lsid);

Actions #2

Updated by Derik Barseghian almost 14 years ago

Re: new lsid added and referral generated when it shouldn't, I think I was wrong, this is happening when a new namespace is in use, as it should.

Actions #3

Updated by Derik Barseghian almost 14 years ago

fixed in r23981.

Actions #4

Updated by Redmine Admin about 11 years ago

Original Bugzilla ID was 4959

Actions

Also available in: Atom PDF