mashborn
(Michael Aschenborn)
January 5, 2019, 9:13am
1
Hi,
since 2.5 Updates I got these errors every minute:
2019-01-05 10:04:10.857 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-binding-3831369': Error restarting bundles:
Exception in org.eclipse.smarthome.io.rest.sse.internal.SseActivator.start() of bundle org.eclipse.smarthome.io.rest.sse.
How can I remove this bundle?feature?binding?
I would like to understand and not just copy some console-commands…
There seems to be an unknown binding.
What is the best way to detect it, if I only know the name from the error message?
Thank for your help
Michael
vzorglub
(Vincent Regaud)
January 5, 2019, 10:39am
2
This looks like a market place binding
Do you have any of these installed?
Have you added some in your addons.cfg?
wborn
(Wouter Born)
January 5, 2019, 11:12am
3
If you can’t remove it via Paper UI, you can also remove it by editing:
/etc/openhab2/services/addons.cfg
/var/lib/openhab2/config/org/openhab/addons.config
opened 06:22PM - 15 Dec 18 UTC
closed 11:44AM - 01 Dec 19 UTC
When the runtime is started for the first time, sometimes the following exceptio… ns occur:
```
18:16:48.496 [ERROR] [org.eclipse.smarthome.io.rest.sse ] - FrameworkEvent ERROR - org.eclipse.smarthome.io.rest.sse
org.osgi.framework.BundleException: Exception in org.eclipse.smarthome.io.rest.sse.internal.SseActivator.start() of bundle org.eclipse.smarthome.io.rest.sse.
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:800) ~[?:?]
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:729) [?:?]
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:933) ~[?:?]
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:309) ~[?:?]
at org.eclipse.osgi.container.Module.doStart(Module.java:581) ~[?:?]
at org.eclipse.osgi.container.Module.start(Module.java:449) ~[?:?]
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:468) ~[?:?]
at org.eclipse.osgi.container.ModuleContainer.start(ModuleContainer.java:750) ~[?:?]
at org.eclipse.osgi.container.ModuleContainer.applyDelta(ModuleContainer.java:741) ~[?:?]
at org.eclipse.osgi.container.ModuleContainer.resolveAndApply(ModuleContainer.java:511) ~[?:?]
at org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:457) ~[?:?]
at org.eclipse.osgi.container.ModuleContainer.refresh(ModuleContainer.java:1001) ~[?:?]
at org.eclipse.osgi.container.ModuleContainer$ContainerWiring.dispatchEvent(ModuleContainer.java:1382) ~[?:?]
at org.eclipse.osgi.container.ModuleContainer$ContainerWiring.dispatchEvent(ModuleContainer.java:1) ~[?:?]
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) [?:?]
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340) [?:?]
Caused by: java.lang.LinkageError: ClassCastException: attempting to castbundleresource://31.fwk1468303011/javax/ws/rs/ext/RuntimeDelegate.class to bundleresource://31.fwk1468303011/javax/ws/rs/ext/RuntimeDelegate.class
at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:146) ~[?:?]
at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:120) ~[?:?]
at javax.ws.rs.core.MediaType.valueOf(MediaType.java:179) ~[?:?]
at org.glassfish.jersey.media.sse.SseFeature.<clinit>(SseFeature.java:62) ~[?:?]
at org.eclipse.smarthome.io.rest.sse.internal.SseActivator.start(SseActivator.java:49) ~[?:?]
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:779) ~[?:?]
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1) ~[?:?]
at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:772) ~[?:?]
... 15 more
```
...
```
org.apache.karaf.features.internal.util.MultiException: Error restarting bundles:
Exception in org.eclipse.smarthome.io.rest.sse.internal.SseActivator.start() of bundle org.eclipse.smarthome.io.rest.sse.
at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:1005)
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1025)
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:964)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Suppressed: org.osgi.framework.BundleException: Exception in org.eclipse.smarthome.io.rest.sse.internal.SseActivator.start() of bundle org.eclipse.smarthome.io.rest.sse.
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:800)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:729)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:933)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:309)
at org.eclipse.osgi.container.Module.doStart(Module.java:581)
at org.eclipse.osgi.container.Module.start(Module.java:449)
at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:383)
at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:402)
at org.apache.karaf.features.internal.service.BundleInstallSupportImpl.startBundle(BundleInstallSupportImpl.java:161)
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1116)
at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:997)
... 6 more
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.glassfish.jersey.media.sse.SseFeature
at org.eclipse.smarthome.io.rest.sse.internal.SseActivator.start(SseActivator.java:49)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:779)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:772)
... 16 more
```
As a result SSE doesn't work properly and updates aren't received by for instance Basic UI.
When the runtime is restarted the exceptions no longer occur and SSE works properly.
This is an old issue and has been around since at least August 2016, see this [community post](https://community.openhab.org/t/broken-my-openhab/12967?u=wborn).
A community search shows [similar issue reports](https://community.openhab.org/search?q=org.eclipse.smarthome.io.rest.sse.internal.SseActivator%20order%3Alatest).
Sometimes issues are opened for this in other repositories:
* https://github.com/openhab/openhab-distro/issues/427
* https://github.com/openhab/openhab2-addons/issues/2003
Here's a [console.log](https://github.com/eclipse/smarthome/files/2682958/console.log) with Karaf debug logging enabled while reproducing the issue with openHAB 2.4.0.RC1.
mashborn
(Michael Aschenborn)
January 5, 2019, 11:14am
4
add-ons.cfg is empty (everything is #ed )
But in /var/lib/openhab2/config/org/openhab/addons.config I can find:
binding="knx,[...],binding-3831369,[...],amazonechocontrol"
After removing it there and restarting OH the error didn’t appeared again.
2 Likes
wborn
(Wouter Born)
January 5, 2019, 11:15am
5
If you comment lines in addons.cfg
they will remain in addons.config
.
1 Like
vzorglub
(Vincent Regaud)
January 5, 2019, 11:17am
6
Coolio, please tick the solution, Thanks