Home > database >  I keep getting this error messages when try to use javadb
I keep getting this error messages when try to use javadb

Time:03-20

i keep getting this error when i click to start. how to solve it?

Sat Mar 19 17:09:43 BRT 2022 : Security manager installed using the Basic server security policy.

WARNING: A terminally deprecated method in java.lang.System has been called

WARNING: System::setSecurityManager has been called by org.apache.derby.drda.NetworkServerControl (file:/C:/Program Files/Java/jdk1.8.0_321/db-derby-10.14.2.0-bin/lib/derbynet.jar)

WARNING: Please consider reporting this to the maintainers of org.apache.derby.drda.NetworkServerControl

WARNING: System::setSecurityManager will be removed in a future release

Sat Mar 19 17:09:43 BRT 2022 : Apache Derby Servidor de Rede - 10.14.2.0 - (1828579) iniciado e pronto para aceitar conexões na porta 1527 em {3}

CodePudding user response:

For now, you can ignore it.

But for the future, you should look to get an updated version of JavaDB/Derby that is explicitly compatible with the newer Java versions.

SecurityManager is deprecated since Java 17 and will be removed in one of the next versions. Obviously, this will affect also all methods that deal with instances of that class, like System.setSecurityManager().

CodePudding user response:

The method System.setSecurityManager was deprecated in Java 17, as noted in its Javadoc.

Deprecated, for removal: This API element is subject to removal in a future version.

This method is only useful in conjunction with the Security Manager, which is deprecated and subject to removal in a future release. Consequently, this method is also deprecated and subject to removal. There is no replacement for the Security Manager or this method.

I suggest you try the latest version of Derby to see if the problem is still there. Currently that would be 10.15.2.0 versus your 10.14.2.0. If still there, file an issue if not already filed.

  • Related