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

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

    Try adding a space between the encoding="UTF-8" string in the prolog and the terminating ?>. In XML the prolog designates this bracket-question mark delimited element at the start of the document (while the tag prolog in stackoverflow refers to the programming language).

    Added: Is that dash in front of your prolog part of the document? That would be the error there, having data in front of the prolog, -.

提交回复
热议问题