tomcat 8.5 上的 Apache cxf carriage return 问题

Apache cxf carriage return issue on tomcat 8.5

当调用 soap xml 服务(JAX-WS,JAVA 8,SPRING 3)时,我有一个 nullPointerException 在: org.codehaus.stax2.ri.evt.EntityReferenceEventImpl.getName(EntityReferenceEventImpl.java:38)

描述值中有回车 return 时会出现此问题:

<ns3:description>
               Bonjour
    <soap:Fault>
        <faultcode>soap:Server</faultcode>
        <faultstring>Fault occurred while processing.</faultstring>
    </soap:Fault>
</ns3:description>

机器信息:

NAME="Red Hat Enterprise Linux Server" 
VERSION="7.5 (Maipo)" 
ID_LIKE="fedora" 
VERSION_ID="7.5" 
PRETTY_NAME="Red Hat Enterprise Linux Server 7.5 (Maipo)" 
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.5:GA:server"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7" 
REDHAT_BUGZILLA_PRODUCT_VERSION=7.5 
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux" 
REDHAT_SUPPORT_PRODUCT_VERSION="7.5"

Tomcat 信息:

Server version: Apache Tomcat/8.5.31
Server built:   Apr 27 2018 20:24:25 UTC
Server number:  8.5.31.0
OS Name:        Linux
OS Version:     3.10.0-862.3.2.el7.x86_64
Architecture:   amd64
JVM Version:    1.8.0_171-b10
JVM Vendor:     Oracle Corporation

感谢您的帮助

这是一个bug版本openjdk 1.8.0.171我正在使用1.8.0.181并且它很好