Smack 4.1 rc3 snapshot error saving VCard

hy. i use latest rc3 snapshot. but this is always no response exception when save vcard to server. and after noresponse. smack will reconnecting. it’s say that reconnected but error reloading roster. and always error.

this is when saving VCard to server.

02-26 08:01:21.835 29318-29676/com.brixzen.chat W/XMPPTCPConnection﹕ NoResponseException

org.jivesoftware.smack.SmackException$NoResponseException: No response received within reply timeout. Timeout was 15000ms (~15s). Used filter: No filter used or filter was ‘null’.

at org.jivesoftware.smack.SynchronizationPoint.checkForResponse(SynchronizationPoi nt.java:192)

at org.jivesoftware.smack.SynchronizationPoint.checkIfSuccessOrWait(Synchronizatio nPoint.java:114)

at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketWriter.shutdown(XMPPTCPConne ction.java:1260)

at org.jivesoftware.smack.tcp.XMPPTCPConnection.shutdown(XMPPTCPConnection.java:48 9)

at org.jivesoftware.smack.tcp.XMPPTCPConnection.instantShutdown(XMPPTCPConnection. java:478)

at org.jivesoftware.smack.tcp.XMPPTCPConnection.notifyConnectionError(XMPPTCPConne ction.java:858)

at org.jivesoftware.smack.tcp.XMPPTCPConnection.access$2600(XMPPTCPConnection.java :139)

at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketWriter.writePackets(XMPPTCPC onnection.java:1404)

at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketWriter.access$2700(XMPPTCPCo nnection.java:1161)

at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketWriter$1.run(XMPPTCPConnecti on.java:1209)

at java.lang.Thread.run(Thread.java:838)

this is error when reconnecting

02-26 08:01:21.835 29318-29417/com.brixzen.chat E/Roster﹕ Exception reloading roster

org.jivesoftware.smack.SmackException$NoResponseException: No response received within reply timeout. Timeout was 15000ms (~15s). Used filter: IQReplyFilter: iqAndIdFilter (AndFilter ( OrFilter ( IQTypeFilter: type=error, IQTypeFilter: type=result,), StanzaIdFilter: id=Bm4jp-25,)), : fromFilter (OrFilter ( FromMatchesFilter (full): null, FromMatchesFilter (bare): 201110370311051@messenger.brixzen.com, FromMatchesFilter (full): messenger.brixzen.com,)).

at org.jivesoftware.smack.AbstractXMPPConnection$6.run(AbstractXMPPConnection.java :1468)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:390)

at java.util.concurrent.FutureTask.run(FutureTask.java:234)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201 (ScheduledThreadPoolExecutor.java:153)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Schedu ledThreadPoolExecutor.java:267)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)

at java.lang.Thread.run(Thread.java:838)

02-26 08:01:21.838 29318-29676/com.brixzen.chat W/AbstractXMPPConnection﹕ Connection closed with error

java.lang.NullPointerException

at org.jivesoftware.smack.util.LazyStringBuilder.length(LazyStringBuilder.java:72)

at org.jivesoftware.smack.util.LazyStringBuilder.toString(LazyStringBuilder.java:1 00)

at org.jivesoftware.smack.util.XmlStringBuilder.toString(XmlStringBuilder.java:344 )

at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketWriter.writePackets(XMPPTCPC onnection.java:1353)

at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketWriter.access$2700(XMPPTCPCo nnection.java:1161)

at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketWriter$1.run(XMPPTCPConnecti on.java:1209)

at java.lang.Thread.run(Thread.java:838)

Please try the latest snapshot.

I was having an issue with VCards as well, and it seems to be working in rc3 SNAPSHOT.

i has been update to latest version rc3-snapshot… but now PacketExtention interface not found. i have custom extention.

I can assist with that one, rc3 has been updated recently and seems a few things got broken and by broken I mean a few things have been deprecated and replaced. So just to find the new implementations that you need to use.

but now PacketExtention interface not found.

I cna assist with that one, rc3 has been updated recently and seems a few things got broken.

Yes, seems like. See here:

https://github.com/Flowdalic/Smack/commit/d4a6d8e6533c0ad8c9e7f6566cde07016f0c1e c1

@Flow: Maybe, it’s a good idea to not make such major API breaking changes during RC phase? Also to keep your promise from your blog post:

“The API of Smack 4.1 is now officially stable and will not change in an incompatible way between further 4.1 releases.”

Could you check that the run the latest rc3-SNAPSHOT, i.e. with a build data like 2015-03-02. What does SmackConfiguration.getVersion() return?

Please don’t jump to quick conclusions. If there was an API breakage, then it wasn’t intentionally. All deprecated interfaces (PacketExtension, PacketListener, …) still exists as proxy interfaces.