You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Rupesh Kumar (JIRA)" <ji...@apache.org> on 2019/04/23 09:49:00 UTC

[jira] [Created] (NIFI-6234) ConnectWebsocket processor not able to connect to websocket server

Rupesh Kumar created NIFI-6234:
----------------------------------

             Summary: ConnectWebsocket processor not able to connect to websocket server
                 Key: NIFI-6234
                 URL: https://issues.apache.org/jira/browse/NIFI-6234
             Project: Apache NiFi
          Issue Type: Bug
          Components: Configuration
    Affects Versions: 1.9.1
         Environment: OS : Linux
JDK : 1.8.0
NiFi Version : 1.9.1

            Reporter: Rupesh Kumar
             Fix For: 1.9.1


I am trying to connect to websocket server using ConnectWebSocket Processor.

My server resides behind a proxy.

I have done proxy configuration in bootstrap.conf as well as nifi.properties.

In bootstrap.conf, i filled below properties with the value of proxy server.

--------------bottstrap.conf--------------

java.arg.20=-Dhttps.proxyHost=<<proxy server host>>
java.arg.21=-Dhttps.proxyPort=<<proxy server port>>
java.arg.22=-Dhttp.proxyHost=<<proxy server host>>
java.arg.23=-Dhttp.proxyPort=<<proxy server port>>
java.arg.24=-Dhttp.nonProxyHosts="localhost|127.0.0.1|10.218.*.*|"

----------------------------------------------------------------------------------

in nifi.properties, I updated below value:

nifi.web.proxy.host=<<proxy host>>

----------------------------------------------------------------------------------

Still I am bot able to connect to Websocket server.

PFB logs for same.

---------------------------------------------------logs-----------------------------------

Failed to connect ws://echo.websocket.org 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 ws://echo.websocket.org 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 ws://echo.websocket.org 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:1162)

        at

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

        at java.lang.Thread.run(Thread.java:748)

Caused by: java.io.IOException: Failed to connect ws://echo.websocket.org due to: java.util.concurrent.ExecutionException: org.eclipse.jetty.websocket.api.UpgradeException: 0 null



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)