wood burning stoves*
The moose likes Web Services and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark ""Unexpected EOF in prolog" during large file upload" Watch ""Unexpected EOF in prolog" during large file upload" New topic

"Unexpected EOF in prolog" during large file upload

Vinay Naik

Joined: Apr 20, 2009
Posts: 1
When I am trying to upload large files (30MB-80MB ) through web services (axis2) on OpenKM document repository, I am getting "Unexpected EOF in prolog" error. When I try to upload the same through openkm UI, they are getting uploaded successfully (they are not using web services). So the problem looks like in web services only. Is there any setting need to be done to make it work?

I already tried CHUNKED = true/false, but it is still failing.
Prasad Kumbhare

Joined: Oct 18, 2007
Posts: 26
I don't have experience with OpenKM but I am using kind of similar content server. I saw same problem yesterday but it came down to having some junk character in file. I am trying to contribute / consume XML content. All of the XML validators were validating XML correctly but consuming that content thru web service was giving this king of exception., Unexpected EOF in prolog.
Simply making copy of the same content and using it workied for me.
Not sure this will help but just wanted to share.

Prasad Kumbhare
SCJP 5.0, SCWCD 5.0, SCBCD 5.0
I agree. Here's the link: http://aspose.com/file-tools
subject: "Unexpected EOF in prolog" during large file upload
Similar Threads
IWAB0135E An unexpected error has occurred.
how to remove java rpm from RH9
Content is not allowed in prolog
Using WS-RM with Axis2 1.5?
Axis2 Webservice deployed in Glassfish V3 - com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in pro