Exception when safeExit API is called - Failed to stop filters

I’m seeing this exception when I call the safeExit API on my Jenkins application:

2023-01-24 02:17:55.797+0000 [id=158]	INFO	hudson.lifecycle.Lifecycle#onStop: Stopping Jenkins as requested by from 
2023-01-24 02:17:55.887+0000 [id=158]	INFO	hudson.lifecycle.Lifecycle#onStatusUpdate: Stopping Jenkins
2023-01-24 02:17:55.898+0000 [id=158]	INFO	jenkins.model.Jenkins$16#onAttained: Started termination
200
2023-01-24 02:17:55.953+0000 [id=158]	INFO	jenkins.model.Jenkins$16#onAttained: Completed termination
2023-01-24 02:17:55.953+0000 [id=158]	INFO	jenkins.model.Jenkins#_cleanUpDisconnectComputers: Starting node disconnection
2023-01-24 02:17:56.070+0000 [id=158]	INFO	jenkins.model.Jenkins#_cleanUpShutdownPluginManager: Stopping plugin manager
2023-01-24 02:17:56.083+0000 [id=158]	INFO	jenkins.model.Jenkins#_cleanUpPersistQueue: Persisting build queue
2023-01-24 02:17:56.092+0000 [id=158]	INFO	jenkins.model.Jenkins#_cleanUpAwaitDisconnects: Waiting for node disconnection completion
2023-01-24 02:17:56.092+0000 [id=158]	SEVERE	jenkins.model.Jenkins#_cleanUpPluginServletFilters: Failed to stop filters
java.lang.ClassNotFoundException: org.jenkinsci.plugins.ssegateway.SubscriptionConfigQueue$SubscriptionConfig
	at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:476)
	at jenkins.util.URLClassLoader2.findClass(URLClassLoader2.java:35)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
Caused: java.lang.NoClassDefFoundError: org/jenkinsci/plugins/ssegateway/SubscriptionConfigQueue$SubscriptionConfig
	at org.jenkinsci.plugins.ssegateway.SubscriptionConfigQueue.stop(SubscriptionConfigQueue.java:106)
	at org.jenkinsci.plugins.ssegateway.Endpoint$SSEListenChannelFilter.destroy(Endpoint.java:253)
	at hudson.util.PluginServletFilter.cleanUp(PluginServletFilter.java:185)
	at jenkins.model.Jenkins._cleanUpPluginServletFilters(Jenkins.java:3908)
	at jenkins.model.Jenkins.cleanUp(Jenkins.java:3605)
	at jenkins.model.Jenkins$22.run(Jenkins.java:4659)
2023-01-24 02:17:56.092+0000 [id=158]	INFO	hudson.lifecycle.Lifecycle#onStatusUpdate: Jenkins stopped
2023-01-24 02:17:56.093+0000 [id=26]	INFO	winstone.Logger#logInternal: JVM is terminating. Shutting down Jetty

I’m running the LTS 2.375.2 core version (the latest as of this post) - but I also saw this in some older core versions. Looking through the source code, the exception seems okay to ignore. But to be sure, what is causing this exception? Is there a way to fix it?

Sse gateway like most of blue ocean and it’s related parts have been pretty much abandoned.

The missing class seems odd but probably fine. Sse gateway is mostly for pushing events to blueocean.

I would recommend opening a bug for see but see point one

Got it thank you @halkeye. How can I open a bug?

there should be a link on the sidebar of every plugin on the plugin site

in this case it looks like https://plugins.jenkins.io/sse-gateway/ has a jira link

1 Like