Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

Agent user not available during unit test #162

Open
DivineThreepwood opened this issue Nov 8, 2019 · 0 comments
Open

Agent user not available during unit test #162

DivineThreepwood opened this issue Nov 8, 2019 · 0 comments
Assignees
Labels

Comments

@DivineThreepwood
Copy link
Member

Any Idea how this could happen?
Does just occur sometimes, any synchronization missing when keys are registered?

21:39:42.215 [pool-1-thread-84] INFO  o.o.j.s.r.ProtoBufFileSynchronizedRegistry [AgentConfigRegistry]: Register UnitConfig[agent-presence_light_agent_unit_test-9956d94b]...
21:39:42.372 [pool-1-thread-84] INFO  o.o.j.s.r.ProtoBufFileSynchronizedRegistry [AgentConfigRegistry]: 11% of max consistency checks passed of AgentConfigRegistry after 1 applied modifications.
21:39:42.383 [pool-1-thread-84] INFO  o.o.j.s.r.ProtoBufFileSynchronizedRegistry [AgentConfigRegistry]: 14% of max consistency checks passed of AgentConfigRegistry after 1 applied modifications.
21:39:42.394 [pool-1-thread-84] INFO  o.o.j.s.r.ProtoBufFileSynchronizedRegistry [AgentConfigRegistry]: 16% of max consistency checks passed of AgentConfigRegistry after 1 applied modifications.
21:39:42.405 [pool-1-thread-84] INFO  o.o.j.s.r.ProtoBufFileSynchronizedRegistry [AgentConfigRegistry]: 19% of max consistency checks passed of AgentConfigRegistry after 1 applied modifications.
21:39:42.406 [pool-1-thread-84] INFO  o.o.j.s.r.ProtoBufFileSynchronizedRegistry [AgentConfigRegistry]: 100% consistency checks passed of AgentConfigRegistry after 7 applied modifications.
21:39:42.445 [pool-1-thread-84] INFO  o.o.j.s.r.ProtoBufFileSynchronizedRegistry [LocationConfigRegistry]: 100% consistency checks passed of LocationConfigRegistry after 2 applied modifications.
21:39:42.514 [pool-1-thread-84] INFO  o.o.j.s.r.ProtoBufFileSynchronizedRegistry [UserConfigRegistry]: Register UnitConfig[user-presence_light_agent_unit_test_stairway_to_heaven-b2b2e190]...
21:39:42.781 [pool-1-thread-84] INFO  o.o.j.s.r.ProtoBufFileSynchronizedRegistry [UserConfigRegistry]: 100% consistency checks passed of UserConfigRegistry after 10 applied modifications.
21:39:42.808 [pool-1-thread-84] INFO  o.o.j.s.r.ProtoBufFileSynchronizedRegistry [LocationConfigRegistry]: 100% consistency checks passed of LocationConfigRegistry after 1 applied modifications.
21:39:42.917 [pool-1-thread-84] INFO  o.o.j.s.r.ProtoBufFileSynchronizedRegistry [AuthorizationGroupConfigRegistry]: 100% consistency checks passed of AuthorizationGroupConfigRegistry after 1 applied modifications.
21:39:42.999 [pool-1-thread-84] INFO  o.o.j.s.r.ProtoBufFileSynchronizedRegistry [LocationConfigRegistry]: Update UnitConfig[location-stairway_to_heaven-3a6c840f]...
21:39:43.451 [JavaFX Application Thread] INFO  o.o.j.p.JPTestMode Test mode enabled!
21:39:43.453 [JavaFX Application Thread] INFO  o.o.j.t.FileHandler Create missing directory /var/folders/2n/p7243b0x4v7fnzb39sdrfc_w0000gn/T/test/bcoaction-inspector/divine/var
21:39:43.454 [JavaFX Application Thread] INFO  o.o.j.t.FileHandler Create missing directory /var/folders/2n/p7243b0x4v7fnzb39sdrfc_w0000gn/T/test/bcoaction-inspector/divine/var/registry/db
21:39:43.455 [JavaFX Application Thread] INFO  o.o.j.t.FileHandler Create missing directory /var/folders/2n/p7243b0x4v7fnzb39sdrfc_w0000gn/T/test/bcoaction-inspector/divine/var/registry/db/authorization-group-config-db
21:39:43.456 [JavaFX Application Thread] INFO  o.o.j.t.FileHandler Create missing directory /var/folders/2n/p7243b0x4v7fnzb39sdrfc_w0000gn/T/test/bcoaction-inspector/divine/var/registry/db/service-template-db
21:39:43.456 [JavaFX Application Thread] INFO  o.o.j.t.FileHandler Create missing directory /var/folders/2n/p7243b0x4v7fnzb39sdrfc_w0000gn/T/test/bcoaction-inspector/divine/var/registry/db/agent-config-db
21:39:43.456 [JavaFX Application Thread] INFO  o.o.j.t.FileHandler Create missing directory /var/folders/2n/p7243b0x4v7fnzb39sdrfc_w0000gn/T/test/bcoaction-inspector/divine/var/registry/db/unit-template-db
21:39:43.456 [JavaFX Application Thread] INFO  o.o.j.t.FileHandler Create missing directory /var/folders/2n/p7243b0x4v7fnzb39sdrfc_w0000gn/T/test/bcoaction-inspector/divine/var/registry/db/agent-class-db
21:39:43.457 [JavaFX Application Thread] INFO  o.o.j.t.FileHandler Create missing directory /var/folders/2n/p7243b0x4v7fnzb39sdrfc_w0000gn/T/test/bcoaction-inspector/divine/var/registry/db/activity-config-db
21:39:43.457 [JavaFX Application Thread] INFO  o.o.j.p.JPVerbose Verbose is enabled!
21:39:43.458 [JavaFX Application Thread] INFO  o.o.j.t.FileHandler Create missing directory /var/folders/2n/p7243b0x4v7fnzb39sdrfc_w0000gn/T/test/bcoaction-inspector/divine/var/registry/db/location-config-db
21:39:43.458 [JavaFX Application Thread] INFO  o.o.j.t.FileHandler Create missing directory /var/folders/2n/p7243b0x4v7fnzb39sdrfc_w0000gn/T/test/bcoaction-inspector/divine/var/registry/db/scene-config-db
21:39:43.458 [JavaFX Application Thread] INFO  o.o.j.t.FileHandler Create missing directory /var/folders/2n/p7243b0x4v7fnzb39sdrfc_w0000gn/T/test/bcoaction-inspector/divine/var/registry/db/connection-config-db
21:39:43.459 [JavaFX Application Thread] INFO  o.o.j.t.FileHandler Create missing directory /var/folders/2n/p7243b0x4v7fnzb39sdrfc_w0000gn/T/test/bcoaction-inspector/divine/var/registry/db/object-config-db
21:39:43.459 [JavaFX Application Thread] INFO  o.o.j.t.FileHandler Create missing directory /var/folders/2n/p7243b0x4v7fnzb39sdrfc_w0000gn/T/test/bcoaction-inspector/divine/var/registry/db/app-class-db
21:39:43.459 [JavaFX Application Thread] INFO  o.o.j.t.FileHandler Create missing directory /var/folders/2n/p7243b0x4v7fnzb39sdrfc_w0000gn/T/test/bcoaction-inspector/divine/var/registry/db/app-config-db
21:39:43.459 [JavaFX Application Thread] INFO  o.o.j.t.FileHandler Create missing directory /var/folders/2n/p7243b0x4v7fnzb39sdrfc_w0000gn/T/test/bcoaction-inspector/divine/var/registry/db/dal-unit-config-db
21:39:43.460 [JavaFX Application Thread] INFO  o.o.j.t.FileHandler Create missing directory /var/folders/2n/p7243b0x4v7fnzb39sdrfc_w0000gn/T/test/bcoaction-inspector/divine/var/registry/db/unit-group-config-db
21:39:43.460 [JavaFX Application Thread] INFO  o.o.j.t.FileHandler Create missing directory /var/folders/2n/p7243b0x4v7fnzb39sdrfc_w0000gn/T/test/bcoaction-inspector/divine/var/registry/db/device-config-db
21:39:43.460 [JavaFX Application Thread] INFO  o.o.j.t.FileHandler Create missing directory /var/folders/2n/p7243b0x4v7fnzb39sdrfc_w0000gn/T/test/bcoaction-inspector/divine/var/registry/db/device-class-db
21:39:43.461 [JavaFX Application Thread] INFO  o.o.j.t.FileHandler Create missing directory /var/folders/2n/p7243b0x4v7fnzb39sdrfc_w0000gn/T/test/bcoaction-inspector/divine/share
21:39:43.476 [JavaFX Application Thread] INFO  o.o.j.t.FileHandler Create missing directory /var/folders/2n/p7243b0x4v7fnzb39sdrfc_w0000gn/T/test/bcoaction-inspector/divine/var/registry/db/activity-template-db
21:39:43.477 [JavaFX Application Thread] INFO  o.o.j.t.FileHandler Create missing directory /var/folders/2n/p7243b0x4v7fnzb39sdrfc_w0000gn/T/test/bcoaction-inspector/divine/var/credentials
21:39:43.478 [JavaFX Application Thread] INFO  o.o.j.t.FileHandler Create missing directory /var/folders/2n/p7243b0x4v7fnzb39sdrfc_w0000gn/T/test/bcoaction-inspector/divine/var/registry/db/user-config-db
21:39:43.505 [pool-1-thread-84] INFO  o.o.b.d.c.l.u.UnitControllerRegistrySynchronizer 2 changes synchronized.
21:39:43.648 [pool-1-thread-84] INFO  o.o.b.d.c.l.u.UnitControllerRegistrySynchronizer 1 changes synchronized. 1 is skipped.
21:39:43.648 [pool-1-thread-84] ERROR o.o.b.d.c.l.u.UnitControllerRegistrySynchronizer ═╦═⚀ Entry registry sync failed!
21:39:43.648 [pool-1-thread-84] ERROR o.o.b.d.c.l.u.UnitControllerRegistrySynchronizer  ╚══╦═⚀ Could not sync all entries!
21:39:43.648 [pool-1-thread-84] ERROR o.o.b.d.c.l.u.UnitControllerRegistrySynchronizer     ╚══╦═⚀ Could not register 1 entries!
21:39:43.648 [pool-1-thread-84] ERROR o.o.b.d.c.l.u.UnitControllerRegistrySynchronizer        ╚══╦═⚀ Could not instantiate Agent[agent-presence_light_agent_unit_test-9956d94b]!
21:39:43.648 [pool-1-thread-84] ERROR o.o.b.d.c.l.u.UnitControllerRegistrySynchronizer           ╚══╦═⚀ Could not initialize class org.openbase.bco.app.preset.agent.PresenceLightAgent!
21:39:43.649 [pool-1-thread-84] ERROR o.o.b.d.c.l.u.UnitControllerRegistrySynchronizer              ╚══╦═⚀ Could not initialize class org.openbase.bco.app.preset.agent.PresenceLightAgent!
21:39:43.649 [pool-1-thread-84] ERROR o.o.b.d.c.l.u.UnitControllerRegistrySynchronizer                 ╚══╦═⚀ Could not create authentication token for  Presence_Light_Agent_Unit_Test
21:39:43.649 [pool-1-thread-84] ERROR o.o.b.d.c.l.u.UnitControllerRegistrySynchronizer                    ╚════⚀ Entry with key[user-presence_light_agent_unit_test_stairway_to_heaven-b2b2e190] is not available!
21:39:43.649 [pool-1-thread-84] ERROR o.o.b.d.c.l.u.UnitControllerRegistrySynchronizer =====================================
21:39:43.716 [pool-1-thread-84] ERROR o.o.b.d.c.l.u.UnitControllerRegistrySynchronizer Entry registry sync failed!
org.openbase.jul.exception.CouldNotPerformException: Entry registry sync failed!
	at org.openbase.jul.storage.registry.AbstractSynchronizer.internalSync(AbstractSynchronizer.java:249)
	at org.openbase.jul.storage.registry.AbstractSynchronizer.access$000(AbstractSynchronizer.java:46)
	at org.openbase.jul.storage.registry.AbstractSynchronizer$1.relay(AbstractSynchronizer.java:90)
	at org.openbase.jul.schedule.RecurrenceEventFilter.relay(RecurrenceEventFilter.java:245)
	at org.openbase.jul.schedule.RecurrenceEventFilter.callRelay(RecurrenceEventFilter.java:229)
	at org.openbase.jul.schedule.RecurrenceEventFilter.trigger(RecurrenceEventFilter.java:152)
	at org.openbase.jul.schedule.RecurrenceEventFilter.trigger(RecurrenceEventFilter.java:100)
	at org.openbase.jul.storage.registry.AbstractSynchronizer.lambda$new$0(AbstractSynchronizer.java:97)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: org.openbase.jul.exception.MultiException: Could not sync all entries!
	at org.openbase.jul.exception.MultiException.checkAndThrow(MultiException.java:82)
	at org.openbase.jul.storage.registry.AbstractSynchronizer.internalSync(AbstractSynchronizer.java:240)
	... 12 common frames omitted
