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;
}
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
add a comment |
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 your code which done for create connection and login
– AD 10
Mar 6 at 5:36
add a comment |
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
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
android xmpp
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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.
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
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
add a comment |
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.
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
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
share your code which done for create connection and login
– AD 10
Mar 6 at 5:36