Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/312.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java AxisFault:Server.userException是什么意思?_Java_Web Services_Soap_Axis - Fatal编程技术网

Java AxisFault:Server.userException是什么意思?

Java AxisFault:Server.userException是什么意思?,java,web-services,soap,axis,Java,Web Services,Soap,Axis,以下AxisFault是什么意思 这是否意味着: 由服务器和服务器发出和接收的请求引发(未捕获)异常,因此该异常将返回给客户端 或 我的web应用无法创建SOAP请求(因此请求甚至没有从客户端应用发送) 注意。我不熟悉web服务 AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: org.xml.sax.SAXP

以下AxisFault是什么意思

这是否意味着:

  • 由服务器和服务器发出和接收的请求引发(未捕获)异常,因此该异常将返回给客户端

  • 我的web应用无法创建SOAP请求(因此请求甚至没有从客户端应用发送)
注意。我不熟悉web服务

AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x1c) was found in the element content of the document.
 faultActor:
 faultNode:
 faultDetail:
        {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x1c) was found in the element content of the document.
        at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
        at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
        at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
        at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
        at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)

如果您的应用程序尊重SOAP故障代码的可扩展性,那么这意味着您的服务器收到了SOAP消息,但无法解析它

在文档的元素内容中发现
无效的XML字符(Unicode:0x1c)
消息应该是错误的一个很好的指示器

您的服务器正在抛出一个异常,Axis将该异常作为SOAP错误发送给客户端。故障代码表示服务器错误。请注意,
Server.userException
错误代码不是标准值,它只是一种更具体的服务器故障代码

默认的SOAP faultcode值是以可扩展的方式定义的,允许定义新的SOAP faultcode值。该机制使用点(.)来定义更具体的错误类型。它表示点左侧的值比右侧的值更为通用的故障代码值。请看规格


因此,我猜
Server.userException
是一种恰当的说法,表示异常发生在服务器上,但与服务器没有严格的关系,而是与客户端发送的内容有关(
.userException
)。至少我认为这是作者的想法。这是为了让您发现:D.

如果您是web服务新手,您确实希望避免使用Axis。它是古老的、过时的和垃圾。不幸的是,这不是一个选项:(它已经在代码库中了,我不是在构建任何新的东西。我只是想找出什么是错的。@skaffman:除此之外,你会建议哪个库?