Skip to Content
0
Jan 17, 2018 at 12:20 AM

Data Hub to Hybris javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection on the Hybris cloud

238 Views

super critical we are using the following properties:

datahub.extension.exportURL=http://xxxx:29992/datahubadapter targetsystem.hybriscore.url=http://xxxxxx:29992/datahubadapter datahub.core.export.service.oauth.port=29992

 2018-01-16 22:16:56,162 [ERROR] [defaultTaskExecutor-6] [c.h.d.s.i.PublicationActionHandler] Publication #5 to target system HybrisCore failed
 com.hybris.datahub.api.publication.PublicationException: An error occurred during the export of impex file
     at com.hybris.datahub.core.adapter.impl.DefaultCoreAdapterPublicationService.targetSystemPublication(DefaultCoreAdapterPublicationService.java:61) ~[datahub-core-export-service-6.4.0.6-RC1.jar:na]
     at com.hybris.datahub.core.adapter.impl.DefaultCoreAdapterPublicationService.publish(DefaultCoreAdapterPublicationService.java:39) ~[datahub-core-export-service-6.4.0.6-RC1.jar:na]
     at com.hybris.datahub.core.adapter.impl.CoreAdapterService.publish(CoreAdapterService.java:77) ~[datahub-core-export-service-6.4.0.6-RC1.jar:na]
     at com.hybris.datahub.service.publication.impl.DefaultDataHubPublicationService.startPublication(DefaultDataHubPublicationService.java:253) ~[datahub-service-6.4.0.6-RC1.jar:6.4.0.6-RC1]
     at com.hybris.datahub.service.publication.impl.DefaultDataHubPublicationService.publish(DefaultDataHubPublicationService.java:101) ~[datahub-service-6.4.0.6-RC1.jar:6.4.0.6-RC1]
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_131]
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_131]
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_131]
     at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_131]
     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333) ~[spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE]
     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) ~[spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE]
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) ~[spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE]
     at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) ~[spring-tx-4.3.3.RELEASE.jar:4.3.3.RELEASE]
     at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281) ~[spring-tx-4.3.3.RELEASE.jar:4.3.3.RELEASE]
     at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) ~[spring-tx-4.3.3.RELEASE.jar:4.3.3.RELEASE]
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) ~[spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE]
     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213) ~[spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE]
     at com.sun.proxy.$Proxy144.publish(Unknown Source) ~[na:na]
     at com.hybris.datahub.service.impl.PublicationActionHandler.publishToTargetSystems(PublicationActionHandler.java:342) [datahub-service-6.4.0.6-RC1.jar:6.4.0.6-RC1]
     at com.hybris.datahub.service.impl.PublicationActionHandler.handlePublicationAction(PublicationActionHandler.java:126) [datahub-service-6.4.0.6-RC1.jar:6.4.0.6-RC1]
     at com.hybris.datahub.service.impl.PublicationActionHandler.handleAction(PublicationActionHandler.java:95) [datahub-service-6.4.0.6-RC1.jar:6.4.0.6-RC1]
     at com.hybris.datahub.service.impl.PublicationActionHandler.handleAction(PublicationActionHandler.java:69) [datahub-service-6.4.0.6-RC1.jar:6.4.0.6-RC1]
     at com.hybris.datahub.command.impl.AbstractPerformCommand.lambda$execute$0(AbstractPerformCommand.java:56) [datahub-service-6.4.0.6-RC1.jar:6.4.0.6-RC1]
     at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1626) ~[na:1.8.0_131]
     at com.hybris.datahub.service.ExceptionHandlingAsyncTaskExecutor$2.run(ExceptionHandlingAsyncTaskExecutor.java:79) ~[datahub-service-6.4.0.6-RC1.jar:6.4.0.6-RC1]
     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0_131]
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[na:1.8.0_131]
     at java.lang.Thread.run(Thread.java:808) ~[na:1.8.0_131]
 Caused by: javax.ws.rs.ProcessingException: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
     at org.glassfish.jersey.client.internal.HttpUrlConnector.apply(HttpUrlConnector.java:287) ~[jersey-client-2.25.jar:na]
     at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:252) ~[jersey-client-2.25.jar:na]
     at org.glassfish.jersey.client.JerseyInvocation$1.call(JerseyInvocation.java:684) ~[jersey-client-2.25.jar:na]
     at org.glassfish.jersey.client.JerseyInvocation$1.call(JerseyInvocation.java:681) ~[jersey-client-2.25.jar:na]
     at org.glassfish.jersey.internal.Errors.process(Errors.java:315) ~[jersey-common-2.25.jar:na]
     at org.glassfish.jersey.internal.Errors.process(Errors.java:297) ~[jersey-common-2.25.jar:na]
     at org.glassfish.jersey.internal.Errors.process(Errors.java:228) ~[jersey-common-2.25.jar:na]
     at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:444) ~[jersey-common-2.25.jar:na]
     at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:681) ~[jersey-client-2.25.jar:na]
     at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:437) ~[jersey-client-2.25.jar:na]
     at org.glassfish.jersey.client.JerseyInvocation$Builder.post(JerseyInvocation.java:343) ~[jersey-client-2.25.jar:na]
     at com.hybris.datahub.core.client.impl.DefaultExportClient.requestAuthToken(DefaultExportClient.java:122) ~[datahub-core-export-service-6.4.0.6-RC1.jar:na]
     at com.hybris.datahub.core.client.impl.DefaultExportClient.authenticate(DefaultExportClient.java:108) ~[datahub-core-export-service-6.4.0.6-RC1.jar:na]
     at com.hybris.datahub.core.client.impl.DefaultExportClient.export(DefaultExportClient.java:78) ~[datahub-core-export-service-6.4.0.6-RC1.jar:na]
     at com.hybris.datahub.core.adapter.impl.DefaultCoreAdapterPublicationService.targetSystemPublication(DefaultCoreAdapterPublicationService.java:56) ~[datahub-core-export-service-6.4.0.6-RC1.jar:na]
     ... 27 common frames omitted
 Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
     at sun.security.ssl.InputRecord.handleUnknownRecord(InputRecord.java:710) ~[na:1.8.0_131]
     at sun.security.ssl.InputRecord.read(InputRecord.java:527) ~[na:1.8.0_131]
     at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973) ~[na:1.8.0_131]
     at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375) ~[na:1.8.0_131]
     at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403) ~[na:1.8.0_131]
     at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387) ~[na:1.8.0_131]
     at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559) ~[na:1.8.0_131]
     at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185) ~[na:1.8.0_131]
     at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1316) ~[na:1.8.0_131]
     at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1291) ~[na:1.8.0_131]
     at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:250) ~[na:1.8.0_131]
     at org.glassfish.jersey.client.internal.HttpUrlConnector$4.getOutputStream(HttpUrlConnector.java:390) ~[jersey-client-2.25.jar:na]
     at org.glassfish.jersey.message.internal.CommittingOutputStream.commitStream(CommittingOutputStream.java:200) ~[jersey-common-2.25.jar:na]
     at org.glassfish.jersey.message.internal.CommittingOutputStream.commitStream(CommittingOutputStream.java:194) ~[jersey-common-2.25.jar:na]
     at org.glassfish.jersey.message.internal.CommittingOutputStream.write(CommittingOutputStream.java:228) ~[jersey-common-2.25.jar:na]
     at org.glassfish.jersey.message.internal.WriterInterceptorExecutor$UnCloseableOutputStream.write(WriterInterceptorExecutor.java:299) ~[jersey-common-2.25.jar:na]
     at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221) ~[na:1.8.0_131]
     at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291) ~[na:1.8.0_131]
     at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:295) ~[na:1.8.0_131]
     at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141) ~[na:1.8.0_131]
     at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229) ~[na:1.8.0_131]
     at org.glassfish.jersey.message.internal.ReaderWriter.writeToAsString(ReaderWriter.java:193) ~[jersey-common-2.25.jar:na]
     at org.glassfish.jersey.message.internal.AbstractMessageReaderWriterProvider.writeToAsString(AbstractMessageReaderWriterProvider.java:130) ~[jersey-common-2.25.jar:na]
     at org.glassfish.jersey.message.internal.StringMessageProvider.writeTo(StringMessageProvider.java:99) ~[jersey-common-2.25.jar:na]
     at org.glassfish.jersey.message.internal.StringMessageProvider.writeTo(StringMessageProvider.java:59) ~[jersey-common-2.25.jar:na]
     at org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.invokeWriteTo(WriterInterceptorExecutor.java:265) ~[jersey-common-2.25.jar:na]
     at org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.aroundWriteTo(WriterInterceptorExecutor.java:250) ~[jersey-common-2.25.jar:na]
     at org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:162) ~[jersey-common-2.25.jar:na]
     at org.glassfish.jersey.message.internal.MessageBodyFactory.writeTo(MessageBodyFactory.java:1130) ~[jersey-common-2.25.jar:na]
     at org.glassfish.jersey.client.ClientRequest.doWriteEntity(ClientRequest.java:517) ~[jersey-client-2.25.jar:na]
     at org.glassfish.jersey.client.ClientRequest.writeEntity(ClientRequest.java:499) ~[jersey-client-2.25.jar:na]
     at org.glassfish.jersey.client.internal.HttpUrlConnector._apply(HttpUrlConnector.java:393) ~[jersey-client-2.25.jar:na]
     at org.glassfish.jersey.client.internal.HttpUrlConnector.apply(HttpUrlConnector.java:285) ~[jersey-client-2.25.jar:na]
     ... 41 common frames omitted