[ 
https://issues.apache.org/jira/browse/NIFI-6234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pierre Villard resolved NIFI-6234.
----------------------------------
    Resolution: Feedback Received

Apache NiFi 1.x is no longer maintained and no new release is planned on the 
1.x release line. Marking as resolved as part of a cleanup operation. Please 
open a new one with an updated description if this is still relevant for NiFi 
2.x.

> 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
>            Priority: Major
>             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
(v8.20.10#820010)

Reply via email to