cancel
Showing results for 
Search instead for 
Did you mean: 

Receiver Channel HTTP_AAE adatper Exception:HttpAdapterException: ERROR_SENDING_HTTP_REQUEST-Message Processing Failed. Reason : java.net.UnknownHostException

Former Member
0 Kudos

We are using HTTP_AAE adapter as receiver to send the data to web based application by using URL with HTTPS. It is throwing the following error while sending the data to web based application..

Transmitting the message to endpoint <local> using connection AFW failed, due to: com.sap.aii.adapter.http.api.HttpAdapterException: ERROR_SENDING_HTTP_REQUEST-Message Processing Failed. Reason : java.net.UnknownHostException: xxxx

The URL https://xxx.com is opening from SAP PI server but not getting the response while doing ping command from command prompt.

Note: The web server was configured in such a way that not to respond to PING command.

We maintained the host file with hostname. Even we tested with ipaddress:port in the url also. It is throwing the same error.

Anybody got this kind of issues?

Thanks

Sridhar Goli

Accepted Solutions (0)

Answers (4)

Answers (4)

iaki_vila
Active Contributor
0 Kudos

Hi Sridhar,

I think your basis team have tried to do a telnet

Have you tried with the endpoint IP directly?

Meantime you haven't better advice from SCN members I think you can try a sniffer like TCP Gateway (https://websmp202.sap-ag.de/~sapidb/012006153200000201802006E/tcpgw.zip) in order to get more logs about the communication. Also depending of your PI version you can increase the PI trace logs and tell us if there are any new relevant information 1904944 - *NF* Client side HTTP tracing for SAP PI receiver adapters

Regards.

Former Member
0 Kudos

Thank you for response.

The target server was configured not to respond to ping/telnet command. So when we run telnet/ping from PI system, it is not getting response.

Does PI uses ping/telnet commands with hostname/ipaddress before establishing the connection?

XPI_inspector tool provided the more information about the error as below.

Message Processing Failed.

12:16:01:525 J2EE_GUEST ~_/]_38 ~tp.core.filter.CallHttpServerFilter Throwing com.sap.aii.adapter.http.api.HttpAdapterException: ERROR_SENDING_HTTP_REQUEST-Message Processing Failed. Reason : java.net.UnknownHostException: https://xxx.com

12:16:01:625 J2EE_GUEST MS Queue Worker [AFWSend] ~tp.core.AdapterImpl.processOutbound Caught com.sap.aii.adapter.http.api.HttpAdapterException: ERROR_SENDING_HTTP_REQUEST-Message Processing Failed. Reason : java.net.UnknownHostException: https://xxx.com

at com.sap.aii.adapter.http.core.filter.CallHttpServerFilter.filter(CallHttpServerFilter.java:370)

at com.sap.aii.adapter.http.core.filter.FilterContextImpl.callNext(FilterContextImpl.java:51)

at com.sap.aii.adapter.http.core.filter.ConvertHeadersFilter.filterOutbound(ConvertHeadersFilter.java:232)

at com.sap.aii.adapter.http.core.filter.ConvertHeadersFilter.filter(ConvertHeadersFilter.java:63)

at com.sap.aii.adapter.http.core.filter.FilterContextImpl.callNext(FilterContextImpl.java:51)

at com.sap.aii.adapter.http.core.filter.ConvertPayloadFilter.filterOutbound(ConvertPayloadFilter.java:122)

at com.sap.aii.adapter.http.core.filter.ConvertPayloadFilter.filter(ConvertPayloadFilter.java:73)

at com.sap.aii.adapter.http.core.filter.FilterContextImpl.callNext(FilterContextImpl.java:51)

at com.sap.aii.adapter.http.core.filter.CloseResourcesFilter.filter(CloseResourcesFilter.java:31)

at com.sap.aii.adapter.http.core.filter.FilterContextImpl.callNext(FilterContextImpl.java:51)

at com.sap.aii.adapter.http.core.filter.ThreadNameFilter.filter(ThreadNameFilter.java:74)

at com.sap.aii.adapter.http.core.filter.FilterContextImpl.callNext(FilterContextImpl.java:51)

at com.sap.aii.adapter.http.core.channel.HttpReceiverChannelImpl.processOutbound(HttpReceiverChannelImpl.java:44)

at com.sap.aii.adapter.http.core.AdapterImpl.processOutbound(AdapterImpl.java:657)

at com.sap.aii.adapter.http.core.AdapterImpl.processOutbound(AdapterImpl.java:899)

at com.sap.aii.adapter.http.ejb.HttpAdapterBean.process(HttpAdapterBean.java:66)

at sun.reflect.GeneratedMethodAccessor671.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

Any body get resolved this kind of issue?

Thanks

Sridhar Goli

iaki_vila
Active Contributor
0 Kudos

Hi Seidhar,

May the host name is not cached in the DNS, have you tried to use the IP instead of the host name?

Regards.

Former Member
0 Kudos

Please implement note 1958104

Former Member
0 Kudos

Hello Atul,

Now implemented the note 1958104 also.

Still it raising the same error.

@Mateen,

While going the request from PI system, there is no check point in the firewall.

Any inputs please???

Thanks

Sridhar Goli

former_member184720
Active Contributor
0 Kudos

Hi Sridhar -


AFAIK - By default "Hostnamecheck" is enabled for SSL communication and may be that could the reason it's not working even after you configure IP address.

Try adding  " strictHostnameChecking” parameter under advanced mode and set the value to "false" to see if that helps.


mateen_popatia
Participant
0 Kudos

Hi Sridhar,

Check with your basis and security team for firewall and SSL connections as you are using HTTPS.

Regards,

Mateen