Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@chadlwilson
Copy link
Contributor

Executable wars don't set the classloader, because they do not initialize the scripting engine.

Currently you get the below during shutdown

ERROR: java.lang.NullPointerException: Cannot invoke "Object.getClass()" because "self" is null
java.lang.NullPointerException: Cannot invoke "Object.getClass()" because "self" is null
	at JarMain.invokeMethod(JarMain.java:268)
	at JarMain.invokeMethod(JarMain.java:263)
	at JarMain.run(JarMain.java:225)
	at WarMain.run(WarMain.java:367)
	at java.base/java.lang.Thread.run(Thread.java:1583)

Executable wars don't set the classloader, because they do not initialize the scripting engine.
@chadlwilson chadlwilson added this to the 2.1.1 milestone Oct 26, 2025
@chadlwilson chadlwilson merged commit 5ecf4c2 into jruby:master Oct 26, 2025
10 checks passed
@chadlwilson chadlwilson deleted the fix-cleanup-for-war branch October 26, 2025 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant