openbase / bco.dal

Domotic Abstraction Layer
Other
1 stars 2 forks source link

ReLogin Interrupted Exception #127

Closed DivineThreepwood closed 5 years ago

DivineThreepwood commented 5 years ago

Different tests are failing because of the following Interrupted Exception:

12:50:04.562 [pool-1-thread-95] INFO  o.o.b.m.d.c.DeviceManagerController$1 1 changes synchronized.
Add to list
GetColorRemote1
12:50:04.650 [pool-1-thread-89] INFO  o.o.j.s.r.ProtoBufFileSynchronizedRegistry [DalUnitConfigRegistry]: Update UnitConfig[PowerSwitch:9ea8068f-16ef-4d83-9994-22612a1e3901]...
GetColorRemote2
12:50:04.719 [pool-1-thread-89] INFO  o.o.j.s.r.ProtoBufFileSynchronizedRegistry [DeviceConfigRegistry]: Update UnitConfig[Device:SimpleDevice_7:476a96a0-8b4d-4652-9939-c3b95113f356]...
GetPowerRemote
SetPowerState1
12:50:04.894 [pool-1-thread-95] INFO  o.o.b.d.l.l.u.ColorableLightController BCO changed PowerStateService of unit entry { key: "en" value: "Simple Device 8" } COLORABLE LIGHT 0 to value: ON
12:50:04.894 [pool-1-thread-95] INFO  o.o.b.d.l.l.u.ColorableLightController ================
SetPowerState2
12:50:04.979 [pool-1-thread-2] INFO  o.o.b.d.l.l.u.ColorableLightController BCO changed PowerStateService of unit entry { key: "en" value: "Simple Device 8" } COLORABLE LIGHT 1 to value: OFF
12:50:04.979 [pool-1-thread-2] INFO  o.o.b.d.l.l.u.ColorableLightController ================
12:50:05.046 [pool-1-thread-84] INFO  o.o.b.m.d.c.DeviceManagerController$1 1 changes synchronized.
SetPowerState3
12:50:05.056 [pool-1-thread-94] INFO  o.o.b.d.l.l.u.PowerSwitchController BCO changed PowerStateService of unit entry { key: "en" value: "Simple Device 8" } POWER SWITCH 0 to value: ON
12:50:05.056 [pool-1-thread-94] INFO  o.o.b.d.l.l.u.PowerSwitchController ================
Register device
12:50:05.121 [pool-1-thread-84] INFO  o.o.j.s.r.ProtoBufFileSynchronizedRegistry [DeviceConfigRegistry]: Register UnitConfig[Device:SimpleDevice_9:6e3793f5-d3cc-4de4-9e9f-82933c3a83eb]...
12:50:05.206 [pool-1-thread-84] INFO  o.o.j.s.r.ProtoBufFileSynchronizedRegistry [DeviceConfigRegistry]: 100% consistency checks passed of DeviceConfigRegistry after 6 applied modifications.
12:50:05.208 [pool-1-thread-84] INFO  o.o.j.s.r.ProtoBufFileSynchronizedRegistry [DalUnitConfigRegistry]: Register UnitConfig[ColorableLight:19106fa2-491d-4f64-910f-6f479b1d857d]...
12:50:05.590 [pool-1-thread-84] INFO  o.o.j.s.r.ProtoBufFileSynchronizedRegistry [DalUnitConfigRegistry]: 100% consistency checks passed of DalUnitConfigRegistry after 14 applied modifications.
12:50:05.593 [pool-1-thread-84] INFO  o.o.j.s.r.ProtoBufFileSynchronizedRegistry [LocationConfigRegistry]: 100% consistency checks passed of LocationConfigRegistry after 1 applied modifications.
12:50:05.634 [pool-1-thread-84] INFO  o.o.j.s.r.ProtoBufFileSynchronizedRegistry [DalUnitConfigRegistry]: Register UnitConfig[ColorableLight:b2b3caf3-c6b7-4502-92ac-768fb6e58328]...
12:50:05.865 [pool-1-thread-84] INFO  o.o.j.s.r.ProtoBufFileSynchronizedRegistry [DalUnitConfigRegistry]: 100% consistency checks passed of DalUnitConfigRegistry after 14 applied modifications.
12:50:05.889 [pool-1-thread-84] INFO  o.o.j.s.r.ProtoBufFileSynchronizedRegistry [LocationConfigRegistry]: 100% consistency checks passed of LocationConfigRegistry after 1 applied modifications.
12:50:05.950 [pool-1-thread-84] INFO  o.o.j.s.r.ProtoBufFileSynchronizedRegistry [DalUnitConfigRegistry]: Register UnitConfig[PowerSwitch:83640182-1770-483a-9997-cafede804e3d]...
12:50:06.183 [Time-limited test] ERROR o.o.b.m.d.t.DalRegisterDeviceTest ═══⚀ InterruptedException
12:50:06.184 [Time-limited test] ERROR o.o.b.m.d.t.DalRegisterDeviceTest =====================================
12:50:06.202 [Time-limited test] ERROR o.o.b.m.d.t.DalRegisterDeviceTest InterruptedException
java.lang.InterruptedException: null
    at java.util.concurrent.FutureTask.awaitDone(FutureTask.java:404)
    at java.util.concurrent.FutureTask.get(FutureTask.java:191)
    at org.openbase.jul.schedule.AbstractSynchronizationFuture.get(AbstractSynchronizationFuture.java:175)
    at org.openbase.bco.authentication.lib.future.ReLoginFuture.get(ReLoginFuture.java:90)
    at org.openbase.bco.authentication.lib.future.AbstractAuthenticationFuture.get(AbstractAuthenticationFuture.java:119)
    at org.openbase.bco.manager.device.test.DalRegisterDeviceTest.testRegisteringManyDevices(DalRegisterDeviceTest.java:215)
    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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)
    at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.lang.Thread.run(Thread.java:748)
12:50:06.203 [Time-limited test] ERROR o.o.b.m.d.t.DalRegisterDeviceTest =====================================

org.junit.runners.model.TestTimedOutException: test timed out after 15000 milliseconds

    at sun.misc.Unsafe.park(Native Method)
    at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
    at java.util.concurrent.FutureTask.awaitDone(FutureTask.java:429)
    at java.util.concurrent.FutureTask.get(FutureTask.java:191)
    at org.openbase.jul.schedule.AbstractSynchronizationFuture.get(AbstractSynchronizationFuture.java:175)
    at org.openbase.bco.authentication.lib.future.ReLoginFuture.get(ReLoginFuture.java:90)
    at org.openbase.bco.authentication.lib.future.AbstractAuthenticationFuture.get(AbstractAuthenticationFuture.java:119)
    at org.openbase.bco.manager.device.test.DalRegisterDeviceTest.testRegisteringManyDevices(DalRegisterDeviceTest.java:215)
    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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)
    at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.lang.Thread.run(Thread.java:748)

Potential Reasons: