I keep getting the same error message over and over again. At first I thought it was an issue with timeout so i set .setPacketReplyTimeout(15000);
still it just happens to wait for longer then shows the same error message. On deeper findings, I found it is because it was expecting something from the server (What could that be?). Also I found, you can setRosterLoadedAtLogin(false)
but it's not clear how to, as XMPPTCPConnectionConfiguration
does not have that method i.e. configBuilder.setRosterLoadedAtLogin(false)
. Here is a dump. I'll like a good explanation of what's going on and how to fix it. Thank you
06-09 01:04:25.122 3192-3214/com.company.smacklearn E/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=AUQtk-7)), : fromFilter (OrFilter: (FromMatchesFilter (full): null, FromMatchesFilter (bare): [email protected], FromMatchesFilter (full): myserver.com)).
at org.jivesoftware.smack.AbstractXMPPConnection$6.run(AbstractXMPPConnection.java:1438)
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)
Maybe I found the real reason that is my correct operation in the project of the code below: