cancel
Showing results for 
Search instead for 
Did you mean: 

connection AFW failed, due to: com.sap.aii.af.ra.ms.api.RecoverableExceptio

Former Member
0 Kudos

Hi All,

Encountered an error occured to an interface which is earlier working fine.

On seeing Message Monitoring in RWB:

Error Category: XI_J2EE_ADAPTER_XI_HANDLER.

Error:

Transmitting the message to endpoint http://XXX.XX.XX.XX:xxxx/sap/xi/engine?type=entry using connection AFW failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Received HTTP response code 500 : Internal Server Error

Checked HTTP port in Tcode ->SMICM->GOTO->Services and it is ABAP Port 8XXX.

Checked the interface after Refreshing the cache and also restarting the server.

Still Couldn't solve the issue.

Request to solve the issue.

Regards,

Venkat.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Just try to restart AFW and AFxxx services (from Visual Admin)

Steps to restart AFW and AFxxx services are:

Start the Visual Admin tool. Connect to your XI J2EE Engine (640).

Go to Server->Services.

Try to restart such services as "SAP XI AF Messaging", "SAP XI AF Core", "SAP XI Adapter: XI", etc.

It could help.

Note: reward points if solution found helpfull

Regards

Chandrakanth.k

Former Member
0 Kudos

Hi Venkata,

In response to chandrakanth

Start the Visual Admin tool. Connect to your XI J2EE Engine (640).
Go to Server->Services.
Try to restart such services as "SAP XI AF Messaging", "SAP XI AF Core", "SAP XI Adapter: XI", etc.

please enter the password in the service SAP XI AF and try to restart the j2ee engine. I had the same issue and solved it in this manner.

Thanks,

Srini

Answers (5)

Answers (5)

Former Member
0 Kudos

Dear Mallikarjuna,

The messages are stopped while transfering from AdapterEngine to IntegrationEngine of XI Server Itself.

As earlier advised to test the URL:http://XXX.XX.XX.XX:xxxx/sap/xi/engine?type=entry

I tested with XISUPER user only and its working fine.

Please confirm me the USER responsible for the http request as mentioned in the below error (XIAFUSER or any other) as XISUPER is not responsible.

If so, can you suggest me any other ways to chk the connectivity apart from earlier mentioned.

Exact ERROR

Transmitting the message to endpoint http://XXX.XX.XX.XX:xxxx/sap/xi/engine?type=entry using connection AFW failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Received HTTP response code 500 : Internal Server Error.

Thanks in Advance.

Regards,

Venkat.

aashish_sinha
Active Contributor
0 Kudos

Hi,

the HTTP port which you have mentioend

1. Cross check is the instance number is 02 of your installation?

2. Cross check the Exchange profile the htp port value is fine.

3. crossVisual admin PMI store under destination the http port value is properly set.

the communication betwwen the AFW and IS is breaking so you are getting this error.

Also

it is possible that this error come because of wrong (http) port in the pipeline URL

of the integration server in the sld. After changing it please refresh cache

and rz70.

Regards

Aashish Sinha

PS : reward points if helpful

Edited by: Aashish Sinha on May 22, 2008 11:40 AM

former_member189354
Contributor
0 Kudos

Hi,

Try to check Business system of Integration engine in SLD. Try to check the url mentioned there is working fine or not.

Try to check the following.

1) Go to tcode SICF -> defaulthost ->SAP -> xi -> engine try to test this service. Once you test this you will find the integration engine url

2) Try to check RFC Destination "AI_RUNTIME_JCOSERVER" is working or not.

3) Try to run the report "RSUSR006" in se38 of XI it will show all dialog/service who r blocked.

If not the case means try to see audit log, Default trace & Log file

Refer SAP Note 751915, 761921 for more information.

Regards,

Rao.Mallikarjuna

Former Member
0 Kudos

Hi Mallikarjuna ,

Tested all the ways as mentioned and all the proper

Asked Basis Consultant to provide Error LogFiles:

Please have a glance of errors, let me know if

they are related to this particular error.

Errors in the Log File are:

[Thr 36] Thu May 22 12:50:25 2008

[Thr 36] *** ERROR => JRFC> Error jrfc_lg LgGroup failed(-6) [jrfc_mt.c 707]

[Thr 36] *** ERROR => mshost: sapdev, msserv: sapmsDXI, r_group: PUBLIC [jrfc_mt.c 708]

[Thr 40] Thu May 22 13:05:57 2008

[Thr 40] *** ERROR => JRFC> Error jrfc_lg LgGroup failed(-6) [jrfc_mt.c 707]

[Thr 40] *** ERROR => mshost: sapdev, msserv: sapmsDXI, r_group: PUBLIC [jrfc_mt.c 708]

[Thr 49] Sat May 24 09:31:09 2008

[Thr 49] *** ERROR => JRFC> Error jrfc_lg LgGroup failed(-6) [jrfc_mt.c 707]

[Thr 49] *** ERROR => mshost: sapdev, msserv: sapmsDXI, r_group: PUBLIC [jrfc_mt.c 708]

[Thr 44] Sat May 24 11:41:03 2008

[Thr 44] *** ERROR => JRFC> Error jrfc_lg LgGroup failed(-6) [jrfc_mt.c 707]

[Thr 44] *** ERROR => mshost: sapdev, msserv: sapmsDXI, r_group: PUBLIC [jrfc_mt.c 708]

[Thr 41] Sat May 24 12:20:40 2008

[Thr 41] *** ERROR => JRFC> Error jrfc_lg LgGroup failed(-6) [jrfc_mt.c 707]

[Thr 41] *** ERROR => mshost: sapdev, msserv: sapmsDXI, r_group: PUBLIC [jrfc_mt.c 708]

Also, Went to tcode SICF -> defaulthost ->SAP -> xi -> engine try to test this service.

Found the integration engine url

http://XXXXXXXX:xxxx/sap/xi/engine?sap-client=160

It throws a response :

- <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">

<SOAP:Header />

- <SOAP:Body>

- <SOAP:Fault xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">

<faultcode>SOAP:Client</faultcode>

<faultstring>Pipeline specified in URL attribute (type) not existing</faultstring>

<faultactor>http://sap.com/xi/XI/Message/30</faultactor>

- <detail>

- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">

<SAP:Category>XIProtocol</SAP:Category>

<SAP:Code area="MESSAGE">URL_PIPELINE_NOT_FOUND</SAP:Code>

<SAP:P1>/sap/xi/engine?sap-client=160</SAP:P1>

<SAP:P2 />

<SAP:P3 />

<SAP:P4 />

<SAP:AdditionalText />

<SAP:ApplicationFaultMessage namespace="" />

<SAP:Stack>Pipeline ID which is expected as value of attribute &quot;type&quot; in the URL, does not exist in the Integration Engine (URL = /sap/xi/engine?sap-client=160)</SAP:Stack>

</SAP:Error>

</detail>

</SOAP:Fault>

</SOAP:Body>

</SOAP:Envelope>

Regards,

Venkat.

Former Member
0 Kudos

hi venkat

The logs indicate some problems in the communication between the JRFC library and the SAP message server. So, this is the direction to look at - check out the Message server setup, check the service definitions (whether the sapmsDEV - you get service not found for this one!!, sapmsENI, sapmsZXI, etc.) in your ..\drivers\etc\services file.

and check the URL in SM59 under "HTTP Connections to SAP R/3" - "INTEGRATION_SERVER" ?

You must find : "/sap/xi/engine?type=entry" in PATH PREFIX.

Or, if you cannot handle this yourself, you could open an OSS message to get the SAP support tackle the problem.

regards

chandrakanth

Former Member
0 Kudos

Hi,

Going thru this document will help you to troubleshoot your error:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6b9f17e1-0901-0010-45ac-a9a124b4...

Regards,

Soumya

Former Member
0 Kudos

Hi venkata

Server Error 5xx

Response status codes beginning with the digit "5" indicate cases in which the server is aware that it has erred or is incapable of performing the request. Except when responding to a HEAD request, the server SHOULD include an entity containing an explanation of the error situation, and whether it is a temporary or permanent condition. User agents SHOULD display any included entity to the user. These response codes are applicable to any request method.

500 Internal Server Error

The server encountered an unexpected condition which prevented it from fulfilling the request.

for more details on error code follow the link

http://www.web-cache.com/Writings/http-status-codes.html

http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

http://www.helpwithpcs.com/courses/html/html_http_status_codes.htm

Check whether you have given the right credentials. If you are very sure that you have given right credentials then your problem will be solved by restarting J2EE engine

steps to restart J2EE engine

1) run transaction SMICM

2) then in the tab administration => J2EE instance(local) =>send soft shutdown with restart

by this java engine will restart and will be up in 5-10 minutes and your problem will be solved

Thanks

sandeep sharma

PS ; if helpful kindly reward points

Former Member
0 Kudos

Dear All,

Tried all the ways mentioned:

1. checked the url: http://XXX.XX.XX.XX:xxxx/sap/xi/engine?type=entry and working fine.

2. Restarted the Server as mentioned in SMICM and VisualAdmin.

Still the issue is not resolved.

Breif Description of Scenario.

The records are picked from Oracle DB by JDBC adapter and posted to ECC via ABAP Proxy.

Till Yesterday its working fine but now its giving the following error as mentioned above after picking the data from DataBase.

Data is stopped in moving to IntegrationEngine from AdapterEngine.

Request to fix the issue.

Regards,

Venkat.

former_member189354
Contributor
0 Kudos

Hi,

<<Breif Description of Scenario.

The records are picked from Oracle DB by JDBC adapter and posted to ECC via ABAP Proxy.

Till Yesterday its working fine but now its giving the following error as mentioned above after picking the data from DataBase.

Data is stopped in moving to IntegrationEngine from AdapterEngine.

>>

I think there is a porblem between XI to ECC. So u r able to view message payload in XI but it not going to ECC. XI is calling LOCAL integration engine pipeline of ECC. I think there is a problem. Try to check Http desination of XI to ECC in SM59 of XI.

Chk2) Just ask your basis guys any patch updated in ECC. If this is the case then local integration engine (BSP Services) will not start automatically. Try to run the report "RSXMB_ACTIVATE_ICF_SERVICES" so it automatically starts the services.

Regards,

Rao.Mallikarjuna

former_member189354
Contributor
0 Kudos

Hi,

Check in IE whether this url is working or not

http://XXX.XX.XX.XX:xxxx/sap/xi/engine?type=entry

I think u trying to connect end system using proxy, check RFC Destination in which is mentioned in ID for that interface is working or not.

Regards,

Rao.MallikarjunA

vijay_b4
Active Contributor
0 Kudos

Hi Venkata,

Check the SLD entry for ur business system

the URL should be type=entry there...

Also check the followin thread

HTTP 500 is an error caused at the Web Server side. Any http connection happens in 4 steps:

1) Obtain the IP address from the URL - provied by DNS

2) Open Ip Socket for that IP

3) Use this socket to write data

4) Receive data stream back from the server.

Reward points if this helps

Regards

Vani.