Question
Last activity: 10 Dec 2015 10:53 EST
Connect-REST throws java.net.UnknownHostException:
Hi
Getting the UnknownHostException in logs during external web service call.
"2015-12-02 14:20:38,687 [ PegaRULES-Batch-5] [ STANDARD] [ APP ] ( internal.mgmt.Executable) ERROR - Exception;com.pega.pegarules.pub.services.ConnectorException: Caught unhandled exception: java.net.UnknownHostException: gxdfg.abc.com;
at com.pegarules.generated.activity.ra_action_pyinvokerestconnector_d5932c3f5fc9a7db196ef4095a1c0cd8.step5_circum0(ra_action_pyinvokerestconnector_d5932c3f5fc9a7db196ef4095a1c0cd8.java:1641);
at com.pegarules.generated.activity.ra_action_pyinvokerestconnector_d5932c3f5fc9a7db196ef4095a1c0cd8.perform(ra_action_pyinvokerestconnector_d5932c3f5fc9a7db196ef4095a1c0cd8.java:137);
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3275);
at com.pegarules.generated.activity.ra_action_invoke_e96c8a23c931209f846ec48e6a37da41.step7_circum0(ra_action_invoke_e96c8a23c931209f846ec48e6a37da41.java:1005);
at com.pegarules.generated.activity.ra_action_invoke_e96c8a23c931209f846ec48e6a37da41.perform(ra_action_invoke_e96c8a23c931209f846ec48e6a37da41.java:172);
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3275);
Any inputs like what could be the reason for causing this issue? how it cab be resolved?
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
IN
Hi,
Is the host mentioned in the exception "gxdfg.abc.com" reachable from the system where prpc is running ? I mean able to ping or access the rest service out of prpc ?
I couldn't mentioned exact service host name over here due to security issue,so updated the some absurd host name .
However ,service host is reachable from pega PRPC as able to ping the host name.
The host name can be accessed while in client network .
Pegasystems Inc.
IN
Hi Brahma,
Can you please use IP address instead of domain name?
Also, as mentioned by Jeff, it is really required to have PRPC version for better advice. Therefore, we suggest you to provide PRPC version every time you seek help.
Pegasystems Inc.
US
are there any proxy servers involved in your setup? If the external web service is hosted in the internet, normally company IT will require the request going through proxy server.
Updated: 7 Dec 2015 12:53 EST
Pegasystems Inc.
US
Hi,
Answering these questions will improve the answers you get on this forum:
- What version of Pega is in use?
- What application server are you using?
- What version of Java is in use?
- Is it possible that the Pega server is trying to complete the connection using ipv6?
1) 7.1.6 PRPC version
2) Weblogic server
3) jdk1.6.0_34
I'm not sure about 4th question, so please suggest me how it can be validated it if possible.
Do you get a response back when you test the REST endpoint using SOAPUI/Advanced REST client (Chrome Extension) or any other REST client?
Aditya,
Today ,one of the agent interval has been traced in prod,and i didn't see any issue with web service call as it returned valid response as expected.
Seems to be an intermittent issue ,as agent makes the web service calls for every 30 sec,but count of the exception being occurred in logs is very minimal(6-7) per day.
we are still thinking of what could be the issue for causing the exception.
.
Pegasystems Inc.
US
this proves that this has to do with the running state (not configuration per se) of the system. Perhaps, DNS server/networking issues?
Pegasystems Inc.
IN
As kevin said, if a proxy or load balanced configuration involved in the setup, then the network blips could be the reason for intermittent failures.
Yes..load balanced configuration involved in the set up.
Pegasystems Inc.
US
When pinging you would see IPv6 format IP addresses in the output of the ping command.
It's IPv4 format.