cancel
Showing results for 
Search instead for 
Did you mean: 

Validation on 7.31 AAE HTTP adapter does not deliver detailed error

former_member198060
Participant
0 Kudos

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.   <?xml version="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. <?xml version="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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Peter

I get exactly the same problem.

Did you find a solution?

Best regards

Allan

Former Member
0 Kudos

Hi Allan,

We also faced this issue and solved it by using the SOAP adapter w/o envelope instead of HTTP_AAE. Seems like it is a missing feature in the AAE version of the HTTP adapter.

Answers (3)

Answers (3)

former_member198060
Participant
0 Kudos

Thank you for your responses!

Yes I am sure that the application is working in the same way on both configurations. Only the response message differs (detailed validation error message vs. generic HTTP 500 message).

In both cases I have activated the "Validation by Adapter" option in ICO and Sender agreement and the validation of the request message is failing (I am sending an invalid enum value). If I send a correct request message, it is being processed fine on both configurations.

In fact if we check the PI logs in NWA, we can also find the detailed validation error for the HTTP_AAE adapter, it is just not sent out with the response message.

It is contained in the following log location:

/Applications/ExchangeInfrastructure
com.sap.aii.utilxi.xmlvalidation.impl.XMLSyntaxValidatorImpl
sap.com/com.sap.aii.af.app
Former Member
0 Kudos

Hi Peter,

can you verify that the system is indeed producing the same error? It might be a different one in HTTP_AAE case. In which step is the detailed error information lost?

Regards,

Jörg

abranjan
Active Participant
0 Kudos

Hi Peter,

You generally get this error 'ERROR_IN_MODULECHAIN' when there is something wrong with the build, configuration or HTTP_AAE invocation from the sender side. I would suggest you to revisit your build and verify the sender parameters (Interface name, Business System/Component etc.)

If you're able to make the build/call consistent, you will get the errors in the form you're expecting.

Regards,

Abhishek