Bug #5736

Unexpected DoesNotContainValueException thrown from AnnotationTypeLabelRule

Added by Tuukka Lehtonen almost 3 years ago. Updated over 2 years ago.

Status:ClosedStart date:2015-03-18
Priority:4Due date:2015-03-18
Assignee:Tuukka Lehtonen% Done:

100%

Category:Model browserSpent time:0.20 hour
Target version:1.18.1
Release notes:Fixed AnnotationTypeLabelRule not to throw unexpected DoesNotContainValueExceptions which can happen when data is removed and queries are updated.
Tags: browsing
Story points-
Velocity based estimate-
ReleaseSimantics 1.18.1Release relationshipAuto

Description

org.simantics.db.exception.DoesNotContainValueException: No value for resource [id=$4098670] [] []
 at org.simantics.db.impl.graph.ReadGraphImpl.getRelatedValue(ReadGraphImpl.java:1168)
 at org.simantics.annotation.ui.modelBrowser2.model.AnnotationTypeLabelRule.getLabel(AnnotationTypeLabelRule.java:49)
 at org.simantics.browsing.ui.model.labels.LabelContribution.getLabel(LabelContribution.java:50)
 at org.simantics.browsing.ui.model.browsecontexts.BrowseContext.getLabel(BrowseContext.java:279)
 at org.simantics.browsing.ui.model.sorters.AlphanumericSorter.getSortingCriterion(AlphanumericSorter.java:32)
 at org.simantics.browsing.ui.model.sorters.AlphanumericSorter.getSortingCriterion(AlphanumericSorter.java:1)
 at org.simantics.browsing.ui.model.sorters.AbstractSorter.sort(AbstractSorter.java:51)
 at org.simantics.browsing.ui.model.browsecontexts.BrowseContext.getChildrenImpl(BrowseContext.java:198)
 at org.simantics.browsing.ui.model.browsecontexts.BrowseContext.getChildren(BrowseContext.java:177)
 at org.simantics.browsing.ui.graph.impl.EvaluatorViewpoint$1.perform(EvaluatorViewpoint.java:43)
 at org.simantics.browsing.ui.graph.impl.EvaluatorViewpoint$1.perform(EvaluatorViewpoint.java:1)
 at org.simantics.db.impl.query.QueryProcessor.performForEach(QueryProcessor.java:1050)
 at org.simantics.db.impl.query.QueryProcessor.queryRead(QueryProcessor.java:853)
 at org.simantics.db.impl.graph.ReadGraphImpl.syncRequest(ReadGraphImpl.java:1889)
 at org.simantics.browsing.ui.graph.impl.EvaluatorViewpoint.children(EvaluatorViewpoint.java:38)
 at org.simantics.browsing.ui.graph.impl.LazyViewpoint$1.perform(LazyViewpoint.java:90)
 at org.simantics.browsing.ui.graph.impl.LazyViewpoint$1.perform(LazyViewpoint.java:1)
 at org.simantics.db.impl.query.ReadEntry$1.recompute(ReadEntry.java:87)
 at org.simantics.db.impl.query.QueryProcessor.compareTo(QueryProcessor.java:2384)
 at org.simantics.db.impl.query.QueryProcessor.performScheduledUpdates(QueryProcessor.java:2465)
 at fi.vtt.simantics.procore.internal.State.commitWriteTransaction(State.java:346)
 at fi.vtt.simantics.procore.internal.SessionRequestManager$4.run(SessionRequestManager.java:239)
 at org.simantics.db.impl.query.QueryThread.run(QueryThread.java:251)

Associated revisions

Revision 31099
Added by Tuukka Lehtonen almost 3 years ago

Prevent unexpected exception from being throw in AnnotationTypeLabelRule.

refs #5736

Revision 31100
Added by Tuukka Lehtonen almost 3 years ago

Merged trunk@31099 to branches/simantics-1.18 on 2015-03-18 for 1.18.1 release.

refs #5736

History

#1 Updated by Tuukka Lehtonen almost 3 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100

#2 Updated by Tuukka Lehtonen over 2 years ago

  • Status changed from Resolved to Closed

#3 Updated by Tuukka Lehtonen over 2 years ago

  • Release notes set to Fixed AnnotationTypeLabelRule not to throw unexpected DoesNotContainValueExceptions which can happen when data is removed and queries are updated.

Also available in: Atom PDF