Hi all,
I’m working with Smack under Scala, but I’m getting the same results with Java.
I have the code
val config: XMPPTCPConnectionConfiguration = XMPPTCPConnectionConfiguration.builder()
.setUsernameAndPassword("user", "password")
.setServiceName("localhost")
.setHost("localhost")
.setPort(5222)
.build()
val conn: AbstractXMPPConnection = new XMPPTCPConnection(config)
conn.connect()
And the config object gets set up just fine, and on inspection its values are correct. However, when I pass it into the Connection object, all I get are nulls in every field, and the call to connect results in an NPE. This code is directly copied (with some modification) from http://www.igniterealtime.org/builds/smack/docs/latest/documentation/gettingstar ted.html . Help?