java.lang.IllegalArgumentException: Attempted to write longer thanContent-Length

N

Nishi Bhonsle

Hi:
I am trying to download a file stored in a database via an application server onto a local machine.
I get the below error from the application server(web application).
How could I debug this or resolve this?

04/07/19 16:28:44 [ecid: 130.35.98.59:66015:1090279720765,0] Servlet error
java.lang.IllegalArgumentException: Attempted to write longer than Content-Length (8312 + 1504 / 120)

at com.evermind[Oracle Application Server Containers for J2EE 10g 10.1.2.0.0)].server.http.EvermindServletOutputStream.write(EvermindServletOutputStream.java:177)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.EvermindServletOutputStream.write(EvermindServletOutputStream.java:151)
at sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:336)
at sun.nio.cs.StreamEncoder$CharsetSE.implFlushBuffer(StreamEncoder.java:404)
at sun.nio.cs.StreamEncoder$CharsetSE.implFlush(StreamEncoder.java:408)
at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:152)
at java.io_OutputStreamWriter.flush(OutputStreamWriter.java:213)
 
R

Roedy Green

java.lang.IllegalArgumentException: Attempted to write longer than Content-Length (8312 + 1504 / 120)

At some point do you set the content-length? If so, it sounds like
you forgot to include the padding caused by URL-encoding.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top