Solved

Application Messages are failing with 'java.net.UnknownHostException'

  • 29 October 2023
  • 5 replies
  • 326 views

Userlevel 1
Badge +5

Hi

One of my customer’s environment, all the Application messages are failing with below message.

ExecutionException from Sender thread Caused by: ifs.fnd.connect.senders.ConnectSender$TemporaryFailureException: Exception while sending data Caused by: java.net.UnknownHostException: site_url’

Even though I tried with mail sender, it has the same behavior.

Any idea on this?

icon

Best answer by Asanka Dissanayake 30 October 2023, 12:44

View original

5 replies

Userlevel 4
Badge +9

@Asanka Dissanayake  Looks like you are trying to connect to “site_url” which is not a valid url? 

  • Can you hardcode the host you want to connect to?
  • Can you show how you have setup your Connect Sender? 
  • For which Application message do you get the error and which routing rule / Routing address are you using?
Userlevel 1
Badge +5

@Asanka Dissanayake  Looks like you are trying to connect to “site_url” which is not a valid url? 

  • Can you hardcode the host you want to connect to?
  • Can you show how you have setup your Connect Sender? 
  • For which Application message do you get the error and which routing rule / Routing address are you using?

Hi @kvbe 

 

Error:
ExecutionException from Sender thread Caused by: ifs.fnd.connect.senders.ConnectSender$TemporaryFailureException: Exception while sending data Caused by: java.net.UnknownHostException: sde-ldifst01.hamamatsu.eu

This is a Outbound post request I’m going to send. This is working when I’m trying with POSTMAN, but not working with IFS end.

Host: sde-ldifst01.hamamatsu.eu

I’m using default REST_SENDER.
 

 

Routing Rule
 

 

Routing Address

 

Application Message
 

 

I’m using Call_Rest_Endpoint3 for this
 

Please let me know if I need to change anything in this setup?

Userlevel 4
Badge +9

@Asanka Dissanayake 

  • Are you sure IFS can access this URL? Seems a private url only available over a VPN?
  • Is it publicly available? As otherwise IFS cannot access this url. 
  • Should it be http or https? 
  • Any authentication involved?

     
Userlevel 1
Badge +5

@Asanka Dissanayake

  • Are you sure IFS can access this URL? Seems a private url only available over a VPN?
  • Is it publicly available? As otherwise IFS cannot access this url. 
  • Should it be http or https? 
  • Any authentication involved?

     

This is only accessible inside the VM. I’m trying there. This is http and it’s working fine with the POSTMAN. Below screen shot.
Even though token generation one is giving the same error., but everything working with POSTMAN, but not with IFS.

 

 

I have tried with PLSQL Developer, it also giving same result unfortunately.
 

 

Userlevel 1
Badge +5

Reason for this issue was domain name. When I used IP address instead of domain name in Routing Address it’s giving expected result.

So, the issue was in the 3rd party end due to not accepting request from outside from domain name. They have to map domain name and IP address in hosts to allow request from outside.

 

Reply