Caused by: org.openbase.jul.exception.MultiException: Could not register 1 entries!
	at org.openbase.jul.exception.MultiException.checkAndThrow(MultiException.java:82)
	at org.openbase.jul.storage.registry.AbstractSynchronizer.internalSync(AbstractSynchronizer.java:236)
	... 12 common frames omitted
Caused by: org.openbase.jul.exception.InstantiationException: Could not instantiate Agent[agent-presence_light_agent_unit_test-9956d94b]!
	at org.openbase.bco.dal.control.layer.unit.agent.AgentControllerFactoryImpl.newInstance(AgentControllerFactoryImpl.java:92)
	at org.openbase.bco.dal.control.layer.unit.agent.AgentControllerFactoryImpl.newInstance(AgentControllerFactoryImpl.java:44)
	at org.openbase.jul.storage.registry.RegistrySynchronizer.register(RegistrySynchronizer.java:105)
	at org.openbase.jul.storage.registry.ActivatableEntryRegistrySynchronizer.register(ActivatableEntryRegistrySynchronizer.java:60)
	at org.openbase.jul.storage.registry.RegistrySynchronizer.register(RegistrySynchronizer.java:96)
	at org.openbase.jul.storage.registry.RegistrySynchronizer.register(RegistrySynchronizer.java:44)
	at org.openbase.jul.storage.registry.AbstractSynchronizer.registerInternal(AbstractSynchronizer.java:273)
	at org.openbase.jul.storage.registry.AbstractSynchronizer.internalSync(AbstractSynchronizer.java:185)
	... 12 common frames omitted
