Harmony disconnect

I’m having trouble with the harmony binding not reconnecting to my hub after the hub is disconnected for some external reason.

For example, this morning I updated the firmware on my AP’s which caused the wireless to go down for a few minutes. The hub reconnected to wireless as expected but OH kept throwing various heartbeat, connection broken stream errors regarding my hub until I restarted the OH service.

I didn’t used to have this issue with OH 1.8 and binding 1.9.

I’m on OH 2 stable and harmony binding 2.

Anybody? This has to be a bug and would be nice to fix. I did some testing and the hub DOES reconnect but continues to throw errors. I can control and see changes from OH but yet it continues to throw these errors in OH.log:

2017-02-27 18:01:25.584 [WARN ] [rg.jivesoftware.smack.XMPPConnection] - Connection closed with error
java.io.EOFException: no more data available - expected end tag </stream:stream> to close start tag stream:stream from line 1, parser stopped on END_TAG seen …
.… @1:640
at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3035)[203:org.openhab.binding.harmonyhub:2.0.0]
at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046)[203:org.openhab.binding.harmonyhub:2.0.0]
at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1144)[203:org.openhab.binding.harmonyhub:2.0.0]
at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)[203:org.openhab.binding.harmonyhub:2.0.0]
at org.jivesoftware.smack.tcp.PacketReader.parsePackets(PacketReader.java:279)[203:org.openhab.binding.harmonyhub:2.0.0]
at org.jivesoftware.smack.tcp.PacketReader.access$000(PacketReader.java:47)[203:org.openhab.binding.harmonyhub:2.0.0]
at org.jivesoftware.smack.tcp.PacketReader$1.run(PacketReader.java:81)[203:org.openhab.binding.harmonyhub:2.0.0]

2017-02-27 18:08:53.739 [WARN ] [rg.jivesoftware.smack.XMPPConnection] - Connection closed with error
java.io.EOFException: no more data available - expected end tag </stream:stream> to close start tag stream:stream from line 1, parser stopped on END_TAG seen …… @9:1392
at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3035)[203:org.openhab.binding.harmonyhub:2.0.0]
at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046)[203:org.openhab.binding.harmonyhub:2.0.0]
at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1144)[203:org.openhab.binding.harmonyhub:2.0.0]
at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)[203:org.openhab.binding.harmonyhub:2.0.0]
at org.jivesoftware.smack.tcp.PacketReader.parsePackets(PacketReader.java:279)[203:org.openhab.binding.harmonyhub:2.0.0]
at org.jivesoftware.smack.tcp.PacketReader.access$000(PacketReader.java:47)[203:org.openhab.binding.harmonyhub:2.0.0]
at org.jivesoftware.smack.tcp.PacketReader$1.run(PacketReader.java:81)[203:org.openhab.binding.harmonyhub:2.0.0]

Mine was running fine last week and also started misbehaving this weekend when I setup some new rules to control it. I’m getting the same error every 40 seconds or so which is blowing up my log files. Going to try uninstalling / reinstalling the binding to see if it might reset.

Well, after reininstalling the binding now I’m getting even more errors. Looks like it is having problems with some 3rd party libraries:

