Harmony hub: connection closed with error

Installed the b5 of openhab and with it the zwave, DSMR, astro and the Harmony hub binding.
The latest is giving continuasly a warning:

17:00:08.723 [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 ...<![CDATA[result=-1]]></oa></iq>... @1:655
        at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3035)[226:org.openhab.binding.harmonyhub:2.0.0.b5]
        at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046)[226:org.openhab.binding.harmonyhub:2.0.0.b5]
        at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1144)[226:org.openhab.binding.harmonyhub:2.0.0.b5]
        at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)[226:org.openhab.binding.harmonyhub:2.0.0.b5]
        at org.jivesoftware.smack.tcp.PacketReader.parsePackets(PacketReader.java:279)[226:org.openhab.binding.harmonyhub:2.0.0.b5]
        at org.jivesoftware.smack.tcp.PacketReader.access$000(PacketReader.java:47)[226:org.openhab.binding.harmonyhub:2.0.0.b5]
        at org.jivesoftware.smack.tcp.PacketReader$1.run(PacketReader.java:81)[226:org.openhab.binding.harmonyhub:2.0.0.b5]

This warning is displayd every 30 seconds or so.
Is it a binding issue or is the problem on my side.
running openhab 2 on a raspberry pi

thanks in advance

I see the same warning on my more recent unstable openHAB 2.0 build #710:

18:19:23.919 [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 ...<![CDATA[result=15331029]]></oa></iq>... @1:646
	at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3035)[201:org.openhab.binding.harmonyhub:]
	at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046)[201:org.openhab.binding.harmonyhub:]
	at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1144)[201:org.openhab.binding.harmonyhub:]
	at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)[201:org.openhab.binding.harmonyhub:]
	at org.jivesoftware.smack.tcp.PacketReader.parsePackets(PacketReader.java:279)[201:org.openhab.binding.harmonyhub:]
	at org.jivesoftware.smack.tcp.PacketReader.access$000(PacketReader.java:47)[201:org.openhab.binding.harmonyhub:]
	at org.jivesoftware.smack.tcp.PacketReader$1.run(PacketReader.java:81)[201:org.openhab.binding.harmonyhub:]

For me the warning does not result in issues with the binding functionality. If I remember correctly, I have seen such warnings ever since I started using the Harmony binding. My openHAB 2.0 instance also runs on a Raspberry Pi.

I’m seeing the exact same problem. I’m running Openhabian on an rpi 3. Using a snapshot from late December I was not seeing this issue. Last night I did a fresh clean install using the new repo structure (and Openhabian). Now I see this about once every 90 seconds or so in the log.

11:05:19.674 [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 ...t":0}},"brightness":2,"on":false,"status":0}}]]></event></message>... @2:337
        at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3035)[210:org.openhab.binding.harmonyhub:]
        at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046)[210:org.openhab.binding.harmonyhub:]
        at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1144)[210:org.openhab.binding.harmonyhub:]
        at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)[210:org.openhab.binding.harmonyhub:]
        at org.jivesoftware.smack.tcp.PacketReader.parsePackets(PacketReader.java:279)[210:org.openhab.binding.harmonyhub:]
        at org.jivesoftware.smack.tcp.PacketReader.access$000(PacketReader.java:47)[210:org.openhab.binding.harmonyhub:]
        at org.jivesoftware.smack.tcp.PacketReader$1.run(PacketReader.java:81)[210:org.openhab.binding.harmonyhub:]

The Harmony hub seems to be working fine in casual testing.

I think this is a side-effect of another problem in Openhabian.
Look at the bottom of the Openhabian thread for instructions to manually generate your host.key file.

That was needed for a different warning which was showing up in my log.
Once I’d done that, the harmony hub error stopped happening also.

This a known error, see here:

Hi @Noircogi,

could you please specify which kind of “different warning” you mean?
I just wanna make sure that I do not follow your suggestion without having this “different warning” myself.

That host.key problem was a bug in the OpenHabian scripts, but it was fixed within a day or so.

Thanks @Noircogi,

So you mean, with that fix the “side effect” of the Harmony errors haben been solved on your system without the fix of the known harmony issue?

My system is still running the build from back in January, but I have no harmony hub errors in my log and it’s working perfectly. I only ever had them when the host.key file was not properly set up.

Sounds worth a try. :wink: