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 3616486
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T22:30:17+00:00 2026-05-18T22:30:17+00:00

Ok, the problem should be trivial but I can’t get to the bottom of

  • 0

Ok, the problem should be trivial but I can’t get to the bottom of it.

I have two users A & B

Their JID’s for this example will be A@123 and B@123 where 123 is the IP of the server.

I’m sending a message from A->B using the following code:

   chat = chatmanager.createChat(username,
   new MessageListener() {
      public void processMessage(Chat chat, Message message) {}});
   String sendUsername = username + "@123";
   Message msgObj = new Message(sendUsername, Message.Type.chat);
   msgObj.setBody(message);

   chat.sendMessage(msgObj);

I’ve hardcoded the IP so that I’m 100% sure that I attach the “@123” at the end of the nickname so there are no incorrect JIDs.

So A@123 sends msgObj to B@123. This is how I understood XMPP messaging to work. That you can’t send from A->B but it must be A@123 -> B@123.

However, my server seems to think otherwise. It continuously informs me of the following error:

 2010.12.27 19:02:52 [org.jivesoftware.openfire.session.LocalOutgoingServerSession
 .createOutgoingSession(LocalOutgoingServerSession.java:258)] Error trying to 
 connect to remote server: A(DNS lookup: A:5269) 
 java.net.UnknownHostException: A 

In both A and B’s roster on the Openfire server, they have each other as a contact with the proper JIDs (username@123).

Can anyone provide some insight? I’m lost.

Edit

I’m trying to use Wireshark to catch the XML sent to and from the Openfire server to determine if the recipient of the message is named properly (A@123 instead of A).

Upon using Wireshark, I received this as the XML being transferred:

\302\3469\223\341\3429\000\000\000\000\377\377

I have disabled SSL, I have connected un-securely. I’m not sure why I’m getting SSL type XML, is that what it is?

  • 1 1 Answer
  • 2 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-05-18T22:30:17+00:00Added an answer on May 18, 2026 at 10:30 pm

    Turns out the answer to this problem was something that was just overlooked.

    In the first line of code:

     chat = chatmanager.createChat(username, new MessageListener() {
                public void processMessage(Chat chat, Message message) {}
          });
    

    I didn’t make the variable “username” have the proper IP extension. So it was merely “A” instead of “A@123”

    Moving “sendUsername” to the top and Changing “username” to “sendUsername” makes everything work great 🙂

    Silly mistake.

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

Sidebar

Related Questions

This is a very trivial problem but I can't seem to find a way
This should be a problem with a trivial solution, but still I wasn't able
It seems trivial enough but I can't find a valid answer to this problem.
This should be an easy problem but... I need to format a currency for
I have a simple problem, and one I feel should be almost trivial. I
This is a problem I have encountered again and again in C#, but haven't
I'm very sure this problem has been solved, but I can't find any information
I thought this would be a trivial feature, but I have lost a fair
I feel like this should be trivial, but I've struggled to find anything useful
I am having a problem with a network request that should timeout, but the

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.