Issue with xmpp action and google talk

For a while I keep getting these stack traces below.

The XMPP binding does not crash completely, but it delivers messages unreliably and won’t acceppt commands sent by chat after a while

I can’t tell for sure since when this happened but it may be related with my upgrade from 1.7 to 1.7.1

I haven changed the openhab.cfg (also below) and it was working fine for over a year like this.

cfg:
########################## XMPP Action configuration ##################################
#
# The XMPP server to use, e.g. “jabber.org”, “talk.google.com” or “talkx.l.google.com
xmpp:servername=talk.google.com

# The XMPP Proxyserver to use, e.g. "gmail.com"
xmpp:proxy=gmail.com

# the server port to use (optional, defaults to 5222)
xmpp:port=5222

# the username and password for the sending XMPP account
xmpp:username=xxx@gmail.com
xmpp:password=xxx

# a  	 that are allowed to use the XMPP console
xmpp:consoleusers= my list of users

# the multi user chat to join, e.g. ope...@chat.example.com
#xmpp:chatroom=

# the nickname used in the multi user chat (optional, defaults to openhab-bot)
#xmpp:chatnickname=

xmpp:securitymode=required

##################

*2015-11-28 12:13:50.108 [ERROR] [tion.xmpp.internal.XMPPConnect] - Could not establish connection to XMPP server 'talk.google.com:5222': null*
*2015-11-28 12:13:50.109 [WARN ] [nhab.action.xmpp.internal.XMPP] - Could not send XMPP message as connection is not correctly initialized!*
*2015-11-28 12:13:50.380 [ERROR] [tion.xmpp.internal.XMPPConnect] - Could not establish connection to XMPP server 'talk.google.com:5222': null*
*2015-11-28 12:13:50.381 [WARN ] [nhab.action.xmpp.internal.XMPP] - Could not send XMPP message as connection is not correctly initialized!*
*2015-11-28 12:13:55.781 [ERROR] [tion.xmpp.internal.XMPPConnect] - Could not establish connection to XMPP server 'talk.google.com:5222': null*
*2015-11-28 12:13:55.782 [WARN ] [nhab.action.xmpp.internal.XMPP] - Could not send XMPP message as connection is not correctly initialized!*

*2015-11-28 12:13:59.753 [INFO ] [tion.xmpp.internal.XMPPConnect] - Connection to XMPP as 'xxx@gmail.com/5F11B2F6' has been established. Is secure/encrypted: true*

*2015-11-28 12:14:10.998 [WARN ] [o.j.smack.tcp.PacketWriter    ] - Exception writing closing stream element*
*java.net.SocketException: Connection closed by remote host*
*	at sun.security.ssl.SSLSocketImpl.checkWrite(SSLSocketImpl.java:1490) ~[na:1.7.0_40]*
*	at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:70) ~[na:1.7.0_40]*
*	at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221) ~[na:1.7.0_40]*
*	at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291) ~[na:1.7.0_40]*
*	at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:295) ~[na:1.7.0_40]*
*	at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141) ~[na:1.7.0_40]*
*	at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229) ~[na:1.7.0_40]*
*	at java.io.BufferedWriter.flush(BufferedWriter.java:254) ~[na:1.7.0_40]*
*	at org.jivesoftware.smack.tcp.PacketWriter.writePackets(PacketWriter.java:190) [smack-tcp-4.0.6.jar:4.0.6]*
*	at org.jivesoftware.smack.tcp.PacketWriter.access$000(PacketWriter.java:40) [smack-tcp-4.0.6.jar:4.0.6]*
*	at org.jivesoftware.smack.tcp.PacketWriter$1.run(PacketWriter.java:77) [smack-tcp-4.0.6.jar:4.0.6]*
*2015-11-28 12:14:11.002 [WARN ] [esoftware.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 ...</mechanisms></stream:features>... @1:335*
*	at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3035) ~[xpp3-1.1.4c.jar:na]*
*	at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046) ~[xpp3-1.1.4c.jar:na]*
*	at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1144) ~[xpp3-1.1.4c.jar:na]*
*	at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093) ~[xpp3-1.1.4c.jar:na]*
*	at org.jivesoftware.smack.tcp.PacketReader.parsePackets(PacketReader.java:291) [smack-tcp-4.0.6.jar:4.0.6]*
*	at org.jivesoftware.smack.tcp.PacketReader.access$000(PacketReader.java:47) [smack-tcp-4.0.6.jar:4.0.6]*
*	at org.jivesoftware.smack.tcp.PacketReader$1.run(PacketReader.java:81) [smack-tcp-4.0.6.jar:4.0.6]*

That means the underlying TCP connection was closed. I would expect OpenHAB trying to reconnect the connection in such a case.

I did have a wobbly wifi connection - and could improve the signal over the weekend.

The binding did not crash since… so this may be actually the fix.