Caused by: org.openbase.jul.exception.InitializationException: Could not initialize class org.openbase.bco.app.preset.agent.PresenceLightAgent!
	at org.openbase.bco.dal.control.layer.unit.AbstractUnitController.init(AbstractUnitController.java:287)
	at org.openbase.bco.dal.control.layer.unit.AbstractExecutableBaseUnitController.init(AbstractExecutableBaseUnitController.java:80)
	at org.openbase.bco.app.preset.agent.PresenceLightAgent.init(PresenceLightAgent.java:69)
	at org.openbase.bco.dal.control.layer.unit.agent.AgentControllerFactoryImpl.newInstance(AgentControllerFactoryImpl.java:90)
	... 19 common frames omitted
Caused by: org.openbase.jul.exception.InitializationException: Could not initialize class org.openbase.bco.app.preset.agent.PresenceLightAgent!
	at org.openbase.jul.communication.controller.AbstractConfigurableController.init(AbstractConfigurableController.java:78)
	at org.openbase.bco.dal.control.layer.unit.AbstractUnitController.init(AbstractUnitController.java:285)
	... 22 common frames omitted
Caused by: org.openbase.jul.exception.CouldNotPerformException: Could not create authentication token for  Presence_Light_Agent_Unit_Test
	at org.openbase.bco.dal.control.layer.unit.AbstractAuthorizedBaseUnitController.requestAuthToken(AbstractAuthorizedBaseUnitController.java:122)
	at org.openbase.bco.dal.control.layer.unit.AbstractAuthorizedBaseUnitController.applyConfigUpdate(AbstractAuthorizedBaseUnitController.java:78)
	at org.openbase.bco.dal.control.layer.unit.AbstractAuthorizedBaseUnitController.applyConfigUpdate(AbstractAuthorizedBaseUnitController.java:60)
	at org.openbase.jul.communication.controller.AbstractConfigurableController.init(AbstractConfigurableController.java:74)
	... 23 common frames omitted
Caused by: org.openbase.jul.exception.NotAvailableException: Entry with key[user-presence_light_agent_unit_test_stairway_to_heaven-b2b2e190] is not available!
	at org.openbase.bco.authentication.lib.AbstractProtectedStore.getEntry(AbstractProtectedStore.java:164)
	at org.openbase.bco.authentication.lib.CredentialStore.getCredentials(CredentialStore.java:66)
	at org.openbase.bco.authentication.lib.SessionManager.loginUser(SessionManager.java:232)
	at org.openbase.bco.dal.control.layer.unit.AbstractAuthorizedBaseUnitController.requestAuthToken(AbstractAuthorizedBaseUnitController.java:114)
	... 26 common frames omitted
21:39:43.726 [pool-1-thread-84] ERROR o.o.b.d.c.l.u.UnitControllerRegistrySynchronizer =====================================

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants