Hi Roland,
I'm happy to say that the information you provided was enough to allow
me to find the problem. As you guessed, the issue was with the
Content-Length header, and settting it to a value under 2^32 was the
solution.
Thanks,
Paul
Roland Weber wrote:
Hi Paul,
Ok. I'll try that. But I guess the question remains, if this isn't a
problem with the client side, is there a way to find the root cause of
the problem and fix it on the server side?
The root cause is that the designers of the Java language decided to
provide only signed integers, not unsigned ones. It is quite common
to use the faster 'int' rather than 'long' variables for counters,
and if the counter goes beyond 2 GB, you run into problems.
By removing the Content-Length header, you are removing one possible
cause of a problem that can even be found in the Servlet API:
http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletRequest.html#getContentLength()
Notice that the return value is an int, not a long?
Of course you can file a bug report against the server software,
but I wouldn't count on getting it fixed if removing the header
is a suitable workaround. If sending the data without the length
still causes an exception, then you'd have to push the issue.
cheers,
Roland
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Paul Risenhoover - Director of Engineering - DAX Solutions, Inc. - 310-478-6644
____
This email message is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. Any unauthorized review, use,
disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and destroy all copies of
the original message.