ClassCastException in org.simantics.db.layer0.function.All.getStandardChildDomainPropertyVariable
Create a monitor on an Apros diagram and select the resulting element on the diagram and your console will be full of this rubbish:
ERROR [2020-03-17 01:39:43,621] org.simantics.db.layer0.variable.StandardGraphPropertyVariable: getPossibleDomainProperty is implemented incorrectly, but returns null on Exception for backward compatibility. URI=http://Projects/Development%20Project/Model/Configuration/NewGenericDiagram/__CONTAINER__/__DIAGRAM__/8#HasColor, name=HasStandardPropertyInfo.
java.lang.ClassCastException: org.simantics.db.layer0.variable.StandardGraphPropertyVariable cannot be cast to org.simantics.db.layer0.variable.StandardGraphChildVariable
at org.simantics.db.layer0.function.All.getStandardChildDomainPropertyVariable(All.java:460)
at org.simantics.db.layer0.function.All$2.getVariable(All.java:597)
at org.simantics.db.layer0.function.All$4.getVariable(All.java:739)
at org.simantics.db.layer0.variable.StandardGraphPropertyVariable.getPossibleDomainProperty(StandardGraphPropertyVariable.java:319)
at org.simantics.db.layer0.variable.AbstractVariable.getPossibleProperty(AbstractVariable.java:389)
at org.simantics.selectionview.VariablePropertyCategoryRule.getChildren(VariablePropertyCategoryRule.java:48)
at org.simantics.browsing.ui.model.children.ChildContribution.getChildren(ChildContribution.java:104)
at org.simantics.browsing.ui.model.browsecontexts.BrowseContext.getChildrenImpl(BrowseContext.java:228)
at org.simantics.browsing.ui.model.browsecontexts.BrowseContext.getChildren(BrowseContext.java:208)
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.ReadEntry.computeForEach(ReadEntry.java:112)
at org.simantics.db.impl.query.QueryCache.runnerReadEntry(QueryCache.java:697)
at org.simantics.db.impl.graph.ReadGraphImpl.syncRequest(ReadGraphImpl.java:1926)
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:60)
at org.simantics.db.impl.query.QueryProcessor.compareTo(QueryProcessor.java:1283)
at org.simantics.db.impl.query.QueryListening.fireListeners(QueryListening.java:451)
at fi.vtt.simantics.procore.internal.State.commitWriteTransaction(State.java:346)
at fi.vtt.simantics.procore.internal.SessionRequestManager$4.run0(SessionRequestManager.java:236)
at org.simantics.db.impl.query.QueryProcessor$SessionTask.run(QueryProcessor.java:226)
at org.simantics.db.impl.query.QueryThread.run(QueryThread.java:238)
Need to find a fix for this for Apros 6.10.
It would also be nice to fix this:
ERROR [2020-03-17 01:39:43,621] org.simantics.db.layer0.variable.StandardGraphPropertyVariable: getPossibleDomainProperty is implemented incorrectly, but returns null on Exception for backward compatibility. URI=http://Projects/Development%20Project/Model/Configuration/NewGenericDiagram/__CONTAINER__/__DIAGRAM__/8#HasColor, name=HasStandardPropertyInfo.