New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Circular reference detected" trying to get service MetadataProvider #890
Comments
@digitaldan Do you maybe know if there is a specific bundle involved in your case which is not part of OHC and could be the cause for this circular reference (see #989 (comment))? |
@cweitkamp Let me know if I can help test. |
@cweitkamp apologies for missing your response in Aug, I am not aware of any bundle that would have specifically caused this, and I don't think i have seen it happen in other upgrades (nightlies) since then, but i am about to upgrade right now and will let you know if it happens. I have quite a few bindings installed if it helps, this should be similar to what was installed in Aug.
|
I run into this circular dependency myself from time to time (but very rarely). If I run into the problem the situation is mostly the same:
Today I took a moment to analyze it a little bit as I would like to eliminate that annoying behaviour. For me it seems that this is caused by calling "open" of the service tracker in the activation phase of the component itself. The open will try to bind the referenced services (and eventual activates it). This will result into a possible cycle. Opening a service tracker in a component activation method is not generally wrong but in this case it could create a cycle. What I have done to (hopefully) eliminate the problem:
This way, open is not called in the component activation phase anymore and deactivation works as before. At the moment I cannot reproduce the error while simulate the scenario (first start after update) multiple times. |
Related to: openhab#890 Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
This could be of your interest: |
Fixes openhab#890 Signed-off-by: Wouter Born <github@maindrain.net>
* Initial moving concepts pages from ESH repo. * Fix iconset ressource path * Remove vuepress preview config filter due to reintregration. * Remove vuepress preview config filter due to reintregration. FIX Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
…penhab#1719) * Open ProviderTracker asynchronously when activating AbstractRegistry Fixes openhab#890 Signed-off-by: Wouter Born <github@maindrain.net> GitOrigin-RevId: 3d88e91
I just tried upgrading to the latest build (core 2.5.0.201906210301) and during the first boot up I had circular reference errors (pasted below) fill up my logs, repeating indefinitely .
I restarted the process, and the second time it got further, installing most packages but complained over and over about
1. java.lang.NoClassDefFoundError: Could not initialize class org.glassfish.jersey.media.sse.SseFeature
which i believe is a known error?The embedded SSH server did not start on the second restart (i have seen this before on builds of late). Its possible other bundles did not start properly as well, but thats the only one i noticed.
Restarting a third time seemed to resolve all issues and so far the system looks normal.
circular reference errors:
The text was updated successfully, but these errors were encountered: