Dim
(Angelos)
December 7, 2018, 3:19pm
41
if it’s not too much trouble: try to upgrade your Zulu JVM to something newer
You are on the latest core (OH 2.4.0.S1452) with the latest binding 201812070742
being loaded… I don’t know why you are still getting these comms errors…
mludi
(Matthias Ludwig)
December 7, 2018, 3:45pm
42
So I updated java
openjdk version "1.8.0_181" OpenJDK Runtime Environment (Zulu 8.31.1.122-linux_aarch32hf) (build 1.8.0_181-b122) OpenJDK Client VM (Zulu 8.31.1.122-linux_aarch32hf) (build 25.181-b122, mixed mode, Evaluation)
But still the same error
2018-12-07 16:38:42.268 [hingStatusInfoChangedEvent] - 'homematic:bridge:OEQ0302737' changed from INITIALIZING to OFFLINE (COMMUNICATION_ERROR): Unknown XML-RPC tag: title
Maybe an issue with raspberrymatic?
Dim
(Angelos)
December 7, 2018, 4:15pm
43
I don’t think that I can help you advance this… I don’t use Homematic… all the troubleshooting steps for the basic configs are done.
Maybe, double/triple check that auth is disabled on the CCU.
Dim
(Angelos)
December 7, 2018, 4:32pm
44
I found something that may be relevant:
break;
case "params":
case "param":
case "methodcall":
case "methodresponse":
case "member":
case "data":
case "fault":
break;
default:
throw new SAXException("Unknown XML-RPC tag: " + currentTag);
}
}
@Override
public void characters(char[] ch, int start, int length) throws SAXException {
tagValue.append(new String(ch, start, length));
}
}
}
The is no case “title” in the code so it ends up in the default case (which throws the exception)
Maybe you should open up an issue on https://github.com/eclipse/smarthome/issues?q=homematic
1 Like
mludi
(Matthias Ludwig)
December 7, 2018, 5:00pm
45
Ok, interesting, I’ll have a look. Thanks Dim!
1 Like
mludi
(Matthias Ludwig)
December 7, 2018, 6:11pm
46
@Dim I activated, deactivated the authentication in the CCU, no success.
But then I did a restart It works! Thanks for your help
2 Likes
Dim
(Angelos)
December 7, 2018, 6:11pm
47
mludi:
restart
the magic solution for all IT problems
glad you got it to work!
1 Like
StefanH
(Stefan Haupt)
December 12, 2018, 8:57am
48
EDIT: I went the easy route and rolled back my raspberrymatic firmware. Now it’s working fine again.
OLD POST:
facing the same issue after upgrading raspberrymatic to latest version when running OH2.3
Strange, immediately after the upgrade, everything was fine. Then problems came up a few hours after the upgrade.
On CCU2, authentication is disabled and security rules are inactive (firewall off API access allowed).I did already restart the CCU2 twice.
Btw: When I tried to upgrade the homematic bundle I saw:
2018-12-12 09:54:19.793 [INFO ] [org.openhab.binding.homematic ] - FrameworkEvent INFO - org.openhab.binding.homematic
java.io.IOException: Exception in opening zip file: /var/lib/openhab2/cache/org.eclipse.osgi/213/0/bundleFile
So I stopped openhab2 service and cleaned cache using openhab-cli command. Still no success.
Only after uninstalling the default bundle and then installing from web it worked, but now I see:
2018-12-12 10:23:34.654 [INFO ] [ommunicator.AbstractHomematicGateway] - HmGatewayInfo[id=CCU,type=CCU2,firmware=3.41.11.20181126,address=OEQ0608085,wired=false,hmip=true,cuxd=false,group=true]
2018-12-12 10:23:49.714 [ERROR] [matic.handler.HomematicBridgeHandler] - Homematic bridge was set to OFFLINE-COMMUNICATION_ERROR due to the following exception: Read timed out
Stefan
wborn
(Wouter Born)
December 16, 2018, 8:44am
49
There’s now an issue for this:
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.