Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8051751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:22:17+00:00 2026-06-05T07:22:17+00:00

I was glad to implement smack on android via local Openfire server where it

  • 0

I was glad to implement smack on android via local Openfire server where it connects to Gmail server-host and it worked like charm. The tutorial found here

But I’m getting an error (pasted below) when I’m trying to connect two users via android emulators with a local Openfire server installed.

03-23 16:24:01.392: DEBUG/SMACK(233): 04:24:01 PM SENT (1155246128): <message id="t0tgA-5" to="justestingchat2" type="chat"><body>hi</body></message>
03-23 16:24:07.032: DEBUG/SMACK(233): 04:24:07 PM RCV  (1155246128): <message id="t0tgA-5" to="justestingchat@admin-pc/Smack" from="justestingchat2" type="error"><error code="404" type="cancel"><remote-server-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></error></message>
03-23 16:24:07.062: INFO/System.out(233): Received message: null

Here are some of my system level description:

  • I’m trying to connect two users with different user name, e-mail and passwords via two emulators in android.
  • Both the user show “Presence – Available” in the dashboard of Openfire when they are logged in Presence presence = new Presence(Presence.Type.available);
  • From the Error code pasted above the Message Id is same and i guess there is no problem with that. (correct me if I’m wrong)
  • I use the Packet Listener as provided in the tutorial above code
  • I also tried using chat manager in listening to the message using this code
    but no use it returned “Null”

Please can some one help me what’s actually wrong? If it could work with google talk why not local server? Or is it may be because of using emulator?

UPDATE 1:

For finding out where the problem is! I downloaded Spark client and did some testing. I have found out that I’m able to send packets/messages from Spark to Android Client but not from Android to Spark, which gives me a Error 404! Can any one still help me with atleast some clues please?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T07:22:18+00:00Added an answer on June 5, 2026 at 7:22 am

    Your Android code is wrong. You are sending your message to a Jid which does not include the xmpp domain justestingchat2. Try to send your message to justestingchat2@admin-pc

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a game using the libGDX Framework. I'd like to implement an icon
Very glad to learn of this way of basically subclassing a JavaScript Array (code
I will be glad if someone could answer the following questions How does it
Would be glad to see some feedback from you in using async ctp in
I develop with Actionscript and was glad to see that AIR 2.0 was going
I'm hittig my head on this and i will be glad for any help.
As i clearly mentioned above, I would be glad to hear your ideas about
there's this interesting problem i can not solve myself. I will be very glad,
I'm looking to learn some theory about data/audio/video compression, and would be glad to
I have extended org.eclipse.ui.editors.text.TextEditor to implement a custom editor. For this editor, I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.