groovy / docker-groovy

Docker images with Groovy
https://hub.docker.com/_/groovy/
Apache License 2.0
42 stars 14 forks source link

A terminally deprecated method in java.lang.System has been called #99

Closed jblsk closed 1 year ago

jblsk commented 1 year ago

When running my pod with the image groovy:alpine@sha256:eeac98c138b0ac95ca120bb41e0c9cf44f15f85748d9e01a7a9a5c2f5898a57f to run my scripts, since some time ago it reports this warning and terminates repeatedly:

- groovy -- terminated (0)
-----Logs-------------
WARNING: Using incubator modules: jdk.incubator.foreign, jdk.incubator.vector
Nov 07, 2023 4:48:15 PM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.codehaus.groovy.vmplugin.v8.IndyInterface$$InjectedInvoker/0x00007f8f850b9800 (file:/opt/groovy/lib/groovy-4.0.15.jar)
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v8.IndyInterface$$InjectedInvoker/0x00007f8f850b9800
WARNING: System::setSecurityManager will be removed in a future release
Groovy Shell (4.0.15, JVM: 17.0.9)
Type ':help' or ':h' for help.
-------------------------------------------------------------------------------
groovy:000> 

Can you please update the mentioned plugin in your images to get rid of this problem?

kubectl run groovy --image groovy:alpine@sha256:eeac98c138b0ac95ca120bb41e0c9cf44f15f85748d9e01a7a9a5c2f5898a57f -- sleep 3600
pod/groovy created
% kubectl exec groovy -it -- sh                                                                                                 
~ $ stat /opt/groovy/lib/groovy-4.0.15.jar
  File: /opt/groovy/lib/groovy-4.0.15.jar
  Size: 7591750     Blocks: 14832      IO Block: 4096   regular file
Device: 20002fh/2097199d    Inode: 6214540     Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2023-10-31 01:33:10.000000000 +0000
Modify: 2023-10-31 01:33:10.000000000 +0000
Change: 2023-11-07 17:15:18.103815848 +0000
jblsk commented 1 year ago

It looks like there's no updated version of the package :(

keeganwitt commented 1 year ago

I think the termination is unrelated. That is just a warning. JEP 411 deprecated SecurityManager in Java 17, for future removal.

jblsk commented 1 year ago

Unrelated.