1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-19 10:32:05 +01:00
No description
Find a file
Florian Schmaus c4228e072b [tcp] Add missing null check in resolveDomain()
The method lookupHostAddress() returns null in case of an error, hence
we need to test if the returned value is null prior adding the endpoint.

Should fix the following NPE:

java.lang.NullPointerException:
  at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectUsingConfiguration (XMPPTCPConnection.java:606)
  at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectInternal (XMPPTCPConnection.java:846)
  at org.jivesoftware.smack.AbstractXMPPConnection.connect (AbstractXMPPConnection.java:530)
  at org.jivesoftware.smack.ReconnectionManager$2.run (ReconnectionManager.java:282)
  at java.lang.Thread.run (Thread.java:784)

Reported-by: Eng ChongMeng <cmeng.gm@gmail.com>
2020-11-14 12:47:34 +01:00
.github Add Github Pull Request Template 2019-03-20 20:05:43 +01:00
config [checkstyle] Bump to 8.27 2020-05-23 23:36:58 +02:00
documentation Add support for XEP-0420: Stanza Content Encryption 2020-07-23 11:02:28 +02:00
resources Add resources/get-contributors.sh 2020-11-05 12:52:22 +01:00
smack-android gradle: use compileClasspath instead of compileOnly 2020-03-07 20:13:05 +01:00
smack-android-extensions gradle: add Android jar to smack-android-extensions compile classpath 2020-03-07 20:13:05 +01:00
smack-bosh Introduce Smack's Modular Connection Architecture 2020-04-04 13:03:31 +02:00
smack-core Add Smack.getNoticeStream() and 'License' section to README 2020-11-09 08:46:57 +01:00
smack-debug Add org.jivesoftware.smack.Smack with getVersion() and ensureInitialized() 2020-11-09 08:46:57 +01:00
smack-debug-slf4j [core] Deprecate AbstractConnectionListener 2020-05-13 22:14:43 +02:00
smack-experimental Make Forwarded a generic type 2020-09-23 17:48:04 +02:00
smack-extensions Provide more detailed code comment. 2020-11-09 21:21:27 +01:00
smack-im Delete TypedCloneable 2020-06-14 17:38:51 +02:00
smack-integration-test Add org.jivesoftware.smack.Smack with getVersion() and ensureInitialized() 2020-11-09 08:46:57 +01:00
smack-java8 Rename smack-java7 to smack-java8 2020-09-23 17:50:11 +02:00
smack-java8-full Add Smack.getNoticeStream() and 'License' section to README 2020-11-09 08:46:57 +01:00
smack-jingle-old Introduce test fixtures 2020-04-11 22:05:36 +02:00
smack-legacy Re-work data form API 2020-05-13 20:14:41 +02:00
smack-omemo [extensions] Deprecate old-style PepManager PEP listeners 2020-05-25 20:32:47 +02:00
smack-omemo-signal [checkstyle] Tighten JavadocMethod checkstyle rule 2020-05-23 22:43:29 +02:00
smack-omemo-signal-integration-test SmackReactor/NIO, Java8/Android19, Pretty print XML, FSM connections 2019-02-05 13:18:03 +01:00
smack-openpgp OpenPgpManager: Expose methods to generate and import keys 2020-10-27 10:22:46 +01:00
smack-repl Add org.jivesoftware.smack.Smack with getVersion() and ensureInitialized() 2020-11-09 08:46:57 +01:00
smack-resolver-dnsjava resolver-dnsjava: bump to dnsjava 3.0 series 2020-04-12 22:21:30 +02:00
smack-resolver-javax Introduce Smack's Modular Connection Architecture 2020-04-04 13:03:31 +02:00
smack-resolver-minidns Introduce Smack's Modular Connection Architecture 2020-04-04 13:03:31 +02:00
smack-resolver-minidns-dox Introduce test fixtures 2020-04-11 22:05:36 +02:00
smack-sasl-javax Introduce test fixtures 2020-04-11 22:05:36 +02:00
smack-sasl-provided Introduce test fixtures 2020-04-11 22:05:36 +02:00
smack-streammanagement Create smack-streammanagement project and move o.j.smack.sm code there 2020-08-15 14:03:57 +02:00
smack-tcp [tcp] Add missing null check in resolveDomain() 2020-11-14 12:47:34 +01:00
smack-xmlparser smack-xmlparser: Improve ISE message 2019-09-23 16:12:48 +02:00
smack-xmlparser-stax [xmlparser-stax] Disable external entities and DTD 2020-10-05 08:55:10 +02:00
smack-xmlparser-xpp3 Introduce test fixtures 2020-04-11 22:05:36 +02:00
.gitignore Add local.properties to gitignore 2019-06-30 16:00:31 +02:00
.mailmap Add .mailmap 2020-11-05 12:52:17 +01:00
.travis.yml [travis] Only run javadocAll on Java 11 or higher 2020-05-25 11:14:47 +02:00
build.gradle Rename smack-java7 to smack-java8 2020-09-23 17:50:11 +02:00
LICENSE Add Appendix to LICENSE 2017-04-24 15:12:27 +02:00
NOTICE Add NOTICE file 2020-11-05 12:54:54 +01:00
README.md Add Smack.getNoticeStream() and 'License' section to README 2020-11-09 08:46:57 +01:00
repl Bump Ammonite REPL to 1.3.2 2018-10-27 15:41:17 +02:00
settings.gradle Rename smack-java7 to smack-java8 2020-09-23 17:50:11 +02:00
version Smack 4.4.0-rc2-SNAPSHOT 2020-11-09 09:32:29 +01:00

