openbase / bco.dal

Domotic Abstraction Layer
Other
1 stars 2 forks source link

bco simulation mode is broken because of invalid action descriptions. #144

Closed DivineThreepwood closed 5 years ago

DivineThreepwood commented 5 years ago
14:31:06.708 [pool-1-thread-968] ERROR o.o.b.d.c.l.u.s.SceneControllerImpl ═╦═⚀ Could not apply action!
14:31:06.799 [pool-1-thread-968] ERROR o.o.b.d.c.l.u.s.SceneControllerImpl  ╚══╦═⚀ Could not instantiate ActionImpl!
14:31:06.799 [pool-1-thread-968] ERROR o.o.b.d.c.l.u.s.SceneControllerImpl     ╚══╦═⚀ Could not initialize class org.openbase.bco.dal.control.action.ActionImpl!
14:31:06.799 [pool-1-thread-968] ERROR o.o.b.d.c.l.u.s.SceneControllerImpl        ╚══╦═⚀ Given ActionDescription[label {}action_initiator {  initiator_id: "bf01c731-d6ea-4464-abf0-7aa7ced80008"}action_cause {  action_id: ""  action_initiator {  }  service_state_description {  }}service_state_description {  unit_id: "60cd9499-5d5f-483b-a47f-fa259ee918ff"  service_type: ACTIVATION_STATE_SERVICE  service_attribute_type: "org.openbase.type.domotic.state.ActivationStateType$ActivationState"  service_attribute: "{\"value\": \"DEACTIVE\"}"}priority: NORMALexecution_time_period: 0interruptible: trueschedulable: true] is invalid!
14:31:06.799 [pool-1-thread-968] ERROR o.o.b.d.c.l.u.s.SceneControllerImpl           ╚════⚀ Action is caused by an unidentifiable action [action_id: ""action_initiator {}service_state_description {}] (id is missing)
14:31:06.800 [pool-1-thread-968] ERROR o.o.b.d.c.l.u.s.SceneControllerImpl =====================================
14:31:06.801 [pool-1-thread-514] WARN  o.o.b.d.c.l.u.LightController New Action ActionImpl[84956920-7daa-4826-b0c5-bbcf4574c42b|POWER_STATE_SERVICE|{"value": "ON"}|82dc47b8-e590-4b4c-9019-745f99800429|14f41b41-44da-4801-b9ff-0d405fe09f32] from initiator 14f41b41-44da-4801-b9ff-0d405fe09f32 is older than a currently scheduled one
14:31:06.802 [pool-1-thread-514] WARN  o.o.b.d.c.a.ActionImpl Can not change the state to SCHEDULED of an already rejected action!
14:31:06.802 [pool-1-thread-514] WARN  o.o.b.d.c.a.ActionImpl
=== Stacktrace ===
org.openbase.jul.exception.StackTracePrinter.printStackTrace(StackTracePrinter.java:44)
org.openbase.bco.dal.control.action.ActionImpl.updateActionState(ActionImpl.java:407)
org.openbase.bco.dal.control.action.ActionImpl.schedule(ActionImpl.java:338)
org.openbase.bco.dal.control.layer.unit.AbstractUnitController.reschedule(AbstractUnitController.java:836)
org.openbase.bco.dal.control.layer.unit.AbstractUnitController.scheduleAction(AbstractUnitController.java:687)
org.openbase.bco.dal.control.layer.unit.AbstractUnitController.applyAction(AbstractUnitController.java:590)
org.openbase.bco.dal.control.layer.unit.AbstractUnitController.internalApplyActionAuthenticated(AbstractUnitController.java:963)
org.openbase.bco.dal.control.layer.unit.AbstractUnitController.lambda$applyActionAuthenticated$4(AbstractUnitController.java:944)
org.openbase.bco.authentication.lib.AuthenticatedServiceProcessor.authenticatedAction(AuthenticatedServiceProcessor.java:107)
org.openbase.bco.authentication.lib.AuthenticatedServiceProcessor.authenticatedAction(AuthenticatedServiceProcessor.java:67)
org.openbase.bco.dal.control.layer.unit.AbstractUnitController.lambda$applyActionAuthenticated$5(AbstractUnitController.java:922)
java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
java.base/java.lang.Thread.run(Thread.java:834)
==================
DivineThreepwood commented 5 years ago

All simulation issues has been fixed since commit openbase/bco.dal@261a919b