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

"Unexpected EOF in prolog" during large file upload

Vinay Naik
Greenhorn

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
Greenhorn

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.
Thanks

Thanks,
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