org.jivesoftware.smack.SmackException$NoResponseException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Reconnection to xmpp server using smack
    via Stack Overflow by Newbiee
    ,
  • Smack 4.1: Exception reloading roster
    via Stack Overflow by Tunde Dev
    ,
  • .h3 Problem Currently Roster is a mandatory dependency and cannot be easily removed. The Class *XmppConnectionFactoryBean* has a dependency to it. In case of GCM you always see the error {code} 2016-03-21 16:52:55.500 ERROR 41115 --- [Callbacks 0 (0)] org.jivesoftware.smack.roster.Roster : Exception reloading roster org.jivesoftware.smack.SmackException$NoResponseException: No response received within reply timeout. Timeout was 5000ms (~5s). Used filter: IQReplyFilter: iqAndIdFilter (AndFilter: (OrFilter: (IQTypeFilter: type=error, IQTypeFilter: type=result), StanzaIdFilter: id=qNsJ6-8)), : fromFilter (OrFilter: (FromMatchesFilter (full): null, FromMatchesFilter (bare): 234377203703@gcm.googleapis.com, FromMatchesFilter (full): gcm.googleapis.com)). at org.jivesoftware.smack.SmackException$NoResponseException.newWith(SmackException.java:106) ~[smack-core-4.1.6.jar:4.1.6] at org.jivesoftware.smack.AbstractXMPPConnection$6.run(AbstractXMPPConnection.java:1447) [smack-core-4.1.6.jar:4.1.6] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_51] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_51] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_51] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.8.0_51] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_51] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_51] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_51] {code} .h3 Workaround Currently the only working solution I found was: 1. Copy the *XmppConnectionFactoryBean* and remove the Roster stuff 2. Remove *smack-im* from *spring-integration-xmpp* {code} <dependency> <groupId>org.springframework.integration</groupId> <artifactId>spring-integration-xmpp</artifactId> <version>4.3.0.BUILD-SNAPSHOT</version> <exclusions> <exclusion> <groupId>org.igniterealtime.smack</groupId> <artifactId>smack-im</artifactId> </exclusion> </exclusions> </dependency> {code}
    via by Paul Sterl,
  • .h3 Problem Currently Roster is a mandatory dependency and cannot be easily removed. The Class *XmppConnectionFactoryBean* has a dependency to it. In case of GCM you always see the error {code} 2016-03-21 16:52:55.500 ERROR 41115 --- [Callbacks 0 (0)] org.jivesoftware.smack.roster.Roster : Exception reloading roster org.jivesoftware.smack.SmackException$NoResponseException: No response received within reply timeout. Timeout was 5000ms (~5s). Used filter: IQReplyFilter: iqAndIdFilter (AndFilter: (OrFilter: (IQTypeFilter: type=error, IQTypeFilter: type=result), StanzaIdFilter: id=qNsJ6-8)), : fromFilter (OrFilter: (FromMatchesFilter (full): null, FromMatchesFilter (bare): 234377203703@gcm.googleapis.com, FromMatchesFilter (full): gcm.googleapis.com)). at org.jivesoftware.smack.SmackException$NoResponseException.newWith(SmackException.java:106) ~[smack-core-4.1.6.jar:4.1.6] at org.jivesoftware.smack.AbstractXMPPConnection$6.run(AbstractXMPPConnection.java:1447) [smack-core-4.1.6.jar:4.1.6] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_51] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_51] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_51] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.8.0_51] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_51] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_51] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_51] {code} .h3 Workaround Currently the only working solution I found was: 1. Copy the *XmppConnectionFactoryBean* and remove the Roster stuff 2. Remove *smack-im* from *spring-integration-xmpp* {code} <dependency> <groupId>org.springframework.integration</groupId> <artifactId>spring-integration-xmpp</artifactId> <version>4.3.0.BUILD-SNAPSHOT</version> <exclusions> <exclusion> <groupId>org.igniterealtime.smack</groupId> <artifactId>smack-im</artifactId> </exclusion> </exclusions> </dependency> {code}
    via by Paul Sterl,
  • GitHub comment 1727#198322979
    via GitHub by puel
    ,
    • org.jivesoftware.smack.SmackException$NoResponseException: No response received within reply timeout. Timeout was 5000ms (~5s). Used filter: IQReplyFilter: iqAndIdFilter (AndFilter: (OrFilter: (IQTypeFilter: type=error, IQTypeFilter: type=result), StanzaIdFilter: id=BpGkK-20)), : fromFilter (OrFilter: (FromMatchesFilter (full): null, FromMatchesFilter (bare): darshan350@vario.fitness, FromMatchesFilter (full): vario.fitness)). at org.jivesoftware.smack.AbstractXMPPConnection$6.run(AbstractXMPPConnection.java:1443) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:818)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,