Not receiving messages from XMPP server even device is connected to XMPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I am trying to setup XMPP server for mobile application.
On XMPP server my mobile device is connected ,but when I try to send notification I am not receiving it on device.
I am receiving ping from server that mean there is connection between device and XMPP.



Below is my Tomcat log report:



18:45:35,327  INFO EjabberdXmppManager:207 - connected but not authenticated, so going to login...test1 18:45:35,328  INFO EjabberdXmppManager:247 - XMPPException while login - SASL authentication PLAIN failed: text

18:45:35,483 INFO EjabberdXmppManager:107 - connectionClosedOnError()
- stream:error (not-authorized) 18:45:36,483 INFO EjabberdXmppManager:121 - reconnectingIn() in secs – 9


And in Ejabberd log I am getting below warning:



2019-01-03 15:12:06.223 [warning] <0.545.0>@ejabberd_c2s:handle_auth_failure:447 (tcp|<0.545.0>) Failed c2s PLAIN authentication for test1@vspdragonap1 from ::ffff:IP: Invalid username or password


I have spent lot of time to resolve this issue but no luck.



Please help if anyone has faced same issue.










share|improve this question

























  • share your code which done for create connection and login

    – AD 10
    Mar 6 at 5:36


















0















I am trying to setup XMPP server for mobile application.
On XMPP server my mobile device is connected ,but when I try to send notification I am not receiving it on device.
I am receiving ping from server that mean there is connection between device and XMPP.



Below is my Tomcat log report:



18:45:35,327  INFO EjabberdXmppManager:207 - connected but not authenticated, so going to login...test1 18:45:35,328  INFO EjabberdXmppManager:247 - XMPPException while login - SASL authentication PLAIN failed: text

18:45:35,483 INFO EjabberdXmppManager:107 - connectionClosedOnError()
- stream:error (not-authorized) 18:45:36,483 INFO EjabberdXmppManager:121 - reconnectingIn() in secs – 9


And in Ejabberd log I am getting below warning:



2019-01-03 15:12:06.223 [warning] <0.545.0>@ejabberd_c2s:handle_auth_failure:447 (tcp|<0.545.0>) Failed c2s PLAIN authentication for test1@vspdragonap1 from ::ffff:IP: Invalid username or password


I have spent lot of time to resolve this issue but no luck.



Please help if anyone has faced same issue.










share|improve this question

























  • share your code which done for create connection and login

    – AD 10
    Mar 6 at 5:36














0












0








0








I am trying to setup XMPP server for mobile application.
On XMPP server my mobile device is connected ,but when I try to send notification I am not receiving it on device.
I am receiving ping from server that mean there is connection between device and XMPP.



Below is my Tomcat log report:



18:45:35,327  INFO EjabberdXmppManager:207 - connected but not authenticated, so going to login...test1 18:45:35,328  INFO EjabberdXmppManager:247 - XMPPException while login - SASL authentication PLAIN failed: text

18:45:35,483 INFO EjabberdXmppManager:107 - connectionClosedOnError()
- stream:error (not-authorized) 18:45:36,483 INFO EjabberdXmppManager:121 - reconnectingIn() in secs – 9


And in Ejabberd log I am getting below warning:



2019-01-03 15:12:06.223 [warning] <0.545.0>@ejabberd_c2s:handle_auth_failure:447 (tcp|<0.545.0>) Failed c2s PLAIN authentication for test1@vspdragonap1 from ::ffff:IP: Invalid username or password


I have spent lot of time to resolve this issue but no luck.



Please help if anyone has faced same issue.










share|improve this question
















I am trying to setup XMPP server for mobile application.
On XMPP server my mobile device is connected ,but when I try to send notification I am not receiving it on device.
I am receiving ping from server that mean there is connection between device and XMPP.



Below is my Tomcat log report:



18:45:35,327  INFO EjabberdXmppManager:207 - connected but not authenticated, so going to login...test1 18:45:35,328  INFO EjabberdXmppManager:247 - XMPPException while login - SASL authentication PLAIN failed: text

18:45:35,483 INFO EjabberdXmppManager:107 - connectionClosedOnError()
- stream:error (not-authorized) 18:45:36,483 INFO EjabberdXmppManager:121 - reconnectingIn() in secs – 9


And in Ejabberd log I am getting below warning:



2019-01-03 15:12:06.223 [warning] <0.545.0>@ejabberd_c2s:handle_auth_failure:447 (tcp|<0.545.0>) Failed c2s PLAIN authentication for test1@vspdragonap1 from ::ffff:IP: Invalid username or password


I have spent lot of time to resolve this issue but no luck.



Please help if anyone has faced same issue.







android xmpp






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 4 at 12:32









Jeel Vankhede

2,9282420




2,9282420










asked Jan 4 at 12:14









Android DeveloperAndroid Developer

12




