Menu

Chat functionality

Developers
nb76
2009-08-22
2013-03-13
  • nb76

    nb76 - 2009-08-22

    Just looked at the chat functionality and tried to enter a name and password, after leaving the options the following happens in the log:

        SEVERE: null
        conflict(409)
            at org.jivesoftware.smack.AccountManager.createAccount(AccountManager.java:240)
            at org.jivesoftware.smack.AccountManager.createAccount(AccountManager.java:203)
            at org.yccheok.jstock.chat.ChatServiceManager$ChatService.account_creating(ChatServiceManager.java:367)
            at org.yccheok.jstock.chat.ChatServiceManager$ChatService.run(ChatServiceManager.java:120)
            at java.lang.Thread.run(Thread.java:619)
        Aug 22, 2009 3:17:15 PM org.yccheok.jstock.chat.ChatServiceManager$ChatService connecting
        SEVERE: null
        SASL authentication failed using mechanism PLAIN:
            at org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java:325)
            at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:395)
            at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:349)
            at org.yccheok.jstock.chat.ChatServiceManager$ChatService.connecting(ChatServiceManager.java:437)
            at org.yccheok.jstock.chat.ChatServiceManager$ChatService.run(ChatServiceManager.java:112)
            at java.lang.Thread.run(Thread.java:619)
        Aug 22, 2009 3:17:15 PM org.yccheok.jstock.chat.ChatServiceManager$ChatService account_creating
        SEVERE: null
        conflict(409)
            at org.jivesoftware.smack.AccountManager.createAccount(AccountManager.java:240)
            at org.jivesoftware.smack.AccountManager.createAccount(AccountManager.java:203)
            at org.yccheok.jstock.chat.ChatServiceManager$ChatService.account_creating(ChatServiceManager.java:367)
            at org.yccheok.jstock.chat.ChatServiceManager$ChatService.run(ChatServiceManager.java:120)
            at java.lang.Thread.run(Thread.java:619)
        Aug 22, 2009 3:17:16 PM org.yccheok.jstock.chat.ChatServiceManager$ChatService connecting
        SEVERE: null
        SASL authentication failed using mechanism PLAIN:
            at org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java:325)
            at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:395)
            at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:349)
            at org.yccheok.jstock.chat.ChatServiceManager$ChatService.connecting(ChatServiceManager.java:437)
            at org.yccheok.jstock.chat.ChatServiceManager$ChatService.run(ChatServiceManager.java:112)
            at java.lang.Thread.run(Thread.java:619)
        Aug 22, 2009 3:17:16 PM org.yccheok.jstock.chat.ChatServiceManager$ChatService account_creating
        SEVERE: null
        conflict(409)
            at org.jivesoftware.smack.AccountManager.createAccount(AccountManager.java:240)
            at org.jivesoftware.smack.AccountManager.createAccount(AccountManager.java:203)
            at org.yccheok.jstock.chat.ChatServiceManager$ChatService.account_creating(ChatServiceManager.java:367)
            at org.yccheok.jstock.chat.ChatServiceManager$ChatService.run(ChatServiceManager.java:120)
            at java.lang.Thread.run(Thread.java:619)
        Aug 22, 2009 3:17:17 PM org.yccheok.jstock.chat.ChatServiceManager$ChatService connecting
        SEVERE: null
        SASL authentication failed using mechanism PLAIN:
            at org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java:325)
            at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:395)
            at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:349)
            at org.yccheok.jstock.chat.ChatServiceManager$ChatService.connecting(ChatServiceManager.java:437)
            at org.yccheok.jstock.chat.ChatServiceManager$ChatService.run(ChatServiceManager.java:112)
            at java.lang.Thread.run(Thread.java:619)
        Aug 22, 2009 3:17:17 PM org.yccheok.jstock.chat.ChatServiceManager$ChatService account_creating
        SEVERE: null
        conflict(409)
            at org.jivesoftware.smack.AccountManager.createAccount(AccountManager.java:240)
            at org.jivesoftware.smack.AccountManager.createAccount(AccountManager.java:203)
            at org.yccheok.jstock.chat.ChatServiceManager$ChatService.account_creating(ChatServiceManager.java:367)
            at org.yccheok.jstock.chat.ChatServiceManager$ChatService.run(ChatServiceManager.java:120)
            at java.lang.Thread.run(Thread.java:619)
        Aug 22, 2009 3:17:18 PM org.yccheok.jstock.chat.ChatServiceManager$ChatService connecting
        SEVERE: null
        SASL authentication failed using mechanism PLAIN:
            at org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java:325)
            at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:395)
            at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:349)
            at org.yccheok.jstock.chat.ChatServiceManager$ChatService.connecting(ChatServiceManager.java:437)
            at org.yccheok.jstock.chat.ChatServiceManager$ChatService.run(ChatServiceManager.java:112)
            at java.lang.Thread.run(Thread.java:619)
        Aug 22, 2009 3:17:19 PM org.yccheok.jstock.chat.ChatServiceManager$ChatService account_creating
        SEVERE: null
        conflict(409)
            at org.jivesoftware.smack.AccountManager.createAccount(AccountManager.java:240)
            at org.jivesoftware.smack.AccountManager.createAccount(AccountManager.java:203)
            at org.yccheok.jstock.chat.ChatServiceManager$ChatService.account_creating(ChatServiceManager.java:367)
            at org.yccheok.jstock.chat.ChatServiceManager$ChatService.run(ChatServiceManager.java:120)
            at java.lang.Thread.run(Thread.java:619)
        Aug 22, 2009 3:17:19 PM org.yccheok.jstock.chat.ChatServiceManager$ChatService connecting
        SEVERE: null
        SASL authentication failed using mechanism PLAIN:
            at org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java:325)
            at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:395)
            at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:349)
            at org.yccheok.jstock.chat.ChatServiceManager$ChatService.connecting(ChatServiceManager.java:437)
            at org.yccheok.jstock.chat.ChatServiceManager$ChatService.run(ChatServiceManager.java:112)
            at java.lang.Thread.run(Thread.java:619)

    Which goes on and on until you change the settings in the options. Is this necessary? I see that there are some threads started but why does this thread need to go on forever? Is this necessary or can we stop the threads after some fixed number of tries?

    --Nanne

     
    • nb76

      nb76 - 2009-08-22

      With changing the settings I mean disabling the chat functionality

       
    • yccheok

      yccheok - 2009-08-24

      This is done on purpose :

      Our chat function doesn't require user to register explicitly. They just need to choose their desire use name and password. Then it fall into two case :

      (1) Username not found in the server - System will register the use supplied username and password, and allow user to login

      (2) Username found in the server - System will first try to verify the given password. If not match, server will creating a new user name for user and keep retry username0, username1, username2... until it falls back to case (1)