Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8830

Validation on 7.31 AAE HTTP adapter does not deliver detailed error

$
0
0

Dear all,

I am working with a synchronous HTTP <-> PI <-> RFC on PI 7.31.

In the scenario I am using the validation by adapter option.

 

When I am using the HTTP adapter and classic configuration, in case of invalid payload being sent I am receiving back a clear error from the parser:

 

 

  1.   <?xmlversion="1.0"encoding="UTF-8"standalone="no"?>  
  2. - <Error> 
  3. - <Details> 
  4. - <![CDATA[  
  5. <SAP:Error><SAP:Category>XIServer</SAP:Category><SAP:Code>XML_VALIDATION_INB.CX_XMS_SYSERR_VALIDATION</SAP:Code><SAP:P1>com.sap.aii.utilxi.xmlvalidation.impl.XMLValidationException: XML Validation for payload with root element name message_root , target namespace http://www.root.net Failed!Errors Encountered During Parsing  
  6. 1.cvc-enumeration-valid: Value 'fufu' is not facet-valid with respect to enumeration '[TECL, STRD]'. It must be a value from the enumeration. 
  7. 2.cvc-type.3.1.3: The value 'fufu' of element 'RapidPriority' is not valid. 
  8. </SAP:P1><SAP:P2>XML Validation for payload with root element name message_root , target namespace http://www.root.net Failed!Errors Encountered During Parsing  
  9. 1.cvc-enumeration-valid: Value 'fufu' is not facet-valid with respect to enumeration '[TECL, STRD]'. It must be a value from the enumeration. 
  10. 2.cvc-type.3.1.3: The value 'fufu' of element 'RapidPriority' is not valid. 
  11. </SAP:P2><SAP:P3>Schema Not Available in Cache, try to validation with file system schemas. Validation With File System schemas also Failed. XML Validation for payload with root element name message_root , target namespace http://www.root.net Failed!Errors Encountered During Parsing  
  12. 1.cvc-enumeration-valid: Value 'fufu' is not facet-valid with respect to enumeration '[TECL, STRD]'. It must be a value from the enumeration. 
  13. 2.cvc-type.3.1.3: The value 'fufu' of element 'RapidPriority' is not valid. 
  14. </SAP:P3><SAP:AdditionalText>not used at the moment.</SAP:AdditionalText><SAP:Stack>System error occurred during XML validation</SAP:Stack></SAP:Error> 
  15.   ]]>  
  16.   </Details> 
  17.   </Error> 

 

After changing the scenario to integrated configuration using the HTTP AAE adapter, I am receiving a response to the same error in such a way:

 

 

  1. <?xmlversion="1.0"encoding="UTF-8"standalone="no"?>  
  2. - <Error> 
  3. - <Details> 
  4. - <![CDATA[
  5. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  6. <html>
  7. <head>
  8.   <title>Error Report</title>
  9.   <style>
  10.     td {font-family : Arial, Tahoma, Helvetica, sans-serif; font-size : 14px;}
  11.     A:link {color : #0059AA;}
  12.     A:visited {color : #999999;}
  13.     A:active {color : #999999;}
  14.   </style>
  15. </head>
  16. <body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" rightmargin="0">
  17.   <table width="100%" cellspacing="0" cellpadding="0" border="0" align="left" height="75">
  18.     <tr bgcolor="#FFFFFF">
  19.       <td align="left" colspan="2" height="48"><font face="Arial, Verdana, Helvetica" size="4" color="#666666"><b>  500   Internal Server Error</b></font></td>
  20.     </tr>
  21.     <tr bgcolor="#3F73A3">
  22.       <td height="23" width="84"><img width=1 height=1 border=0 alt=""></td>
  23.       <td height="23"><img width=1 height=1 border=0 alt=""></td>
  24.       <td align="right" height="23"><font face="Arial, Verdana, Helvetica" size="2" color="#FFFFFF"><b>SAP NetWeaver Application Server </b></font></td>
  25.     </tr>
  26.     <tr bgcolor="#9DCDFD">
  27.       <td height="4" colspan="3"><img width=1 height=1 border=0 alt=""></td>
  28.     </tr>
  29.   </table>
  30.   <br><br><br><br><br><br>
  31.   <p><font face="Arial, Verdana, Helvetica" size="3" color="#000000"><b>  Error: ERROR_IN_MODULECHAIN;ERROR_IN_MODULECHAIN, senderChannel &#39;2da99c2347883de1901ec9bd42dbf208&#39;: Catching exception calling messaging system</b></font></p>
  32.   <p><font face="Arial, Verdana, Helvetica" size="2" color="#000000"><b>  <a href="https://wiki.sdn.sap.com/wiki/x/wIN3Cw">SAP Technology Troubleshooting Guide</a></b></font></p>
  33.   <p><font face="Arial, Verdana, Helvetica" size="2" color="#000000"><table>
  34.     <tr>
  35.       <td valign="top"><b> Details:</b></td>
  36.       <td valign="top"><PRE>No details available.</PRE></td>
  37.     </tr>
  38.   </table></font></p>
  39. </body>
  40. </html>
  41.   ]]>  
  42.   </Details> 
  43.   </Error> 

 

As you can see after changing to HTTP AAE I am not receiving a clear parser error back. Instead a generic internal server error is being thrown.

This is a disadvantage for the Sender who does not know which part of his message was in error.

 

Maybe somebody can give me a hint how to get back the parser message on the HTTP AAE adapter instead of the generic message.


Viewing all articles
Browse latest Browse all 8830

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>