Fixing several binding-related bugs
Found the following from a log file:
!ENTRY org.simantics.utils.ui 4 0 2019-07-09 17:02:10.537
!MESSAGE Problems occurred while exporting the model. See exception for details.
!STACK 0
fi.vtt.apros.ui.wizard.WizardCancelException: Internal application error in export. See error log view for details.
at fi.vtt.apros.ui.wizard.Apros6ModelExporter.exportModel(Apros6ModelExporter.java:149)
at fi.vtt.apros.ui.wizard.Apros6ModelExporter.run(Apros6ModelExporter.java:71)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
Caused by: org.simantics.db.exception.ServiceException: Could not getValue for subject [null - [id=$13001]] and binding org.simantics.databoard.binding.impl.OptionalBindingDefault@9c8455c1 with bytes [7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 11, 109, 111, 115, 116, 83, 105, 103, 66, 105, 116, 115, 3, 0, 0, 0, 0, 12, 108, 101, 97, 115, 116, 83, 105, 103, 66, 105, 116, 115, 3, 0, 0, 0, 0]
at org.simantics.db.impl.graph.ReadGraphImpl.getValue(ReadGraphImpl.java:1123)
at org.simantics.db.common.primitiverequest.Value.perform(Value.java:30)
at org.simantics.db.impl.query.ReadEntry.computeForEach(ReadEntry.java:112)
at org.simantics.db.impl.query.QueryCache.runnerReadEntry(QueryCache.java:660)
at org.simantics.db.impl.query.QueryCacheBase.resultReadEntry(QueryCacheBase.java:1065)
at org.simantics.db.impl.graph.ReadGraphImpl.syncRequest(ReadGraphImpl.java:1948)
at org.simantics.db.impl.graph.ReadGraphImpl.syncRequest(ReadGraphImpl.java:1938)
at org.simantics.db.layer0.util.DomainProcessor3.getDatatype(DomainProcessor3.java:309)
at org.simantics.db.layer0.util.DomainProcessor3.processValue(DomainProcessor3.java:319)
at org.simantics.db.layer0.util.DomainProcessor3.processInternal(DomainProcessor3.java:473)
at org.simantics.db.layer0.util.DomainProcessor3.processFringe(DomainProcessor3.java:527)
at org.simantics.db.layer0.util.DomainProcessor3.process(DomainProcessor3.java:574)
at org.simantics.db.layer0.util.ModelTransferableGraphSourceRequest.getDomain2(ModelTransferableGraphSourceRequest.java:560)
at org.simantics.db.layer0.util.ModelTransferableGraphSourceRequest.getDomain2(ModelTransferableGraphSourceRequest.java:419)
at org.simantics.db.layer0.util.ModelTransferableGraphSourceRequest.perform(ModelTransferableGraphSourceRequest.java:239)
at org.simantics.db.layer0.util.ModelTransferableGraphSourceRequest.perform(ModelTransferableGraphSourceRequest.java:1)
at fi.vtt.simantics.procore.internal.SessionImplSocket$6.run0(SessionImplSocket.java:1554)
at org.simantics.db.impl.query.QueryProcessor$SessionTask.run(QueryProcessor.java:307)
at fi.vtt.simantics.procore.internal.SessionRequestManager$1.run0(SessionRequestManager.java:127)
at org.simantics.db.impl.query.QueryProcessor$SessionTask.run(QueryProcessor.java:307)
at org.simantics.db.impl.query.QueryThread.run(QueryThread.java:254)
Caused by: org.simantics.databoard.serialization.SerializationException: Unexpected marker for option 7 0 or 1 expected.
at org.simantics.databoard.serialization.impl.OptionalSerializer.deserialize(OptionalSerializer.java:55)
at org.simantics.databoard.serialization.Serializer$CompositeSerializer.deserialize(Serializer.java:412)
at org.simantics.databoard.serialization.Serializer.deserialize(Serializer.java:194)
at org.simantics.db.impl.graph.ReadGraphImpl.getValue(ReadGraphImpl.java:1116)
... 20 more
Edited by Jani Simomaa