openbase / bco.dal

Domotic Abstraction Layer
Other
1 stars 2 forks source link

BCO Just blocks if spread is not started #71

Closed DivineThreepwood closed 5 years ago

DivineThreepwood commented 6 years ago

There is no good feedback generated if the spread deamon is not startet. BCO just blocks with registry timeouts without giving any feedback.

We need to thing about how we can detect such situations and generate feedback to avoid losing time in error identification.

DivineThreepwood commented 5 years ago

Has been fixed in meanwhile. BCO prints

17:37:10.940 [pool-2-thread-6] WARN  o.o.j.s.WatchDog ═╦═⚀ Could not start Service[RSBListener[/registry/activity/status/]] try again in 5 seconds...
17:37:10.941 [pool-2-thread-6] WARN  o.o.j.s.WatchDog  ╚══╦═⚀ Could not activate listener!
17:37:10.942 [pool-2-thread-6] WARN  o.o.j.s.WatchDog     ╚══╦═⚀ Could not create spread connection host=localhost, port=4803
17:37:10.943 [pool-2-thread-6] WARN  o.o.j.s.WatchDog        ╚════⚀ Socket(): java.net.ConnectException: Connection refused (Connection refused)

in case the middleware is not ready.