shutDownInput in read

Hello,

I am new to Smack. I have just created a sample application using the library. I am sending bulk messages from XMPP server. Sometimes I receive all the messages that are sent by server but I get this error sometimes called “shutDownInput in read” and I am not able to receive the messages after that. Can someone help me with that?

Thanks in advance.