码上敲享录 > java常见报错解答 > Illegal processing instruction target ("xml"); xml (case insensitive) is reserved by the specs.

Illegal processing instruction target ("xml"); xml (case insensitive) is reserved by the specs.

上一章章节目录下一章 2020-11-04已有2017人阅读 评论(0)

postma调试接口,发送xml到后端,报错如下:

org.apache.cxf.binding.soap.SoapFault: Error reading XMLStreamReader: Illegal processing instruction target ("xml"); xml (case insensitive) is reserved by the specs.at [row,col {unknown-source}]: [2,5]

解决方法:删除最上面回车导致多余的一行


总结:输入的参数必须符合xml的标准格式,如果包含多余的空格、特殊符号,会导致报错。

<?xml version="1.0" encoding="utf-8"?>这里需要注意,这一行必须在第一行,

并且需要顶格,前面没有任何空格或其他字符。

多余空格需去掉,特殊字符需转义


向大家推荐《Activiti工作流实战教程》:https://xiaozhuanlan.com/activiti
0

有建议,请留言!

  • *您的姓名:

  • *所在城市:

  • *您的联系电话:

    *您的QQ:

  • 咨询问题:

  • 提 交