Error in receiving any custom IQ packet with the type SET in Smack 4.3.0

  • The Smack version: 4.3.0

Hi
I have upgraded Smack library to 4.3.0.
Since then I have a problem in receiving custom IQ packet with the type of SET from OpenFire in client side.
The IQ packet I am receiving from OpenFire is:

11-08
14:55:56.888 11436-12082/appPackageName D/SMACK: RECV (0):<iq
type="set" id="950-48"><query
xmlns="http://test/xmpp/lock-unlock-user"><LockUser>0</LockUser></query></iq>

And the response from client side to OpenFire:

11-08
14:55:56.893 11436-12081/appPackageName  D/SMACK: SENT (0): <iq
id='950-48' type='error'><error
type='cancel'><feature-not-implemented
xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error></iq>

The problem is in the Method (invokeStanzaCollectorsAndNotifyRecvListeners) in the (AbstractXMPPConnection ) class. In this method whenever receives any IQ packet with the type SET, it sends an ErrorIQ in response and never trigger the listeners. should I change the IQ packet type to something else in the Openfire side or I am doing something wrong???

You need to register a IQ request handler if you want to handle IQ requests.