openbase / bco.dal

Domotic Abstraction Layer
Other
1 stars 2 forks source link

Simulation of battery states sets invalid values #121

Open pLeminoq opened 6 years ago

pLeminoq commented 6 years ago

I just started BCO in simulation mode which produces the following exception:

14:08:54.131 [pool-2-thread-5] ERROR o.o.b.d.l.s.s.BatteryStateServiceSimulator ═╦═⚀ Could not apply service modification!
14:08:54.132 [pool-2-thread-5] ERROR o.o.b.d.l.s.s.BatteryStateServiceSimulator  ╚══╦═⚀ Could not apply service[BATTERY_STATE_SERVICE] update[level: 55.0timestamp {  time: 1534766934129000}] for BatteryController[BATTERY[Bewegungsmelder]]!
14:08:54.132 [pool-2-thread-5] ERROR o.o.b.d.l.s.s.BatteryStateServiceSimulator     ╚════⚀ UNKNOWN.State is an invalid operation service state!
14:08:54.132 [pool-2-thread-5] ERROR o.o.b.d.l.s.s.BatteryStateServiceSimulator =====================================
14:08:54.132 [pool-2-thread-5] ERROR o.o.b.d.l.s.s.BatteryStateServiceSimulator Could not apply service modification!
org.openbase.jul.exception.CouldNotPerformException: Could not apply service modification!
    at org.openbase.jul.exception.printer.ExceptionPrinter.printHistory(ExceptionPrinter.java:174)
    at org.openbase.bco.dal.lib.simulation.service.AbstractScheduledServiceSimulator.lambda$new$0(AbstractScheduledServiceSimulator.java:99)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Caused by: org.openbase.jul.exception.CouldNotPerformException: Could not apply service[BATTERY_STATE_SERVICE] update[level: 55.0
timestamp {
  time: 1534766934129000
}
] for BatteryController[BATTERY[Bewegungsmelder]]!
    at org.openbase.bco.dal.lib.layer.unit.AbstractUnitController.applyDataUpdate(AbstractUnitController.java:620)
    at org.openbase.bco.dal.lib.simulation.service.AbstractScheduledServiceSimulator.lambda$new$0(AbstractScheduledServiceSimulator.java:97)
    ... 7 common frames omitted
Caused by: org.openbase.jul.exception.VerificationFailedException: UNKNOWN.State is an invalid operation service state!
    at org.openbase.bco.dal.lib.layer.service.Services.verifyOperationServiceStateValue(Services.java:389)
    at org.openbase.bco.dal.lib.layer.service.Services.verifyOperationServiceState(Services.java:374)
    at org.openbase.bco.dal.lib.layer.service.provider.BatteryStateProviderService.verifyBatteryState(BatteryStateProviderService.java:44)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.openbase.bco.dal.lib.layer.service.Services.verifyServiceState(Services.java:396)
    at org.openbase.bco.dal.lib.layer.unit.AbstractUnitController.applyDataUpdate(AbstractUnitController.java:575)
    ... 8 common frames omitted