Don't give up yet. Paste your full stack trace to get a solution.
java.net.ProtocolException: Didn't meet stated Content-Length, wrote:
'999424' bytes instead of stated: '1244424' bytes.
at java.lang.Throwable.fillInStackTrace(Native Method)
You have a different solution? A short tip here would help you and many other users who saw this issue last week.