ItemNotFoundException when creating a new raw bioassay
|Reported by:||Nicklas Nordborg||Owned by:||everyone|
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.