Opened 7 years ago

Closed 7 years ago

#1855 closed defect (fixed)

ItemNotFoundException when creating a new raw bioassay

Reported by: Nicklas Nordborg Owned by: everyone
Priority: major Milestone: BASE 3.3.2
Component: core Version:
Keywords: Cc:

Description

The error message is:

ItemNotFoundException: Item not found: ArrayDesign[id=622211]

The array design referenced in the error message is an array design that was removed from the database just a moment ago.

After some investigation it was found that this array design was a 'project default item' and the edit dialog tries to suggest a default item based on this. The links between a project and it's default items are not automatically removed when an item is deleted. The interesting part of the stacktrace is:

net.sf.basedb.core.ItemNotFoundException: Item not found: ArrayDesign[id=622211]
	at net.sf.basedb.core.DbControl.getItem(DbControl.java:905)
	at net.sf.basedb.core.Project.findDefaultItems(Project.java:747)
	at org.apache.jsp.views.rawbioassays.edit_005frawbioassay_jsp._jspService(edit_005frawbioassay_jsp.java:222)

A similar issue has already been fixed in the Project.getDefaultItems() method which will remove non-existing items automatically.

Workaround is to go to the View -> Projects page and enter the current project. This will automatically remove the link to the non-existing item.

Change History (1)

comment:1 Changed 7 years ago by Nicklas Nordborg

Resolution: fixed
Status: newclosed

(In [6546]) Fixes #1855: ItemNotFoundException? when creating a new raw bioassay

Note: See TracTickets for help on using tickets.