2017-03-02 07:39:51.874 [ERROR] [org.openhab.binding.harmonyhub      ] - FrameworkEvent ERROR - org.openhab.binding.harmonyhub
java.io.IOException: Exception in opening zip file: /var/lib/openhab2/cache/org.eclipse.osgi/201/0/.cp/lib/resty-0.3.2.jar
	at org.eclipse.osgi.framework.util.SecureAction.getZipFile(SecureAction.java:305)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.storage.bundlefile.ZipBundleFile.basicOpen(ZipBundleFile.java:85)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.storage.bundlefile.ZipBundleFile.getZipFile(ZipBundleFile.java:98)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.storage.bundlefile.ZipBundleFile.checkedOpen(ZipBundleFile.java:65)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.storage.bundlefile.ZipBundleFile.getEntry(ZipBundleFile.java:232)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.storage.bundlefile.BundleFile.getResourceURL(BundleFile.java:136)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findResourceImpl(ClasspathManager.java:420)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalResourceImpl(ClasspathManager.java:367)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalResource(ClasspathManager.java:353)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalResource(ModuleClassLoader.java:316)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.loader.BundleLoader.findLocalResource(BundleLoader.java:802)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.loader.BundleLoader.findResource(BundleLoader.java:586)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.loader.ModuleClassLoader.getResource(ModuleClassLoader.java:201)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1307)[:1.8.0_121]
	at java.lang.Class.getResourceAsStream(Class.java:2223)[:1.8.0_121]
	at org.xmlpull.v1.XmlPullParserFactory.newInstance(XmlPullParserFactory.java:276)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.xmlpull.v1.XmlPullParserFactory.newInstance(XmlPullParserFactory.java:259)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.util.PacketParserUtils.newXmppParser(PacketParserUtils.java:71)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.tcp.PacketReader.resetParser(PacketReader.java:133)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.tcp.PacketReader.init(PacketReader.java:87)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.tcp.XMPPTCPConnection.initConnection(XMPPTCPConnection.java:472)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectUsingConfiguration(XMPPTCPConnection.java:437)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectInternal(XMPPTCPConnection.java:808)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:396)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.ReconnectionManager$2.run(ReconnectionManager.java:148)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
Caused by: java.io.FileNotFoundException: /var/lib/openhab2/cache/org.eclipse.osgi/201/0/.cp/lib/resty-0.3.2.jar (No such file or directory)
	at java.util.zip.ZipFile.open(Native Method)[:1.8.0_121]
	at java.util.zip.ZipFile.<init>(ZipFile.java:219)[:1.8.0_121]
	at java.util.zip.ZipFile.<init>(ZipFile.java:149)[:1.8.0_121]
	at java.util.zip.ZipFile.<init>(ZipFile.java:163)[:1.8.0_121]
	at org.eclipse.osgi.framework.util.SecureAction.getZipFile(SecureAction.java:288)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	... 24 more
2017-03-02 07:39:51.882 [ERROR] [org.openhab.binding.harmonyhub      ] - FrameworkEvent ERROR - org.openhab.binding.harmonyhub
java.io.IOException: Exception in opening zip file: /var/lib/openhab2/cache/org.eclipse.osgi/201/0/.cp/lib/smack-core-4.0.2.jar
	at org.eclipse.osgi.framework.util.SecureAction.getZipFile(SecureAction.java:305)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.storage.bundlefile.ZipBundleFile.basicOpen(ZipBundleFile.java:85)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.storage.bundlefile.ZipBundleFile.getZipFile(ZipBundleFile.java:98)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.storage.bundlefile.ZipBundleFile.checkedOpen(ZipBundleFile.java:65)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.storage.bundlefile.ZipBundleFile.getEntry(ZipBundleFile.java:232)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.storage.bundlefile.BundleFile.getResourceURL(BundleFile.java:136)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findResourceImpl(ClasspathManager.java:420)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalResourceImpl(ClasspathManager.java:367)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalResource(ClasspathManager.java:353)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalResource(ModuleClassLoader.java:316)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.loader.BundleLoader.findLocalResource(BundleLoader.java:802)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.loader.BundleLoader.findResource(BundleLoader.java:586)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.loader.ModuleClassLoader.getResource(ModuleClassLoader.java:201)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1307)[:1.8.0_121]
	at java.lang.Class.getResourceAsStream(Class.java:2223)[:1.8.0_121]
	at org.xmlpull.v1.XmlPullParserFactory.newInstance(XmlPullParserFactory.java:276)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.xmlpull.v1.XmlPullParserFactory.newInstance(XmlPullParserFactory.java:259)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.util.PacketParserUtils.newXmppParser(PacketParserUtils.java:71)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.tcp.PacketReader.resetParser(PacketReader.java:133)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.tcp.PacketReader.init(PacketReader.java:87)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.tcp.XMPPTCPConnection.initConnection(XMPPTCPConnection.java:472)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectUsingConfiguration(XMPPTCPConnection.java:437)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectInternal(XMPPTCPConnection.java:808)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:396)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.ReconnectionManager$2.run(ReconnectionManager.java:148)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
