bfc14227ca
Before this, if there was a stream error response by the server to our stream open, that error response would only be handled in the reader thread, and the user would get a message like: "org.jivesoftware.smack.SmackException$NoResponseException: No response received within reply timeout. Timeout was 5000ms (~5s). While waiting for SASL mechanisms stream feature from server" while the server may actually sent something like <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6785787028201586334' from='jabbim.com' version='1.0' xml:lang='en'> <stream:error> <policy-violation xmlns='urn:ietf:params:xml:ns:xmpp-streams'> </policy-violation> <text xml:lang='en' xmlns='urn:ietf:params:xml:ns:xmpp-streams'> Too many (2) failed authentications from this IP address (1xx.66.xx.xxx). The address will be unblocked at 04:24:00 06.01.2017 UTC </text> </stream:error> </stream:stream> It was necessary to change saslFeatureReceived from SmackException to XMPPException in order to return the StreamErrorException at this sync point. But this change in return required the introduction of a tlsHandled sync point for SmackException (which just acts as a wrapper for the various exception types that could occurn when establishing TLS). The tlsHandled sync point is marked successful even if no TLS was established in case none was required and/or if not supported by the server. |
||
---|---|---|
config | ||
documentation | ||
resources | ||
smack-android | ||
smack-android-extensions | ||
smack-bosh | ||
smack-compression-jzlib | ||
smack-core | ||
smack-debug | ||
smack-debug-slf4j | ||
smack-experimental | ||
smack-extensions | ||
smack-im | ||
smack-integration-test | ||
smack-java7 | ||
smack-jingle-old | ||
smack-legacy | ||
smack-repl | ||
smack-resolver-dnsjava | ||
smack-resolver-javax | ||
smack-resolver-minidns | ||
smack-sasl-javax | ||
smack-sasl-provided | ||
smack-tcp | ||
.gitignore | ||
.travis.yml | ||
build.gradle | ||
LICENSE | ||
package-info.java | ||
README.md | ||
repl | ||
settings.gradle | ||
version.gradle |
Smack
Instructions how to use Smack in your Java or Android project are provided in the Smack 4.1 Readme and Upgrade Guide.
About
Smack is an open source, highly modular, easy to use, XMPP client library written in Java for JVMs and Android.
A pure Java library, it can be embedded into your applications to create anything from a full XMPP client to simple XMPP integrations such as sending notification messages and presence-enabling devices. Smack and XMPP allows you to easily exchange data, in various ways e.g. fire-and-forget, publish-subscribe, between human and non-human endpoints (M2M, IoT, …).
Confused? Have a look at the Overview.
Smack - an Ignite Realtime community project.
Bug Reporting
Only a few users have access for for filling bugs in the tracker. New users should:
- Read "How to ask for help or report an issue"
- Create a forums account (only e-mail is a requirement, you can skip all the other fields).
- Login to the forum account
- Press New in your toolbar and choose Discussion
- Choose the Smack Developers Forum of Smack and add the tag 'bug_report' to your new post
Please search for your issues in the bug tracker before reporting.
Contact
The developers hang around in #smack
(freenode, IRC) and open_chat@conference.igniterealtime.org
(XMPP MUC room).
Remember that it may take some time (~hours) to get a response.
You can also reach us via the Smack Users Forum if you have questions or need support, or the Smack Developers Forum if you want to discuss Smack development.
Contributing
If you want to start developing for Smack and eventually contribute code back, then please have a look at the Guidelines for Smack Developers and Contributors. The guidelines also contain development quickstart instructions.
Resources
- Bug Tracker: http://issues.igniterealtime.org/browse/SMACK
- JaCoCo Coverage Reports: https://www.igniterealtime.org/builds/smack/dailybuilds/jacoco/html/
- Nightly Builds: http://www.igniterealtime.org/downloads/nightly_smack.jsp
- Nightly Javadoc: http://www.igniterealtime.org/builds/smack/dailybuilds/javadoc/
- Nightly Documentation: http://www.igniterealtime.org/builds/smack/dailybuilds/documentation/
- User Forum: https://community.igniterealtime.org/community/support/smack-support
- Dev Forum: http://community.igniterealtime.org/community/developers/smack
- Maven Releases: https://oss.sonatype.org/content/repositories/releases/org/igniterealtime/smack/
- Maven Snapshots: https://oss.sonatype.org/content/repositories/snapshots/org/igniterealtime/smack/
Donate
If you find Smack useful and feel like donating, then you can use one of the following systems:
- Donate via Flattr
- Donate via Bitcoin: 1D4k11bsPxRB6rS51fxDty8QYfRVUt5JMB
Ignite Realtime
Ignite Realtime is an Open Source community composed of end-users and developers around the world who are interested in applying innovative, open-standards-based Real Time Collaboration to their businesses and organizations. We're aimed at disrupting proprietary, non-open standards-based systems and invite you to participate in what's already one of the biggest and most active Open Source communities.