Quantcast
Channel: Ignite Realtime : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 10742

AccountManager.createAccount() NoResponseException 4.1.0-aplha2

$
0
0

Hi,

 

Because of stream management support I wanted to test 4.1.0-aplha2 (currently using 4.0.0 with no problems). Everything seems to work fine by now (big applause for Stream Management!!!), except for creation of new accounts by AccountManager.

 

this is how I create new account:

AccountManager accountManager = AccountManager.getInstance(connection);

accountManager.createAccount(*username*, *password*);

 

But create account throws NoResponseException with no message.

In LogCat I can see this error:

09-29 08:46:10.009    3439-3513/*package* W/AbstractXMPPConnection﹕ Connection closed with error

   javax.net.ssl.SSLException: Connection closed by peer

            at org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_do_handshake(Native Method)

            at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLS ocketImpl.java:474)

            at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl$SSLInputStream.<init>(O penSSLSocketImpl.java:750)

            at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.getInputStream(OpenSSLS ocketImpl.java:692)

            at org.jivesoftware.smack.tcp.XMPPTCPConnection.initReaderAndWriter(XMPPTCPConnect ion.java:661)

            at org.jivesoftware.smack.tcp.XMPPTCPConnection.proceedTLSReceived(XMPPTCPConnecti on.java:768)

            at org.jivesoftware.smack.tcp.XMPPTCPConnection.access$1000(XMPPTCPConnection.java :132)

            at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPC onnection.java:1068)

            at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$200(XMPPTCPCon nection.java:969)

            at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnecti on.java:988)

 

The only thing I did was change of import path of AccountManager as is in Upgrade Guide, except that I didn't do any changes in account creation code...

If I try to login using some existing account, then everything works as great.


Viewing all articles
Browse latest Browse all 10742

Trending Articles