Smack connection object is generating nulls after configuration

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")





val conn: AbstractXMPPConnection = new XMPPTCPConnection(config)


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 ted.html . Help?