Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-6234

ConnectWebsocket processor not able to connect to websocket server

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.9.1
    • 1.9.1
    • Configuration
    • None
    • OS : Linux
      JDK : 1.8.0
      NiFi Version : 1.9.1

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            rupesh.kumar@nbcuni.com Rupesh Kumar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: