Question

1
Replies
740
Views
TSUCK Member since 2010 125 posts
PEGA
Posted: 2 years ago
Last activity: 2 years 4 months ago
Closed
Solved

Connect REST fails with SSL

Hi,

When I do test connection from Connect REST rule form, I get an error. We are using SSL but what exactly is required to setup SSL enabled REST connection? (When we test by http instead of https it works).

The PegaRULES.log gives below error messages:

2018-06-26 20:46:50,107 [ajp-nio-8009-exec-12] [TABTHREAD0] [ ] [ MyApp:01.01.01] (ivity.Rule_Connect_REST.Action) ERROR www.abc.co.jp|xxx.xxx.xxx.xxx test - REST Connector connectivity test failed: Caught unhandled exception: java.lang.RuntimeException: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
com.pega.pegarules.pub.services.ConnectorException: Caught unhandled exception: java.lang.RuntimeException: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at com.pega.pegarules.integration.engine.internal.connect.rest.RESTConnector.handleFailure(RESTConnector.java:490) ~[printegrint.jar:?]
at com.pega.pegarules.integration.engine.internal.connect.rest.RESTConnector.executeRequest(RESTConnector.java:2042) ~[printegrint.jar:?]
at com.pega.pegarules.integration.engine.internal.connect.rest.RESTConnector.perform(RESTConnector.java:413) ~[printegrint.jar:?]
at com.pega.pegarules.integration.engine.internal.connect.rest.RESTConnector.invoke(RESTConnector.java:256) ~[printegrint.jar:?]
at com.pega.pegarules.integration.config.internal.connect.PRConnectorFactory.invokeConnector(PRConnectorFactory.java:82) ~[printegrint.jar:?]
at com.pega.pegarules.integration.engine.internal.util.PRConnectorUtilsPriv.invokeConnector(PRConnectorUtilsPriv.java:168) ~[printegrint.jar:?]
at com.pega.pegarules.session.internal.mgmt.Executable.invokeConnector(Executable.java:11392) ~[prprivate.jar:?]
at com.pegarules.generated.activity.ra_action_pytestconnectivity_131f29dad7db77c5edbfb887687d259f.step10_circum0(ra_action_pytestconnectivity_131f29dad7db77c5edbfb887687d259f.java:853) ~[?:?]
at com.pegarules.generated.activity.ra_action_pytestconnectivity_131f29dad7db77c5edbfb887687d259f.perform(ra_action_pytestconnectivity_131f29dad7db77c5edbfb887687d259f.java:252) ~[?:?]
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3597) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10845) ~[prprivate.jar:?]
at com.pegarules.generated.activity.ra_action_pzresttestconnectivitywrapper_f21ade1af16855077ec0d72d9c0477cc.step3_circum0(ra_action_pzresttestconnectivitywrapper_f21ade1af16855077ec0d72d9c0477cc.java:391) ~[?:?]
at com.pegarules.generated.activity.ra_action_pzresttestconnectivitywrapper_f21ade1af16855077ec0d72d9c0477cc.perform(ra_action_pzresttestconnectivitywrapper_f21ade1af16855077ec0d72d9c0477cc.java:112) ~[?:?]
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3597) ~[prprivate.jar:?]
at com.pega.pegarules.exec.internal.declare.infengine.pages.DeclarativePageDirectoryImpl.runRule(DeclarativePageDirectoryImpl.java:1092) ~[prprivate.jar:?]
at com.pega.pegarules.exec.internal.declare.infengine.pages.DeclarativePageDirectoryImpl.runLoadActivity(DeclarativePageDirectoryImpl.java:446) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.mgmt.base.handler.ReadOnlyDataPageHandler.loadDataPage(ReadOnlyDataPageHandler.java:241) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.mgmt.base.handler.ReadOnlyDataPageHandler.findDataPage(ReadOnlyDataPageHandler.java:403) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.mgmt.base.AbstractPageDirectory.findDataPageInCurrentDir(AbstractPageDirectory.java:941) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.mgmt.base.AbstractPageDirectory.getDirectPage(AbstractPageDirectory.java:721) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.mgmt.base.ThreadPageDir.getDirectPage(ThreadPageDir.java:471) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.mgmt.base.ThreadPageDir.getPage(ThreadPageDir.java:429) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.mgmt.PRThreadImpl.getPage(PRThreadImpl.java:559) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.mgmt.Executable.findPage(Executable.java:2168) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.mgmt.Executable.findPage(Executable.java:2137) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.mgmt.Executable.findPage(Executable.java:2115) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.mgmt.Executable.findPage(Executable.java:2097) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.mgmt.autostreams.uicomponent.context.ContextProcessor.processSection(ContextProcessor.java:952) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.mgmt.autostreams.uicomponent.context.ContextProcessor.processSection(ContextProcessor.java:1232) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.mgmt.autostreams.uicomponent.context.RuntimeContextTree.loadSection(RuntimeContextTree.java:446) ~[prprivate.jar:?]
at com.pegarules.generated.flowaction.ra_stream_pyrefreshrestconnectionstatus_759adcf9d7cb810cea662fa9613e8ff7.buildSection_1(ra_stream_pyrefreshrestconnectionstatus_759adcf9d7cb810cea662fa9613e8ff7.java:260) ~[?:?]
at com.pegarules.generated.flowaction.ra_stream_pyrefreshrestconnectionstatus_759adcf9d7cb810cea662fa9613e8ff7.includeSectionBody_1(ra_stream_pyrefreshrestconnectionstatus_759adcf9d7cb810cea662fa9613e8ff7.java:266) ~[?:?]
at com.pegarules.generated.flowaction.ra_stream_pyrefreshrestconnectionstatus_759adcf9d7cb810cea662fa9613e8ff7.performStream_1(ra_stream_pyrefreshrestconnectionstatus_759adcf9d7cb810cea662fa9613e8ff7.java:317) ~[?:?]
at com.pegarules.generated.flowaction.ra_stream_pyrefreshrestconnectionstatus_759adcf9d7cb810cea662fa9613e8ff7.execute(ra_stream_pyrefreshrestconnectionstatus_759adcf9d7cb810cea662fa9613e8ff7.java:107) ~[?:?]
at com.pega.pegarules.session.internal.mgmt.StreamBuilderTools.appendStreamKeepProperties(StreamBuilderTools.java:779) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.mgmt.autostreams.IncludeStreamRuntime.getStream(IncludeStreamRuntime.java:332) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.mgmt.autostreams.IncludeStreamRuntime.emitIncludeStreamReference(IncludeStreamRuntime.java:252) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.mgmt.autostreams.AutoStreamRuntimeImpl.emitIncludeStreamReference(AutoStreamRuntimeImpl.java:409) ~[prprivate.jar:?]
at com.pegarules.generated.html_section.ra_stream_pzmodalaction_bae8d6d58b395476c52905ca9b7c1ded.performStream_7(ra_stream_pzmodalaction_bae8d6d58b395476c52905ca9b7c1ded.java:2058) ~[?:?]
at com.pegarules.generated.html_section.ra_stream_pzmodalaction_bae8d6d58b395476c52905ca9b7c1ded.execute(ra_stream_pzmodalaction_bae8d6d58b395476c52905ca9b7c1ded.java:122) ~[?:?]
at com.pega.pegarules.session.internal.mgmt.StreamBuilderTools.appendStreamKeepProperties(StreamBuilderTools.java:779) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.mgmt.autostreams.IncludeStreamRuntime.getStream(IncludeStreamRuntime.java:332) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.mgmt.autostreams.IncludeStreamRuntime.emitIncludeStreamReference(IncludeStreamRuntime.java:252) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.mgmt.autostreams.AutoStreamRuntimeImpl.emitIncludeStreamReference(AutoStreamRuntimeImpl.java:409) ~[prprivate.jar:?]
at com.pegarules.generated.html_section.ra_stream_pymodaltestconnectivity_03bd0c5b92a70133a331773d4d31a1fb.sectionBodyIncludeInCell_1(ra_stream_pymodaltestconnectivity_03bd0c5b92a70133a331773d4d31a1fb.java:2234) ~[?:?]
at com.pegarules.generated.html_section.ra_stream_pymodaltestconnectivity_03bd0c5b92a70133a331773d4d31a1fb.sectionIncludeInCell_pzModalAction_1(ra_stream_pymodaltestconnectivity_03bd0c5b92a70133a331773d4d31a1fb.java:2343) ~[?:?]
at com.pegarules.generated.html_section.ra_stream_pymodaltestconnectivity_03bd0c5b92a70133a331773d4d31a1fb.layoutBody_1(ra_stream_pymodaltestconnectivity_03bd0c5b92a70133a331773d4d31a1fb.java:2353) ~[?:?]
at com.pegarules.generated.html_section.ra_stream_pymodaltestconnectivity_03bd0c5b92a70133a331773d4d31a1fb.pzLayoutBodyWrapper_1(ra_stream_pymodaltestconnectivity_03bd0c5b92a70133a331773d4d31a1fb.java:2191) ~[?:?]
at com.pegarules.generated.html_section.ra_stream_pymodaltestconnectivity_03bd0c5b92a70133a331773d4d31a1fb.pzLayout_1(ra_stream_pymodaltestconnectivity_03bd0c5b92a70133a331773d4d31a1fb.java:2378) ~[?:?]
at com.pegarules.generated.html_section.ra_stream_pymodaltestconnectivity_03bd0c5b92a70133a331773d4d31a1fb.pzSectionBody_1(ra_stream_pymodaltestconnectivity_03bd0c5b92a70133a331773d4d31a1fb.java:281) ~[?:?]
at com.pegarules.generated.html_section.ra_stream_pymodaltestconnectivity_03bd0c5b92a70133a331773d4d31a1fb.performStream_4(ra_stream_pymodaltestconnectivity_03bd0c5b92a70133a331773d4d31a1fb.java:2385) ~[?:?]
at com.pegarules.generated.html_section.ra_stream_pymodaltestconnectivity_03bd0c5b92a70133a331773d4d31a1fb.execute(ra_stream_pymodaltestconnectivity_03bd0c5b92a70133a331773d4d31a1fb.java:118) ~[?:?]
at com.pega.pegarules.session.internal.mgmt.Executable.getStream(Executable.java:4136) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.mgmt.Executable.getStream(Executable.java:3958) ~[prprivate.jar:?]
at com.pegarules.generated.activity.ra_action_processaction_9617c8d06b04749740bfa7f3a035f72e.step23_circum0(ra_action_processaction_9617c8d06b04749740bfa7f3a035f72e.java:2284) ~[?:?]
at com.pegarules.generated.activity.ra_action_processaction_9617c8d06b04749740bfa7f3a035f72e.perform(ra_action_processaction_9617c8d06b04749740bfa7f3a035f72e.java:440) ~[?:?]
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3597) ~[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:481) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.runActivities(HttpAPI.java:3414) ~[prprivate.jar:?]
at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequestInner(EngineAPI.java:399) ~[prenginext.jar:?]
at sun.reflect.GeneratedMethodAccessor88.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_171]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_171]
at com.pega.pegarules.session.internal.PRSessionProviderImpl.performTargetActionWithLock(PRSessionProviderImpl.java:1338) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:1075) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:930) ~[prprivate.jar:?]
at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequest(EngineAPI.java:336) ~[prenginext.jar:?]
at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.invoke(HttpAPI.java:854) ~[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:278) ~[prpublic.jar:?]
at com.pega.pegarules.priv.context.JNDIEnvironment.invokeEngine(JNDIEnvironment.java:223) ~[prpublic.jar:?]
at com.pega.pegarules.web.impl.WebStandardImpl.makeEtierRequest(WebStandardImpl.java:678) ~[prwebj2ee.jar:?]
at com.pega.pegarules.web.impl.WebStandardImpl.doPost(WebStandardImpl.java:394) ~[prwebj2ee.jar:?]
at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_171]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_171]
at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethod(PRBootstrap.java:370) ~[prbootstrap-7.3.1-218.jar:7.3.1-218]
at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethodPropagatingThrowable(PRBootstrap.java:411) ~[prbootstrap-7.3.1-218.jar:7.3.1-218]
at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethodPropagatingThrowable(AppServerBridgeToPega.java:224) ~[prbootstrap-api-7.3.1-218.jar:7.3.1-218]
at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethod(AppServerBridgeToPega.java:273) ~[prbootstrap-api-7.3.1-218.jar:7.3.1-218]
at com.pega.pegarules.internal.web.servlet.WebStandardBoot.doPost(WebStandardBoot.java:129) ~[prbootstrap-api-7.3.1-218.jar:7.3.1-218]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:661) ~[servlet-api.jar:?]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) ~[servlet-api.jar:?]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) ~[catalina.jar:8.5.31]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[catalina.jar:8.5.31]
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) ~[tomcat-websocket.jar:8.5.31]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[catalina.jar:8.5.31]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[catalina.jar:8.5.31]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198) ~[catalina.jar:8.5.31]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) ~[catalina.jar:8.5.31]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:496) ~[catalina.jar:8.5.31]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) ~[catalina.jar:8.5.31]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) ~[catalina.jar:8.5.31]
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650) ~[catalina.jar:8.5.31]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) ~[catalina.jar:8.5.31]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) ~[catalina.jar:8.5.31]
at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:479) ~[tomcat-coyote.jar:8.5.31]
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) ~[tomcat-coyote.jar:8.5.31]
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790) ~[tomcat-coyote.jar:8.5.31]
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1468) ~[tomcat-coyote.jar:8.5.31]
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) ~[tomcat-coyote.jar:8.5.31]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_171]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_171]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) ~[tomcat-util.jar:8.5.31]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_171]
Caused by: java.lang.RuntimeException: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at com.pega.pegarules.integration.engine.internal.client.rest.ComponentsRESTClient.invokeRESTClient(ComponentsRESTClient.java:207) ~[printegrint.jar:?]
at com.pega.pegarules.integration.engine.internal.connect.rest.RESTConnector.invokeREST(RESTConnector.java:1545) ~[printegrint.jar:?]
at com.pega.pegarules.integration.engine.internal.connect.rest.RESTConnector.executeRequest(RESTConnector.java:1982) ~[printegrint.jar:?]
... 106 more
Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at sun.security.ssl.InputRecord.handleUnknownRecord(InputRecord.java:710) ~[?:1.8.0_171]
at sun.security.ssl.InputRecord.read(InputRecord.java:527) ~[?:1.8.0_171]
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:983) ~[?:1.8.0_171]
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1385) ~[?:1.8.0_171]
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413) ~[?:1.8.0_171]
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1397) ~[?:1.8.0_171]
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:394) ~[httpclient-4.5.2.jar:?]
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:353) ~[httpclient-4.5.2.jar:?]
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:141) ~[httpclient-4.5.2.jar:?]
at org.apache.http.impl.conn.BasicHttpClientConnectionManager.connect(BasicHttpClientConnectionManager.java:338) ~[httpclient-4.5.2.jar:?]
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380) ~[httpclient-4.5.2.jar:?]
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236) ~[httpclient-4.5.2.jar:?]
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184) ~[httpclient-4.5.2.jar:?]
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88) ~[httpclient-4.5.2.jar:?]
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) ~[httpclient-4.5.2.jar:?]
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184) ~[httpclient-4.5.2.jar:?]
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:71) ~[httpclient-4.5.2.jar:?]
at com.pega.pegarules.integration.engine.internal.client.rest.ComponentsRESTClient.invokeRESTClient(ComponentsRESTClient.java:197) ~[printegrint.jar:?]
at com.pega.pegarules.integration.engine.internal.connect.rest.RESTConnector.invokeREST(RESTConnector.java:1545) ~[printegrint.jar:?]
at com.pega.pegarules.integration.engine.internal.connect.rest.RESTConnector.executeRequest(RESTConnector.java:1982) ~[printegrint.jar:?]
... 106 more
Data Integration
Moderation Team has archived post
Share this page LinkedIn