openbase / bco.dal

Domotic Abstraction Layer
Other
1 stars 2 forks source link

Concurrent modification exception on label change #114

Closed pLeminoq closed 6 years ago

pLeminoq commented 6 years ago

Today I setup a database for testing purposes. And when I changes the label of a device and with it the label of its dal unit a concurrent modification exception has been thrown:

09:25:07.155 [pool-2-thread-8] WARN  o.o.j.s.WatchDog ═╦═⚀ Could not start Service[RSBLocalServer[/home/colorablelight/schreibtischlampe/ctrl/]] try again in 10 seconds...
09:25:07.156 [pool-2-thread-8] WARN  o.o.j.s.WatchDog  ╚══╦═⚀ Could not activate listener!
09:25:07.157 [pool-2-thread-8] WARN  o.o.j.s.WatchDog     ╚════⚀ ConcurrentModificationException
09:25:07.158 [pool-2-thread-8] WARN  o.o.j.s.WatchDog =====================================

Maybe it should also be investigated why no stack trace has been printed for this exception even though BCO ran in verbose mode.

pLeminoq commented 6 years ago

Issue should be fixed. See #115 for a detailed description of what went wrong and what fixed it.