Still 'Failed to parse extension packet in Presence packet' exception, 'Caps elment with missing attributes'


While receiving information for example gtalk ‘status change’ I got an exception in traces:

‘Failed to parse extension packet in Presence packet’

Can someone help me with this?

I need to track gtalk statuses, but instead of status information, I got mentioned exception.


Connected to

Logged in as ******

mode: accept_all, accept_all

Presence changed: ******** available: away

Presence changed: ******** available: away ()

Failed to parse extension packet in Presence packet.

Failed to parse extension packet in Presence packet.

Failed to parse extension packet in Presence packet.

looking deeper…

I got exception: ‘Caps elment with missing attributes’ from class: CapsExtensionProvider

… any idea?


Google Talk sends the “caps” element with an legacy/outdated specification and some now mandatory attributes are missing.

Packet Extensions of Presence packets that throw an exception will just get ignored and logged. No need to worry.

Thank you!

How to disable the warning, it keeps showing up:

May 28, 2016 5:26:48 AM org.jivesoftware.smack.util.PacketParserUtils parsePresence

WARNING: Failed to parse extension packet in Presence packet. Attributes: from=??? id=null

org.jivesoftware.smack.SmackException: Caps elment with missing attributes. Attributes: hash=null version=0.6 node=

at org.jivesoftware.smackx.caps.provider.CapsExtensionProvider.parse(CapsExtension

at org.jivesoftware.smackx.caps.provider.CapsExtensionProvider.parse(CapsExtension

at org.jivesoftware.smack.provider.Provider.parse(

at org.jivesoftware.smack.util.PacketParserUtils.parseExtensionElement(PacketParse

at org.jivesoftware.smack.util.PacketParserUtils.addExtensionElement(PacketParserU

at org.jivesoftware.smack.util.PacketParserUtils.parsePresence(PacketParserUtils.j ava:583)

at org.jivesoftware.smack.util.PacketParserUtils.parseStanza(PacketParserUtils.jav a:155)

at org.jivesoftware.smack.AbstractXMPPConnection.parseAndProcessStanza(AbstractXMP

at org.jivesoftware.smack.tcp.XMPPTCPConnection.access$500( 140)

at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPC

at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$300(XMPPTCPCon

at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$