Caused by: java.io.FileNotFoundException: /var/lib/openhab2/cache/org.eclipse.osgi/201/0/.cp/lib/smack-core-4.0.2.jar (No such file or directory)
	at java.util.zip.ZipFile.open(Native Method)[:1.8.0_121]
	at java.util.zip.ZipFile.<init>(ZipFile.java:219)[:1.8.0_121]
	at java.util.zip.ZipFile.<init>(ZipFile.java:149)[:1.8.0_121]
	at java.util.zip.ZipFile.<init>(ZipFile.java:163)[:1.8.0_121]
	at org.eclipse.osgi.framework.util.SecureAction.getZipFile(SecureAction.java:288)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	... 24 more
2017-03-02 07:39:51.889 [ERROR] [org.openhab.binding.harmonyhub      ] - FrameworkEvent ERROR - org.openhab.binding.harmonyhub
java.io.IOException: Exception in opening zip file: /var/lib/openhab2/cache/org.eclipse.osgi/201/0/.cp/lib/smack-debug-4.0.2.jar
	at org.eclipse.osgi.framework.util.SecureAction.getZipFile(SecureAction.java:305)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.storage.bundlefile.ZipBundleFile.basicOpen(ZipBundleFile.java:85)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.storage.bundlefile.ZipBundleFile.getZipFile(ZipBundleFile.java:98)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.storage.bundlefile.ZipBundleFile.checkedOpen(ZipBundleFile.java:65)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.storage.bundlefile.ZipBundleFile.getEntry(ZipBundleFile.java:232)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.storage.bundlefile.BundleFile.getResourceURL(BundleFile.java:136)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findResourceImpl(ClasspathManager.java:420)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalResourceImpl(ClasspathManager.java:367)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalResource(ClasspathManager.java:353)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalResource(ModuleClassLoader.java:316)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.loader.BundleLoader.findLocalResource(BundleLoader.java:802)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.loader.BundleLoader.findResource(BundleLoader.java:586)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.loader.ModuleClassLoader.getResource(ModuleClassLoader.java:201)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1307)[:1.8.0_121]
	at java.lang.Class.getResourceAsStream(Class.java:2223)[:1.8.0_121]
	at org.xmlpull.v1.XmlPullParserFactory.newInstance(XmlPullParserFactory.java:276)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.xmlpull.v1.XmlPullParserFactory.newInstance(XmlPullParserFactory.java:259)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.util.PacketParserUtils.newXmppParser(PacketParserUtils.java:71)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.tcp.PacketReader.resetParser(PacketReader.java:133)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.tcp.PacketReader.init(PacketReader.java:87)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.tcp.XMPPTCPConnection.initConnection(XMPPTCPConnection.java:472)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectUsingConfiguration(XMPPTCPConnection.java:437)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectInternal(XMPPTCPConnection.java:808)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:396)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.ReconnectionManager$2.run(ReconnectionManager.java:148)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
Caused by: java.io.FileNotFoundException: /var/lib/openhab2/cache/org.eclipse.osgi/201/0/.cp/lib/smack-debug-4.0.2.jar (No such file or directory)
	at java.util.zip.ZipFile.open(Native Method)[:1.8.0_121]
	at java.util.zip.ZipFile.<init>(ZipFile.java:219)[:1.8.0_121]
	at java.util.zip.ZipFile.<init>(ZipFile.java:149)[:1.8.0_121]
	at java.util.zip.ZipFile.<init>(ZipFile.java:163)[:1.8.0_121]
	at org.eclipse.osgi.framework.util.SecureAction.getZipFile(SecureAction.java:288)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	... 24 more
