web-dev-qa-db-ja.com

AxisFault:Server.userExceptionの意味?

次のAxisFaultはどういう意味ですか?

それはそれを意味しますか:

  • サーバーとサーバーによって発行および受信される要求は(キャッチされない)例外をスローするため、例外はクライアントに返されます。

または

  • 私のWebアプリはSOAPリクエストの作成に失敗します(そのため、リクエストはクライアントアプリからも送信されません)

NB。 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)
14
ryanprayogo

アプリケーションがSOAP障害コードの拡張性を尊重している場合、サーバーはSOAPメッセージを受信しましたが、それを解析できませんでした。

invalid XML character (Unicode: 0x1c) was found in the element content of the documentメッセージは、何が問題なのかを示す良い指標になるはずです。

サーバーが例外をスローし、AxisがクライアントにSOAP Faultとして送信します。faultCodeはサーバーエラーを示します。Server.userExceptionエラーコードは標準値ではなく、サーバー障害コードのより具体的なタイプです。

デフォルトのSOAP faultcode値は、新しいSOAP faultcode値を定義できるようにする拡張可能な方法で定義されています。メカニズムは、ドット(。)を使用して、より具体的なタイプのエラー。ドットの左側が右側の値よりも一般的な障害コード値であることを示しています。仕様 こちら を参照してください。

だからServer.userExceptionは、例外がサーバーで発生したが、サーバーに厳密に関連するものではなく、クライアントが送信したもの(.userException)。少なくとも、それは著者が考えていたものだと私は思います。これはあなたが発見するためのものです:D。

11
user159088