12













  • share your code which done for create connection and login

    – AD 10
    Mar 6 at 5:36



















  • share your code which done for create connection and login

    – AD 10
    Mar 6 at 5:36

















share your code which done for create connection and login

– AD 10
Mar 6 at 5:36





share your code which done for create connection and login

– AD 10
Mar 6 at 5:36












1 Answer
1






active

oldest

votes


















0














According to the logs you provided - you simply did not authorize(login) properly. Username or password is wrong. Hence you do not have any active user session at XMPP server. That’s why you do not receive anything.
You need to check your username and password.






share|improve this answer
























  • Thank you, I am checking for user credentials. But why is it saying 'XMPPException while login - SASL authentication PLAIN failed: text'? is it due to wrong credentials or any other reason?

    – Android Developer
    Jan 7 at 10:09













  • Wrong credentials

    – Rubycon
    Jan 8 at 6:53











  • Yup, you were right,there was issue with credentails.I registered my user on ejabberd and now it's working fine. Thank you.

    – Android Developer
    Jan 9 at 10:42














Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54038783%2fnot-receiving-messages-from-xmpp-server-even-device-is-connected-to-xmpp%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














According to the logs you provided - you simply did not authorize(login) properly. Username or password is wrong. Hence you do not have any active user session at XMPP server. That’s why you do not receive anything.
You need to check your username and password.






share|improve this answer
























  • Thank you, I am checking for user credentials. But why is it saying 'XMPPException while login - SASL authentication PLAIN failed: text'? is it due to wrong credentials or any other reason?

    – Android Developer
    Jan 7 at 10:09













  • Wrong credentials

    – Rubycon
    Jan 8 at 6:53











  • Yup, you were right,there was issue with credentails.I registered my user on ejabberd and now it's working fine. Thank you.

    – Android Developer
    Jan 9 at 10:42


















0














According to the logs you provided - you simply did not authorize(login) properly. Username or password is wrong. Hence you do not have any active user session at XMPP server. That’s why you do not receive anything.
You need to check your username and password.






share|improve this answer
























  • Thank you, I am checking for user credentials. But why is it saying 'XMPPException while login - SASL authentication PLAIN failed: text'? is it due to wrong credentials or any other reason?

    – Android Developer
    Jan 7 at 10:09













  • Wrong credentials

    – Rubycon
    Jan 8 at 6:53











  • Yup, you were right,there was issue with credentails.I registered my user on ejabberd and now it's working fine. Thank you.

    – Android Developer
    Jan 9 at 10:42
















0












0








0







According to the logs you provided - you simply did not authorize(login) properly. Username or password is wrong. Hence you do not have any active user session at XMPP server. That’s why you do not receive anything.
You need to check your username and password.






share|improve this answer













According to the logs you provided - you simply did not authorize(login) properly. Username or password is wrong. Hence you do not have any active user session at XMPP server. That’s why you do not receive anything.
You need to check your username and password.







share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 6 at 10:56









RubyconRubycon

16.3k93759




16.3k93759













  • Thank you, I am checking for user credentials. But why is it saying 'XMPPException while login - SASL authentication PLAIN failed: text'? is it due to wrong credentials or any other reason?

    – Android Developer
    Jan 7 at 10:09













  • Wrong credentials

    – Rubycon
    Jan 8 at 6:53











  • Yup, you were right,there was issue with credentails.I registered my user on ejabberd and now it's working fine. Thank you.

    – Android Developer
    Jan 9 at 10:42





















  • Thank you, I am checking for user credentials. But why is it saying 'XMPPException while login - SASL authentication PLAIN failed: text'? is it due to wrong credentials or any other reason?

    – Android Developer
    Jan 7 at 10:09













  • Wrong credentials

    – Rubycon
    Jan 8 at 6:53











  • Yup, you were right,there was issue with credentails.I registered my user on ejabberd and now it's working fine. Thank you.

    – Android Developer
    Jan 9 at 10:42



















Thank you, I am checking for user credentials. But why is it saying 'XMPPException while login - SASL authentication PLAIN failed: text'? is it due to wrong credentials or any other reason?

– Android Developer
Jan 7 at 10:09







Thank you, I am checking for user credentials. But why is it saying 'XMPPException while login - SASL authentication PLAIN failed: text'? is it due to wrong credentials or any other reason?

– Android Developer
Jan 7 at 10:09















Wrong credentials

– Rubycon
Jan 8 at 6:53





Wrong credentials

– Rubycon
Jan 8 at 6:53













Yup, you were right,there was issue with credentails.I registered my user on ejabberd and now it's working fine. Thank you.

– Android Developer
Jan 9 at 10:42







Yup, you were right,there was issue with credentails.I registered my user on ejabberd and now it's working fine. Thank you.

– Android Developer
Jan 9 at 10:42






















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54038783%2fnot-receiving-messages-from-xmpp-server-even-device-is-connected-to-xmpp%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Monofisismo

Angular Downloading a file using contenturl with Basic Authentication

Olmecas