2018-12-02 13:14:58,832 INFO [Timer-Driven Process Thread-8] o.a.n.w.jetty.JettyWebSocketClient JettyWebSocketClient[id=0e167149-0167-1000-0000-000043ca0c78] Connecting to : wss://api.xxxxxxxxx.com/ws 2018-12-02 13:14:58,917 ERROR [Timer-Driven Process Thread-8] o.a.n.p.websocket.ConnectWebSocket ConnectWebSocket[id=0cce32f7-2367-1abd-baba-bf0961cbe861] Failed to process session due to org.apache.nifi.processor.exception.ProcessException: Failed to register processor to WebSocket service due to: java.io.IOException: Failed to connect wss://api.xxxxxxxxx.com/ws due to: java.util.concurrent.ExecutionException: org.eclipse.jetty.websocket.api.UpgradeException: 0 null: {} org.apache.nifi.processor.exception.ProcessException: Failed to register processor to WebSocket service due to: java.io.IOException: Failed to connect wss://api.xxxxxxxxx.com/ws due to: java.util.concurrent.ExecutionException: org.eclipse.jetty.websocket.api.UpgradeException: 0 null at org.apache.nifi.processors.websocket.AbstractWebSocketGatewayProcessor.onTrigger(AbstractWebSocketGatewayProcessor.java:180) at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1124) at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:147) at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:47) at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:128) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.io.IOException: Failed to connect wss://api.xxxxxxxxx.com/ws due to: java.util.concurrent.ExecutionException: org.eclipse.jetty.websocket.api.UpgradeException: 0 null at org.apache.nifi.websocket.jetty.JettyWebSocketClient.connect(JettyWebSocketClient.java:210) at org.apache.nifi.websocket.jetty.JettyWebSocketClient.connect(JettyWebSocketClient.java:185) at sun.reflect.GeneratedMethodAccessor6211.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.nifi.controller.service.StandardControllerServiceInvocationHandler.invoke(StandardControllerServiceInvocationHandler.java:89) at com.sun.proxy.$Proxy125.connect(Unknown Source) at org.apache.nifi.processors.websocket.AbstractWebSocketGatewayProcessor.onWebSocketServiceReady(AbstractWebSocketGatewayProcessor.java:126) at org.apache.nifi.processors.websocket.AbstractWebSocketGatewayProcessor.lambda$onTrigger$0(AbstractWebSocketGatewayProcessor.java:175) at org.apache.nifi.processors.websocket.AbstractWebSocketGatewayProcessor.registerProcessorToService(AbstractWebSocketGatewayProcessor.java:136) at org.apache.nifi.processors.websocket.AbstractWebSocketGatewayProcessor.onTrigger(AbstractWebSocketGatewayProcessor.java:175) ... 11 common frames omitted Caused by: java.util.concurrent.ExecutionException: org.eclipse.jetty.websocket.api.UpgradeException: 0 null at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357) at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1915) at org.apache.nifi.websocket.jetty.JettyWebSocketClient.connect(JettyWebSocketClient.java:208) ... 21 common frames omitted Caused by: org.eclipse.jetty.websocket.api.UpgradeException: 0 null at org.eclipse.jetty.websocket.client.WebSocketUpgradeRequest.onComplete(WebSocketUpgradeRequest.java:513) at org.eclipse.jetty.client.ResponseNotifier.notifyComplete(ResponseNotifier.java:193) at org.eclipse.jetty.client.ResponseNotifier.notifyComplete(ResponseNotifier.java:185) at org.eclipse.jetty.client.HttpReceiver.terminateResponse(HttpReceiver.java:459) at org.eclipse.jetty.client.HttpReceiver.abort(HttpReceiver.java:540) at org.eclipse.jetty.client.HttpChannel.abortResponse(HttpChannel.java:129) at org.eclipse.jetty.client.HttpSender.terminateRequest(HttpSender.java:374) at org.eclipse.jetty.client.HttpSender.abort(HttpSender.java:550) at org.eclipse.jetty.client.HttpSender.anyToFailure(HttpSender.java:343) at org.eclipse.jetty.client.HttpSender$CommitCallback.failed(HttpSender.java:708) at org.eclipse.jetty.client.http.HttpSenderOverHTTP$HeadersCallback.failed(HttpSenderOverHTTP.java:286) at org.eclipse.jetty.io.WriteFlusher$PendingState.fail(WriteFlusher.java:262) at org.eclipse.jetty.io.WriteFlusher.onFail(WriteFlusher.java:491) at org.eclipse.jetty.io.AbstractEndPoint.onClose(AbstractEndPoint.java:230) at org.eclipse.jetty.io.AbstractEndPoint.doOnClose(AbstractEndPoint.java:219) at org.eclipse.jetty.io.AbstractEndPoint.close(AbstractEndPoint.java:184) at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.fill(SslConnection.java:819) at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.process(HttpReceiverOverHTTP.java:125) at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.receive(HttpReceiverOverHTTP.java:70) at org.eclipse.jetty.client.http.HttpChannelOverHTTP.receive(HttpChannelOverHTTP.java:130) at org.eclipse.jetty.client.http.HttpConnectionOverHTTP.onFillable(HttpConnectionOverHTTP.java:116) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110) at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:258) at org.eclipse.jetty.io.ssl.SslConnection$3.succeeded(SslConnection.java:147) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110) at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:672) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:590) ... 1 common frames omitted Caused by: javax.net.ssl.SSLHandshakeException: General SSLEngine problem at sun.security.ssl.Handshaker.checkThrown(Handshaker.java:1529) at sun.security.ssl.SSLEngineImpl.checkTaskThrown(SSLEngineImpl.java:535) at sun.security.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:813) at sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:781) at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:624) at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.fill(SslConnection.java:621) ... 13 common frames omitted Caused by: javax.net.ssl.SSLHandshakeException: General SSLEngine problem at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1728) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:330) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:322) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1614) at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216) at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1052) at sun.security.ssl.Handshaker$1.run(Handshaker.java:992) at sun.security.ssl.Handshaker$1.run(Handshaker.java:989) at java.security.AccessController.doPrivileged(Native Method) at sun.security.ssl.Handshaker$DelegatedTask.run(Handshaker.java:1467) at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.fill(SslConnection.java:727) ... 13 common frames omitted Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:397) at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:302) at sun.security.validator.Validator.validate(Validator.java:260) at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324) at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:281) at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:136) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1601) ... 20 common frames omitted Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141) at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126) at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280) at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:392) ... 26 common frames omitted