org.xml.sax.SAXParseException: Content is not allowed in prolog

前端 未结 30 1831
别那么骄傲
别那么骄傲 2020-11-22 02:54

I have a Java based web service client connected to Java web service (implemented on the Axis1 framework).

I am getting following exception in my log file:

30条回答
  •  心在旅途
    2020-11-22 03:32

    Even I had faced a similar problem. Reason was some garbage character at the beginning of the file.

    Fix : Just open the file in a text editor(tested on Sublime text) remove any indent if any in the file and copy paste all the content of the file in a new file and save it. Thats it!. When I ran the new file it ran without any parsing errors.

提交回复
热议问题