not getting proper database shutdown message in embedded mode

2022-11-25 Thread Orange Trees
Hello, For some reason for my newly created database in embedded mode after issuing shutdown command getConnection("jdbc:derby:" + + ";shutdown=true") I'm not getting the message 'Database shutdown.' (as it was for my previous projects) but instead I'm getting this message: 08006.D : [0]

Re: Network server with different java (or derby) version between client and server

2022-11-25 Thread Rick Hillegas
This indicates that the server is running with a Java SecurityManager and that the policy file does not grant read permission on that file--and probably all files in the database directory. On 11/25/22 12:30 AM, fed wrote: Hi, testing with 10.15.2.0 from derby.log, server side, it complains

Re: not getting proper database shutdown message in embedded mode

2022-11-25 Thread Rick Hillegas
This indicates that Derby cannot find the localized messages for your environment. Only the English messages are bundled inside derby.jar. What happens when you run the following program: import java.sql.*; import java.util.*; public class Z {     public static void main(String... args)

Re: Network server with different java (or derby) version between client and server

2022-11-25 Thread Rick Hillegas
Check that your 10.15 classpath is correct. You need a couple more jar files compared to previous releases. Your 10.15 server classpath must contain the following jars:   derby.jar   derbyshared.jar   derbytools.jar   derbynet.jar See

Re: not getting proper database shutdown message in embedded mode

2022-11-25 Thread Orange Trees
Hi, thanks for looking into it! I executed your program and the result is: Default locale = en_US 08006.D : [0] memory:db I checked Language Settings for my Linux Mint, and Region was actually not US, so I changed everything to be US, restarted the machine and then re-executed your program

Re: not getting proper database shutdown message in embedded mode

2022-11-25 Thread Orange Trees
Hi, I investigated further. It is something related to my NetBeans IDE. When I run the test program from outside IDE it gives the correct result. But when I do this from IDE the result is as I posted in the previous message. Also, older projects, imported from the previous machine work fine.

Re: Network server with different java (or derby) version between client and server

2022-11-25 Thread fed
Hi, testing with 10.15.2.0 from derby.log, server side, it complains about a read permission on service.properties, some part of the file: java.sql.SQLException: Impossibile avviare il database '/home/user/db/' con il caricatore di classi jdk.internal.loader.ClassLoaders$AppClassLoader@277050dc.