[
https://issues.apache.org/jira/browse/NIFI-8347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17305141#comment-17305141
]
David Handermann commented on NIFI-8347:
----------------------------------------
Thanks for reporting this issue [~luuc1233]. I was able to reproduce the
problem and received the same exception when attempting to connect to
{{ListenWebSocket}}. The problem is related to the dependency handling and
class loading. The Jetty {{websocket-server}} library relies on the
{{jetty-server}} library, which also supports the NiFi framework. The
{{nifi-jetty-bundle}} provides the {{jetty-server}} library, but the Jetty
websocket code uses a special class loading approach that is not working with
NAR dependency restructuring in recent versions. The good news is that it
should be possible to resolve the problem by adjusting the thread context
ClassLoader in the NiFi JettyWebSocketServer class. I will take a closer look
at implementing a solution soon.
> 1.13.1/2 Listen Websocket Processor not working
> -----------------------------------------------
>
> Key: NIFI-8347
> URL: https://issues.apache.org/jira/browse/NIFI-8347
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Affects Versions: 1.13.1
> Reporter: Stefan Gassner
> Assignee: David Handermann
> Priority: Blocker
> Fix For: 1.13.2
>
>
> ListenWebSocket produces the following error when using any websocket client
> to connect. Last known version to work for me is 1.12.1
>
> Error Message:
> org.eclipse.jetty.server.HttpChannel /
> javax.servlet.ServletException: java.lang.RuntimeException: Unable to load
> org.eclipse.jetty.websocket.server.WebSocketServerFactory
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)