Smack

Build Status Coverage Status Project Stats Link to XMPP chat smack@conference.igniterealtime.org

About

Smack is an open source, highly modular, easy to use, XMPP client library written in Java for Java SE compatible JVMs and Android.

A pure Java library, it can be embedded into your applications to create anything from a full XMPP instant messaging 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, …).

More information are provided by the Overview.

Getting started

Start with having a look at the Documentation and the Javadoc.

Instructions on how to use Smack in your Java or Android project are provided in the Smack Readme and Upgrade Guide.

License

Most of Smack is governed by the Apache License 2.0 (SPDX License Identifier: Apache 2.0). This license requires that the contents of a NOICE text file are shown "…within a display generated by the Derivative Works, if and wherever such third-party notices normally appear.".

Smack comes which such a NOTICE file. Moreover, since smack-core is licensed under the Apache License 2.0, the conditions apply to every project using Smack. The content of Smack's NOTICE file can conveniently be retrieved using Smack.getNoticeStream().

Some subprojects of Smack are governed by other licenses. Please refer to the individual subprojects.

Professional Services

Smack is a collaborative effort of many open source, professionally and spare-time, paid and unpaid, contributors. While we try to provide the best possible XMPP library for Android and Java SE compatible execution environments by following state of the art software engineering practices, the API may not always perfectly fit your requirements. We welcome contributions and encourage discussion about how Smack can be further improved. We also provide paid services ranging from XMPP/Smack related consulting to designing and developing features in order to accommodate your needs. Please contact Florian Schmaus for further information.

Bug Reporting

Only a few users have access for filling bugs in the tracker. New users should:

  1. Read "How to ask for help or report an issue"
  2. Create a discourse account (you can also sign up with your Google account).
  3. Login to the forum account
  4. Press "New Topic" in your toolbar and choose the 'Smack Support' sub-category.

Please search for your issues in the bug tracker before reporting.

Donate

If you find Smack useful and feel like donating, then you can use one of the following systems:

  • Donate via Bitcoin: 1LiU78z3498wu3jwRPKbvovKAHjTcpVbuK

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 Support 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

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 RealTime 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.

Smack - an Ignite Realtime community project.