jQuery in Action, 3rd edition
The moose likes Sockets and Internet Protocols and the fly likes java.io.IOException: chunked stream ended unexpectedly (htmlUnit) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "java.io.IOException: chunked stream ended unexpectedly (htmlUnit)" Watch "java.io.IOException: chunked stream ended unexpectedly (htmlUnit)" New topic

java.io.IOException: chunked stream ended unexpectedly (htmlUnit)

Kameshwar Prasad

Joined: Dec 04, 2007
Posts: 12
hi friends,
i am facing a hard problem and i need your help, please help me.

Thanks in advance.

i am using htmlunit to submit a webpage.
A form having some textfield, some combo boxs and one check box, after filling all these field i submit then i get exception, but this alway not occur at one place it may also occur when a new registration form is submitted.

Chris Janicki

Joined: Aug 30, 2006
Posts: 21

Sounds like the web server is not sending the expected amount of data before the connection closed.

It might just be that the server is busy and decided to abandon you? Can you catch the exception and retry?

If occurs every time for a set of data, then you'll have to figure out which field is causing the server to panic.
I agree. Here's the link: http://aspose.com/file-tools
subject: java.io.IOException: chunked stream ended unexpectedly (htmlUnit)
It's not a secret anymore!