File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

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

Kameshwar Prasad
Greenhorn

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
Greenhorn

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)