kbss-cvut / aircraft-maintenance-planning-system

D2020+ project about Aircraft Mainenance Planning System.
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Complex executions have duplicate issueTime #163

Open blcham opened 1 year ago

blcham commented 1 year ago

Matifests in dashboard:

2023-02-06 14:28:49 | 2023-02-06 13:28:49.915 ERROR 7 --- [       Thread-1] c.c.s.monitor.service.UpdateService      : Exception occurred, retrying...
-- | --
  |   | 2023-02-06 14:28:49 | cz.cvut.kbss.jopa.exceptions.CardinalityConstraintViolatedException: Expected single value of attribute issueTime of instance http://onto.fel.cvut.cz/ontologies/csat-maintenance/complex-execution--PH-HSA-H-23-HMV7--ENGINE2-OPEN-CLOSE, but got multiple.
  |   | 2023-02-06 14:28:49 |  
  |   | 2023-02-06 14:28:49 | at cz.cvut.kbss.jopa.oom.SingularDataPropertyStrategy.verifyCardinalityConstraint(SingularDataPropertyStrategy.java:47) ~[jopa-impl-0.19.2.jar!/:na]
  |   | 2023-02-06 14:28:49 | at cz.cvut.kbss.jopa.oom.SingularDataPropertyStrategy.addValueFromAxiom(SingularDataPropertyStrategy.java:40) ~[jopa-impl-0.19.2.jar!/:na]
  |   | 2023-02-06 14:28:49 | at cz.cvut.kbss.jopa.oom.EntityConstructor.populateAttributes(EntityConstructor.java:115) ~[jopa-impl-0.19.2.jar!/:na]
  |   | 2023-02-06 14:28:49 | at cz.cvut.kbss.jopa.oom.EntityConstructor.reconstructEntity(EntityConstructor.java:73) ~[jopa-impl-0.19.2.jar!/:na]
  |   | 2023-02-06 14:28:49 | at cz.cvut.kbss.jopa.oom.DefaultInstanceLoader.loadEntity(DefaultInstanceLoader.java:32) ~[jopa-impl-0.19.2.jar!/:na]
  |   | 2023-02-06 14:28:49 | at cz.cvut.kbss.jopa.oom.EntityInstanceLoader.loadInstance(EntityInstanceLoader.java:95) ~[jopa-impl-0.19.2.jar!/:na]
  |   | 2023-02-06 14:28:49 | at cz.cvut.kbss.jopa.oom.ObjectOntologyMapperImpl.loadEntity(ObjectOntologyMapperImpl.java:100) ~[jopa-impl-0.19.2.jar!/:na]
  |   | 2023-02-06 14:28:49 | at cz.cvut.kbss.jopa.oom.ObjectOntologyMapperImpl.loadEntityInternal(ObjectOntologyMapperImpl.java:109) ~[jopa-impl-0.19.2.jar!/:na]
  |   | 2023-02-06 14:28:49 | at cz.cvut.kbss.jopa.model.TypedQueryImpl.loadEntityInstance(TypedQueryImpl.java:95) ~[jopa-impl-0.19.2.jar!/:na]
  |   | 2023-02-06 14:28:49 | at cz.cvut.kbss.jopa.sessions.UnitOfWorkImpl.readObject(UnitOfWorkImpl.java:138) ~[jopa-impl-0.19.2.jar!/:na]
  |   | 2023-02-06 14:28:49 | at cz.cvut.kbss.jopa.sessions.UnitOfWorkImpl.readObjectInternal(UnitOfWorkImpl.java:149) ~[jopa-impl-0.19.2.jar!/:na]
  |   | 2023-02-06 14:28:49 | at cz.cvut.kbss.jopa.sessions.ConnectionWrapper.find(ConnectionWrapper.java:54) ~[jopa-impl-0.19.2.jar!/:na]
  |   | 2023-02-06 14:28:49 | at cz.cvut.kbss.ontodriver.iteration.ResultSetSpliterator.forEachRemaining(ResultSetSpliterator.java:75) ~[ontodriver-api-0.19.2.jar!/:na]
  |   | 2023-02-06 14:28:49 | at cz.cvut.kbss.jopa.model.QueryResultSpliterator.lambda$forEachRemaining$1(QueryResultSpliterator.java:71) ~[jopa-impl-0.19.2.jar!/:na]
  |   | 2023-02-06 14:28:49 | at cz.cvut.kbss.jopa.model.QueryResultSpliterator.mapAndApply(QueryResultSpliterator.java:51) ~[jopa-impl-0.19.2.jar!/:na]
  |   | 2023-02-06 14:28:49 | at cz.cvut.kbss.jopa.model.TypedQueryImpl.lambda$getResultStream$1(TypedQueryImpl.java:139) ~[jopa-impl-0.19.2.jar!/:na]
  |   | 2023-02-06 14:28:49 | at com.csat.support.monitor.persistence.dao.update.UpdateDaoGroupBase.processUpdateEntities(UpdateDaoGroupBase.java:89) ~[classes!/:0.0.1-SNAPSHOT]
  |   | 2023-02-06 14:28:49 | at java.base/java.util.stream.ReferencePipeline$Head.forEach(Unknown Source) ~[na:na]
  |   | 2023-02-06 14:28:49 | at com.github.ledsoft.jopa.spring.transaction.EntityManagerClosingResultSpliterator.forEachRemaining(EntityManagerClosingResultSpliterator.java:47) ~[jopa-spring-transaction-0.1.1.jar!/:na]
  |   | 2023-02-06 14:28:49 | at cz.cvut.kbss.jopa.model.QueryResultSpliterator.forEachRemaining(QueryResultSpliterator.java:71) ~[jopa-impl-0.19.2.jar!/:na]
  |   | 2023-02-06 14:28:49 | at com.csat.support.monitor.service.UpdateService.doAndRetry(UpdateService.java:603) ~[classes!/:0.0.1-SNAPSHOT]
  |   | 2023-02-06 14:28:49 | at com.csat.support.monitor.service.UpdateService.doAndRetry(UpdateService.java:603) ~[classes!/:0.0.1-SNAPSHOT]
  |   | 2023-02-06 14:28:49 | at com.csat.support.monitor.service.UpdateService.doAndRetry(UpdateService.java:603) ~[classes!/:0.0.1-SNAPSHOT]
  |   | 2023-02-06 14:28:49 | at com.csat.support.monitor.service.UpdateService.doAndRetry(UpdateService.java:600) ~[classes!/:0.0.1-SNAPSHOT]
  |   | 2023-02-06 14:28:49 | at com.csat.support.monitor.service.UpdateService.doAndRetry(UpdateService.java:603) ~[classes!/:0.0.1-SNAPSHOT]
  |   | 2023-02-06 14:28:49 | at com.csat.support.monitor.service.UpdateService.doAndRetry(UpdateService.java:603) ~[classes!/:0.0.1-SNAPSHOT]
  |   | 2023-02-06 14:28:49 | at com.csat.support.monitor.service.UpdateService.doAndRetry(UpdateService.java:603) ~[classes!/:0.0.1-SNAPSHOT]
  |   | 2023-02-06 14:28:49 | at com.csat.support.monitor.service.UpdateService.doAndRetry(UpdateService.java:594) ~[classes!/:0.0.1-SNAPSHOT]
  |   | 2023-02-06 14:28:49 | at com.csat.support.monitor.service.UpdateService.doAndRetry(UpdateService.java:603) ~[classes!/:0.0.1-SNAPSHOT]
  |   | 2023-02-06 14:28:49 | at com.csat.support.monitor.service.UpdateService.doAndRetry(UpdateService.java:603) ~[classes!/:0.0.1-SNAPSHOT]
  |   | 2023-02-06 14:28:49 | at com.csat.support.monitor.service.UpdateService.doAndRetry(UpdateService.java:603) ~[classes!/:0.0.1-SNAPSHOT]
  |   | 2023-02-06 14:28:49 | at com.csat.support.monitor.service.UpdateService.updateDataTask(UpdateService.java:347) ~[classes!/:0.0.1-SNAPSHOT]
  |   | 2023-02-06 14:28:49 | at com.csat.support.monitor.service.UpdateService.updateDataTask(UpdateService.java:352) ~[classes!/:0.0.1-SNAPSHOT]
  |   | 2023-02-06 14:28:49 | at com.csat.support.monitor.service.UpdateService.updateDataTask(UpdateService.java:437) ~[classes!/:0.0.1-SNAPSHOT]
  |   | 2023-02-06 14:28:49 | at com.csat.support.monitor.service.UpdateService.importToDataFromUpdate(UpdateService.java:236) ~[classes!/:0.0.1-SNAPSHOT]
  |   | 2023-02-06 14:28:49 |  
  |   | 2023-02-06 14:28:49 | at java.base/java.lang.Thread.run(Unknown Source) ~[na:na]
  |   | 2023-02-06 14:28:49 | at com.csat.support.monitor.service.UpdateService.lambda$1(UpdateService.java:253) ~[classes!/:0.0.1-SNAPSHOT]

See csat-data and this named query: https://graphdb.onto.fel.cvut.cz/sparql?savedQueryName=find%20duplicate%20cm%3Aissue-time

blcham commented 1 year ago

Same applies for endTime. See graphdb

11b23c7b-8b76-43f3-a969-2d56a6e0d2d5

blcham commented 1 year ago

It seems that issue is in cm:is-task-of-sub-project and other properties.

blcham commented 1 year ago

It seems that issue is in updater.