Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GroovyServ not working on JDK 21 and Groovy 4 #90

Open
lprimak opened this issue Oct 29, 2023 · 0 comments
Open

GroovyServ not working on JDK 21 and Groovy 4 #90

lprimak opened this issue Oct 29, 2023 · 0 comments

Comments

@lprimak
Copy link

lprimak commented Oct 29, 2023

Hi,

Any chance to update groovyserv/client to modern Java / Groovy please?
Currently, groovyserv fails to start up:

% groovyclient my 
Java home directory: /Users/lprimak/.sdkman/candidates/java/current
Groovy home directory: /Users/lprimak/.sdkman/candidates/groovy/current
Groovy command path: /Users/lprimak/.sdkman/candidates/groovy/current/bin/groovy (found at GROOVY_HOME)
GroovyServ home directory: /Users/lprimak/.sdkman/candidates/groovyserv/1.2.0
GroovyServ work directory: /Users/lprimak/.groovy/groovyserv
Original classpath: (none)
GroovyServ default classpath: /Users/lprimak/.sdkman/candidates/groovyserv/1.2.0/lib/*
Starting server........................................................................................................
ERROR: timed out while waiting for server startup

Log file:

2023/10/29 01:58:11,467 [ERROR] (java.lang.ThreadGroup[name=main,maxpri=10]) (GroovyServer:61) Unexpected error: GroovyServer
java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
        at java.base/java.lang.System.setSecurityManager(System.java:429)
        at groovyx.groovyserv.GroovyServer.setupSecurityManager(GroovyServer.groovy:85)
        at groovyx.groovyserv.GroovyServer.start(GroovyServer.groovy:48)
        at groovyx.groovyserv.GroovyServer.main(GroovyServer.groovy:154)
        at script_from_command_line.run(script_from_command_line:1)
        at groovy.lang.GroovyShell.runScriptOrMainOrTestOrRunnable(GroovyShell.java:287)
        at groovy.lang.GroovyShell.run(GroovyShell.java:393)
        at groovy.lang.GroovyShell.run(GroovyShell.java:382)
        at groovy.ui.GroovyMain.processOnce(GroovyMain.java:649)
        at groovy.ui.GroovyMain.run(GroovyMain.java:389)
        at groovy.ui.GroovyMain.access$1400(GroovyMain.java:67)
        at groovy.ui.GroovyMain$GroovyCommand.process(GroovyMain.java:313)
        at groovy.ui.GroovyMain.processArgs(GroovyMain.java:141)
        at groovy.ui.GroovyMain.main(GroovyMain.java:114)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
        (sanitized)

Thank you.

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

No branches or pull requests

1 participant