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

  • Home
  • SEARCH
  • 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 4111504
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T22:04:29+00:00 2026-05-20T22:04:29+00:00

I’m using a Java program to POST some XML data from a remote client

  • 0

I’m using a Java program to POST some XML data from a remote client machine to one our servers. I have checked individual components of the whole system independently and figured out that:

  1. The client is able to successfully fetch response for a GET request to the same server. So name resolution related issues can be ruled out.
  2. The client code in other networks is able to POST data to our server. So, the server code is working fine.
  3. Trying to POST the same data to a different server from the same client succeeds. Moreover, the systems in other networks are running the same version of the client. So, the client code works as well.
  4. I tried posting the XML file through CURL using:
    curl --header 'content-type: text/xml;charset=UTF-8' --data @5.xml -X POST http://myserver.com/updates

    but that hung up too. So, I concluded that the problem is not with the Java part but the network itself.

  5. Doing a netstat -ntavp shows the following output:
        Active Internet connections (servers and established)
        Proto Recv-Q Send-Q Local Address           Foreign Address         State
        tcp6       0   6250 192.168.1.50:32771      www.xxx.yyy.zzz:80      ESTABLISHED
        

    And the client system remains in this state for a long time showing a few thousand bytes waiting in the Send queue. I have checked the server log at the same time and there are no bytes waiting to be read there. The State is also shown as ESTABLISHED and so I have to conclude that the TCP handshake went through fine. I’m kind of stuck here.

Where more could I look to find out what is causing this problem? The OS on both the client and the server is Ubuntu 10.04

Update:
Apparently, the problem is not limited to HTTP posts. I dumped the XML portion of the request in a file and tried copying it using FTP and SCP to the server. Both these attempts failed as well. So, the current situation is this:

  1. The client is able to send requests and files to other servers.
  2. The server is able to handle HTTP requests and file uploads from other clients.
  3. The files are actually transferred to the server from the client but the connection doesn’t seem to be getting closed.
  4. I have captured the packets on the server using tcpdump and found that the checksums for some of the packets originating from the server were incorrect.

Update 2
Please ignore the update about the checksums as I came across http://www.ethereal.com/faq.html#q11.1 and verified that the client is indeed receiving TCP packets with the right checksum.

  • 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-05-20T22:04:30+00:00Added an answer on May 20, 2026 at 10:04 pm

    The problem was solved by setting the MTU to a value of 1400 as suggested in the answer to this question.

    Though the two problems appeared to be different at first, the underlying cause turned out to be the same.

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

Sidebar

Related Questions

We are using XSLT to translate a RIXML file to XML. Our RIXML contains
For some reason, after submitting a string like this Jack’s Spindle from a text
I am reading a book about Javascript and jQuery and using one of the
We're building an app, our first using Rails 3, and we're having to build
I have thousands of HTML files to process using Groovy/Java and I need to
I'm making a simple page using Google Maps API 3. My first. One marker
I have some data like this: 1 2 3 4 5 9 2 6
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i

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.