2017-03-02 07:39:51.897 [ERROR] [org.openhab.binding.harmonyhub      ] - FrameworkEvent ERROR - org.openhab.binding.harmonyhub
java.io.IOException: Exception in opening zip file: /var/lib/openhab2/cache/org.eclipse.osgi/201/0/.cp/lib/smack-tcp-4.0.2.jar
	at org.eclipse.osgi.framework.util.SecureAction.getZipFile(SecureAction.java:305)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.storage.bundlefile.ZipBundleFile.basicOpen(ZipBundleFile.java:85)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.storage.bundlefile.ZipBundleFile.getZipFile(ZipBundleFile.java:98)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.storage.bundlefile.ZipBundleFile.checkedOpen(ZipBundleFile.java:65)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.storage.bundlefile.ZipBundleFile.getEntry(ZipBundleFile.java:232)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.storage.bundlefile.BundleFile.getResourceURL(BundleFile.java:136)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findResourceImpl(ClasspathManager.java:420)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalResourceImpl(ClasspathManager.java:367)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalResource(ClasspathManager.java:353)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalResource(ModuleClassLoader.java:316)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.loader.BundleLoader.findLocalResource(BundleLoader.java:802)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.loader.BundleLoader.findResource(BundleLoader.java:586)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.loader.ModuleClassLoader.getResource(ModuleClassLoader.java:201)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1307)[:1.8.0_121]
	at java.lang.Class.getResourceAsStream(Class.java:2223)[:1.8.0_121]
	at org.xmlpull.v1.XmlPullParserFactory.newInstance(XmlPullParserFactory.java:276)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.xmlpull.v1.XmlPullParserFactory.newInstance(XmlPullParserFactory.java:259)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.util.PacketParserUtils.newXmppParser(PacketParserUtils.java:71)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.tcp.PacketReader.resetParser(PacketReader.java:133)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.tcp.PacketReader.init(PacketReader.java:87)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.tcp.XMPPTCPConnection.initConnection(XMPPTCPConnection.java:472)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectUsingConfiguration(XMPPTCPConnection.java:437)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectInternal(XMPPTCPConnection.java:808)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:396)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.ReconnectionManager$2.run(ReconnectionManager.java:148)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
Caused by: java.io.FileNotFoundException: /var/lib/openhab2/cache/org.eclipse.osgi/201/0/.cp/lib/smack-tcp-4.0.2.jar (No such file or directory)
	at java.util.zip.ZipFile.open(Native Method)[:1.8.0_121]
	at java.util.zip.ZipFile.<init>(ZipFile.java:219)[:1.8.0_121]
	at java.util.zip.ZipFile.<init>(ZipFile.java:149)[:1.8.0_121]
	at java.util.zip.ZipFile.<init>(ZipFile.java:163)[:1.8.0_121]
	at org.eclipse.osgi.framework.util.SecureAction.getZipFile(SecureAction.java:288)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	... 24 more
