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

前端 未结 30 1837
别那么骄傲
别那么骄傲 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条回答
  •  -上瘾入骨i
    2020-11-22 03:43

    My answer wouldn't help you probably, but it help with this problem generally.

    When you see this kind of exception you should try to open your xml file in any Hex Editor and sometime you can see additional bytes at the beginning of the file which text-editor doesn't show.

    Delete them and your xml will be parsed.

提交回复
热议问题