Question

29
Views
hiray Member since 2017 9 posts
PEGA
Posted: August 7, 2020
Last activity: August 10, 2020

Support for proxy and Connect-HTTP

 Pega Platform version : 8.2.1(Tomcat)

 In the Onpremise environment, Proxy settings are built by adding the following to the JVM argument.

  -Dhttps.proxyHost=xxxxx

  -Dhttps.proxyPort=xxxxx

  -Dhttps.proxyUser=xxxxx

  -Dhttps.proxyPassword=xxxxx

   Attempting to access the endpoint URL "https: //xxxx" using Connect-HTTP will result in a connected error. (See log below)  As a cause, "http.proxy" is acquired in Step.2 (Java line 191-203) of InvokeHTTPConnector activity. Why don't you get "https.proxy"? Even if the JVM argument is set with "-Dhttp.proxy~", the same phenomenon as the error below will occur. The error is Step.3 of Activity, but in the first place Proxy setting is not separately set in Step.2. 

 ===PegaRULES.log(part)===  2020-08-xx hh:mm:ss,000 [http-nio-8080-exec-6] [  STANDARD] [                    ] [         APL:01.01.01] (      internal.mgmt.Executable) ERROR xx.xx.xxx.xx|xx.xx.xxx.xx operator - Exception com.pega.pegarules.pub.services.ConnectorException: Caught unhandled exception: com.pega.apache.http.conn.HttpHostConnectException: Connection to https://www.xxxx.xx.xx refused   at com.pegarules.generated.activity.ra_action_invokehttpconnector_a8742ce5ac3a62e890829fbe6da66813.step3_circum0(ra_action_invokehttpconnector_a8742ce5ac3a62e890829fbe6da66813.java:1699) ~[?:?]   at com.pegarules.generated.activity.ra_action_invokehttpconnector_a8742ce5ac3a62e890829fbe6da66813.perform(ra_action_invokehttpconnector_a8742ce5ac3a62e890829fbe6da66813.java:106) ~[?:?]   at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:2695) ~[prprivate.jar:?]   at com.pegarules.generated.activity.ra_action_invoke_e93d1725805c915fbfee401ec68131c1.step7_circum0(ra_action_invoke_e93d1725805c915fbfee401ec68131c1.java:916) ~[?:?]   at com.pegarules.generated.activity.ra_action_invoke_e93d1725805c915fbfee401ec68131c1.perform(ra_action_invoke_e93d1725805c915fbfee401ec68131c1.java:175) ~[?:?]   at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:2695) ~[prprivate.jar:?]   at com.pegarules.generated.activity.sh_action_getsendresult_ea38275eb43c3f0979db4b087e7c2ee2.step4_circum0(sh_action_getsendresult_ea38275eb43c3f0979db4b087e7c2ee2.java:411) ~[?:?]   at com.pegarules.generated.activity.sh_action_getsendresult_ea38275eb43c3f0979db4b087e7c2ee2.perform(sh_action_getsendresult_ea38275eb43c3f0979db4b087e7c2ee2.java:138) ~[?:?]   at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:2695) ~[prprivate.jar:?]   at com.pega.pegarules.session.internal.mgmt.Executable.doAction(Executable.java:2133) ~[prprivate.jar:?]   at com.pegarules.generated.activity.ra_action_pyrunrecordexecute_025cb29e81d295d991d37ad8d1e40455.step2_circum0(ra_action_pyrunrecordexecute_025cb29e81d295d991d37ad8d1e40455.java:276) ~[?:?]   at com.pegarules.generated.activity.ra_action_pyrunrecordexecute_025cb29e81d295d991d37ad8d1e40455.perform(ra_action_pyrunrecordexecute_025cb29e81d295d991d37ad8d1e40455.java:90) ~[?:?]   at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:2695) ~[prprivate.jar:?]   at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10961) ~[prprivate.jar:?]   at com.pegarules.generated.activity.ra_action_pzrunrecordexecute_f4ac7e72a6eb3491929444ab39097588.step11_circum0(ra_action_pzrunrecordexecute_f4ac7e72a6eb3491929444ab39097588.java:1026) ~[?:?]   at com.pegarules.generated.activity.ra_action_pzrunrecordexecute_f4ac7e72a6eb3491929444ab39097588.perform(ra_action_pzrunrecordexecute_f4ac7e72a6eb3491929444ab39097588.java:248) ~[?:?]   at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:2695) ~[prprivate.jar:?]   at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(ThreadRunner.java:646) ~[prprivate.jar:?]   at com.pega.pegarules.session.internal.mgmt.PRThreadImpl.runActivitiesAlt(PRThreadImpl.java:490) ~[prprivate.jar:?]   at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.runActivities(HttpAPI.java:3813) ~[prprivate.jar:?]   at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequestInner(EngineAPI.java:438) ~[prenginext.jar:?]   at sun.reflect.GeneratedMethodAccessor173.invoke(Unknown Source) ~[?:?]   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_211]   at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_211]   at com.pega.pegarules.session.internal.PRSessionProviderImpl.performTargetActionWithLock(PRSessionProviderImpl.java:1382) ~[prprivate.jar:?]   at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:1114) ~[prprivate.jar:?]   at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:968) ~[prprivate.jar:?]   at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequest(EngineAPI.java:361) ~[prenginext.jar:?]   at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.invoke(HttpAPI.java:892) ~[prprivate.jar:?]   at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl._invokeEngine_privact(EngineImpl.java:331) ~[prprivate.jar:?]   at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl.invokeEngine(EngineImpl.java:274) ~[prprivate.jar:?]   at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl.invokeEngine(EngineImpl.java:251) ~[prprivate.jar:?]   at com.pega.pegarules.priv.context.JNDIEnvironment.invokeEngineInner(JNDIEnvironment.java:275) ~[prpublic.jar:?]   at com.pega.pegarules.priv.context.JNDIEnvironment.invokeEngine(JNDIEnvironment.java:220) ~[prpublic.jar:?]   at com.pega.pegarules.web.impl.WebStandardImpl.makeEtierRequest(WebStandardImpl.java:728) ~[prwebj2ee.jar:?]   at com.pega.pegarules.web.impl.WebStandardImpl.doPost(WebStandardImpl.java:412) ~[prwebj2ee.jar:?]   at sun.reflect.GeneratedMethodAccessor172.invoke(Unknown Source) ~[?:?]   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_211]   at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_211]   at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethod(PRBootstrap.java:381) ~[prbootstrap-8.2.1-214.jar:8.2.1-214]   at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethodPropagatingThrowable(PRBootstrap.java:422) ~[prbootstrap-8.2.1-214.jar:8.2.1-214]   at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethodPropagatingThrowable(AppServerBridgeToPega.java:224) ~[prbootstrap-api-8.2.1-214.jar:8.2.1-214]   at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethod(AppServerBridgeToPega.java:273) ~[prbootstrap-api-8.2.1-214.jar:8.2.1-214]   at com.pega.pegarules.internal.web.servlet.WebStandardBoot.doPost(WebStandardBoot.java:141) ~[prbootstrap-api-8.2.1-214.jar:8.2.1-214]   at com.pega.pegarules.internal.web.servlet.WebStandardBoot.doGet(WebStandardBoot.java:102) ~[prbootstrap-api-8.2.1-214.jar:8.2.1-214]   at javax.servlet.http.HttpServlet.service(HttpServlet.java:634) ~[servlet-api.jar:?]   at com.pega.pegarules.internal.web.servlet.WebStandardBoot.service(WebStandardBoot.java:167) ~[prbootstrap-api-8.2.1-214.jar:8.2.1-214]   at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) ~[servlet-api.jar:?]   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) ~[catalina.jar:9.0.20]   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[catalina.jar:9.0.20]   at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) ~[tomcat-websocket.jar:9.0.20]   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[catalina.jar:9.0.20]   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[catalina.jar:9.0.20]   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:200) ~[catalina.jar:9.0.20]   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) ~[catalina.jar:9.0.20]   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490) ~[catalina.jar:9.0.20]   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) ~[catalina.jar:9.0.20]   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) ~[catalina.jar:9.0.20]   at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:678) ~[catalina.jar:9.0.20]   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) ~[catalina.jar:9.0.20]   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) ~[catalina.jar:9.0.20]   at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408) ~[tomcat-coyote.jar:9.0.20]   at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) ~[tomcat-coyote.jar:9.0.20]   at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:836) ~[tomcat-coyote.jar:9.0.20]   at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1839) ~[tomcat-coyote.jar:9.0.20]   at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) ~[tomcat-coyote.jar:9.0.20]   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_211]   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_211]   at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) ~[tomcat-util.jar:9.0.20]   at java.lang.Thread.run(Thread.java:748) [?:1.8.0_211] Caused by: com.pega.apache.http.conn.HttpHostConnectException: Connection to https://www.xxx.xx.xx refused   at com.pega.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:158) ~[prhttpcomponents-client-4.1.2.jar:?]   at com.pega.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149) ~[prhttpcomponents-client-4.1.2.jar:?]   at com.pega.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121) ~[prhttpcomponents-client-4.1.2.jar:?]   at com.pega.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:573) ~[prhttpcomponents-client-4.1.2.jar:?]   at com.pega.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:425) ~[prhttpcomponents-client-4.1.2.jar:?]   at com.pega.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:825) ~[prhttpcomponents-client-4.1.2.jar:?]   at com.pega.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:759) ~[prhttpcomponents-client-4.1.2.jar:?]   at com.pegarules.generated.activity.ra_action_invokehttpconnector_a8742ce5ac3a62e890829fbe6da66813.step3_circum0(ra_action_invokehttpconnector_a8742ce5ac3a62e890829fbe6da66813.java:1213) ~[?:?]   ... 69 more Caused by: java.net.ConnectException: 接続がタイムアウトしました (Connection timed out)   at java.net.PlainSocketImpl.socketConnect(Native Method) ~[?:1.8.0_211]   at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) ~[?:1.8.0_211]   at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) ~[?:1.8.0_211]   at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) ~[?:1.8.0_211]   at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[?:1.8.0_211]   at java.net.Socket.connect(Socket.java:589) ~[?:1.8.0_211]   at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:666) ~[?:1.8.0_211]   at com.pega.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:376) ~[prhttpcomponents-client-4.1.2.jar:?]   at com.pega.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:496) ~[prhttpcomponents-client-4.1.2.jar:?]   at com.pega.apache.http.conn.scheme.SchemeSocketFactoryAdaptor.connectSocket(SchemeSocketFactoryAdaptor.java:62) ~[prhttpcomponents-client-4.1.2.jar:?]   at com.pega.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:148) ~[prhttpcomponents-client-4.1.2.jar:?]   at com.pega.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149) ~[prhttpcomponents-client-4.1.2.jar:?]   at com.pega.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121) ~[prhttpcomponents-client-4.1.2.jar:?]   at com.pega.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:573) ~[prhttpcomponents-client-4.1.2.jar:?]   at com.pega.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:425) ~[prhttpcomponents-client-4.1.2.jar:?]   at com.pega.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:825) ~[prhttpcomponents-client-4.1.2.jar:?]   at com.pega.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:759) ~[prhttpcomponents-client-4.1.2.jar:?]   at com.pegarules.generated.activity.ra_action_invokehttpconnector_a8742ce5ac3a62e890829fbe6da66813.step3_circum0(ra_action_invokehttpconnector_a8742ce5ac3a62e890829fbe6da66813.java:1213) ~[?:?]   ... 69 more  ============

 

Best regards,

 

 

Pega Platform 8.2.1 Data Integration Java and Activities System Administration
Share this page LinkedIn