I had a very nice implementation of code that relied on smack 2.x and jaxb2.0 which worked. But it stopped working, and I am trying to upgrade ti to smack 3.04.
Some things have changed. Before there was no XMPPConnection.connect() method, and there was an explicit method to turn on TLS (which I think is the default). But now when I do the connect() method, the server (SoapBox) rejects the connection syaing “NotAuthorizedStreamException. Stream not authenticated.” This is before the login() request.
How do I authenticate the stream? What causes this?
Here is the code:
ConnectionConfiguration cc = new ConnectionConfiguration (xmpp_server, 5222);
fConn = new XMPPConnection (cc);
//###JAR connect to the server
The connection is rejected at this point!