2017-03-02 07:39:51.904 [ERROR] [org.openhab.binding.harmonyhub      ] - FrameworkEvent ERROR - org.openhab.binding.harmonyhub
java.io.IOException: Exception in opening zip file: /var/lib/openhab2/cache/org.eclipse.osgi/201/0/.cp/lib/xpp3-1.1.4c.jar
	at org.eclipse.osgi.framework.util.SecureAction.getZipFile(SecureAction.java:305)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.storage.bundlefile.ZipBundleFile.basicOpen(ZipBundleFile.java:85)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.storage.bundlefile.ZipBundleFile.getZipFile(ZipBundleFile.java:98)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.storage.bundlefile.ZipBundleFile.checkedOpen(ZipBundleFile.java:65)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.storage.bundlefile.ZipBundleFile.getEntry(ZipBundleFile.java:232)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.storage.bundlefile.BundleFile.getResourceURL(BundleFile.java:136)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findResourceImpl(ClasspathManager.java:420)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalResourceImpl(ClasspathManager.java:367)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalResource(ClasspathManager.java:353)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalResource(ModuleClassLoader.java:316)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.loader.BundleLoader.findLocalResource(BundleLoader.java:802)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.loader.BundleLoader.findResource(BundleLoader.java:586)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at org.eclipse.osgi.internal.loader.ModuleClassLoader.getResource(ModuleClassLoader.java:201)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1307)[:1.8.0_121]
	at java.lang.Class.getResourceAsStream(Class.java:2223)[:1.8.0_121]
	at org.xmlpull.v1.XmlPullParserFactory.newInstance(XmlPullParserFactory.java:276)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.xmlpull.v1.XmlPullParserFactory.newInstance(XmlPullParserFactory.java:259)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.util.PacketParserUtils.newXmppParser(PacketParserUtils.java:71)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.tcp.PacketReader.resetParser(PacketReader.java:133)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.tcp.PacketReader.init(PacketReader.java:87)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.tcp.XMPPTCPConnection.initConnection(XMPPTCPConnection.java:472)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectUsingConfiguration(XMPPTCPConnection.java:437)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectInternal(XMPPTCPConnection.java:808)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:396)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
	at org.jivesoftware.smack.ReconnectionManager$2.run(ReconnectionManager.java:148)[201:org.openhab.binding.harmonyhub:2.1.0.201702270001]
Caused by: java.io.FileNotFoundException: /var/lib/openhab2/cache/org.eclipse.osgi/201/0/.cp/lib/xpp3-1.1.4c.jar (No such file or directory)
	at java.util.zip.ZipFile.open(Native Method)[:1.8.0_121]
	at java.util.zip.ZipFile.<init>(ZipFile.java:219)[:1.8.0_121]
	at java.util.zip.ZipFile.<init>(ZipFile.java:149)[:1.8.0_121]
	at java.util.zip.ZipFile.<init>(ZipFile.java:163)[:1.8.0_121]
	at org.eclipse.osgi.framework.util.SecureAction.getZipFile(SecureAction.java:288)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
	... 24 more

Edit: After uninstalling the binding I’m still getting the framework error messages. Clearly something is stuck

Try stopping OH, deleting /var/lib/openhab2/cache folder.

I have to do that when I uninstall addons. I use the config files method though… not paperui.

Thanks, that did the trick for stopping the post-uninstall errors. Now going to try to reinstall the binding to see it behaves.

Deleting the cache and reinstalling the binding seems to have stopped all the errors. Thanks for the help.

I’m glad that helped.

I’m not having the same issue. I tried removing and clearing just for kicks but it still throws errors when it looses connection. After it reconnects, it reduces the error to these:

2017-03-04 11:05:37.305 [WARN ] [rg.jivesoftware.smack.XMPPConnection] - Connection closed with error
java.io.EOFException: no more data available - expected end tag </stream:stream> to close start tag stream:stream from line 1, parser stopped on END_TAG seen …… @1:901

Seems like there must be a glitch in the binding that doesn’t handle the truncated XMPP connection?

Just checked my logs and it’s full of these errors. They started at 2am when I definitely wasn’t messing with wireless.

Who can help fix this? Only thing I can do is restart OH which I prefer not to do all the time.

Just found this thread as I was searching for the log messages I have.
I could imagine a firmware update on the Hub changed the API OH harmony binding parses.

The only thing I changed im my system in regards to harmony was adding the OH Hue emulation as a device in Harmony hub in order to use the remote to switch some lights. Will remove that config to check if this helps.

Edit:
Seems like this got fixed in the meantime. Found another thread referencing this github issue.

Yes, the updated jar fixed my issue. Looks like it may have also helped with rules engine reliability issues I was also having.