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

前端 未结 30 2142
别那么骄傲
别那么骄傲 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:44

    I followed the instructions found here and i got the same error.

    I tried several things to solve it (ie changing the encoding, typing the XML file rather than copy-pasting it ect) in Notepad and XML Notepad but nothing worked.

    The problem got solved when I edited and saved my XML file in Notepad++ (encoding --> utf-8 without BOM)

提交回复
热议问题