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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T01:24:07+00:00 2026-06-06T01:24:07+00:00

I have created a chat application using the Jabber Smack API. I’m successfully receiving

  • 0

I have created a chat application using the Jabber Smack API. I’m successfully receiving files (from another app named “Gajim” ) but my upload fails in a few seconds only. After the “Negotiating” transfer status, I get an “error” status.

I corrected this error by supplying a “fully qualified” jabber ID but now the transfer gets indefinitely stuck at “negotiating stream” after I accept the transfer from another (Gajim) client.

I have the following code for my swingWorker class :

    OutgoingFileTransfer transfer;

    @Override
    public Void doInBackground() {

        transfer = manager.createOutgoingFileTransfer("vedant1811@jabber.org/Gajim");
        File uploadFile = fileChooser.getSelectedFile();
        try {
            transfer.sendFile(uploadFile, "test");
        } catch (XMPPException ex) {
            System.out.println("sendFile Error");
            ex.printStackTrace();
        }
        while (!transfer.isDone()) {
            if (transfer.getStatus().equals(Status.error)) {
                transferLabel.setText("ERROR!!! " + transfer.getError());
            } else {
                transferLabel.setText("Uploading File: " + uploadFile.getName()
                        + "   STATUS: " + transfer.getStatus());
                fileProgressBar.setValue((int) (100 * transfer.getProgress()));
            }
            try {
                Thread.sleep(500);
            } catch (InterruptedException ex) {
                System.out.println("thread.sleep error");
                ex.printStackTrace();
            }
        }

        return null;
    }
  • 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-06T01:24:08+00:00Added an answer on June 6, 2026 at 1:24 am

    Error was in the jabber server.
    Using the openfire server solved all my problems

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

Sidebar

Related Questions

I have created simple chat application using smack api.i can able to chat well.but
I have created a chat application using PHP, but it works only into my
I have created iphone bluetooth chat application using following tutorial:http://www.devx.com/wireless/Article/43502/1954. It works well.But when
I have created a simple text chat application for android device using flex 4
I have created an android application that calls (using kSOAP library) a SOAP based
I am trying to build a bluetooth chat application using j2me. I created a
hi i created a simple php/mysql/Ajax chat application and I have a few questions.
I have created an XMPP chat application for Android and iPhone. While testing the
I have created a php/mysql based chat page.It is like gmail chat.once i click
I have created 3 classes as following Ext.mine.TextParent - Inherting from Textfield Ext.mine.child.TextChildA -

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.