Thanks for reply kukudas, but it didn't help, since I already configured Log4j output :
Most of the time, I get Hibernate debug messages and errors in output (screen, file, ..), that's errors like ".. cannot be null", "Two objects with the same identifier ..", .. But this time, I get nothing.
Here is additional information from the still running JVM, and so, HSQLDB connection.
The last lines of the database "database.log file" :
--
Code:
ALTER SEQUENCE HIBERNATE_SEQUENCE RESTART WITH 95
ALTER SEQUENCE HIBERNATE_SEQUENCE RESTART WITH 96
ALTER SEQUENCE HIBERNATE_SEQUENCE RESTART WITH 97
ALTER SEQUENCE HIBERNATE_SEQUENCE RESTART WITH 98
ALTER SEQUENCE HIBERNATE_SEQUENCE RESTART WITH 99
ALTER SEQUENCE HIBERNATE_SEQUENCE RESTART WITH 100
ALTER SEQUENCE HIBERNATE_SEQUENCE RESTART WITH 101
ALTER SEQUENCE HIBERNATE_SEQUENCE RESTART WITH 102
/*C2*/CONNECT USER SA
SET AUTOCOMMIT FALSE
DELETE FROM HIBERNATE_UNIQUE_KEY WHERE NEXT_HI=0
INSERT INTO HIBERNATE_UNIQUE_KEY VALUES(1)
COMMIT
/*C1*/ALTER SEQUENCE HIBERNATE_SEQUENCE RESTART WITH 103
/*C3*/CONNECT USER SA
SET AUTOCOMMIT FALSE
DELETE FROM HIBERNATE_UNIQUE_KEY WHERE NEXT_HI=1
INSERT INTO HIBERNATE_UNIQUE_KEY VALUES(2)
COMMIT
/*C1*/ALTER SEQUENCE HIBERNATE_SEQUENCE RESTART WITH 104
ALTER SEQUENCE HIBERNATE_SEQUENCE RESTART WITH 105
ALTER SEQUENCE HIBERNATE_SEQUENCE RESTART WITH 106
ALTER SEQUENCE HIBERNATE_SEQUENCE RESTART WITH 107
--
The last lines of the database "database.script" file (I believe this file is only written when invoking the shutdown command, that I issue when unloading the Java application) :
--
Code:
INSERT INTO SUBGROUP VALUES(17,8,NULL,18)
INSERT INTO SUBGROUP VALUES(19,9,NULL,20)
INSERT INTO SUBGROUP VALUES(35,1,36,37)
INSERT INTO SUBGROUP VALUES(38,2,39,40)
INSERT INTO SUBGROUP VALUES(41,3,42,43)
INSERT INTO SUBGROUP VALUES(44,4,45,46)
INSERT INTO SUBGROUP VALUES(47,5,48,49)
INSERT INTO SUBGROUP VALUES(50,6,51,52)
INSERT INTO SUBGROUP VALUES(53,7,54,55)
INSERT INTO SUBGROUP VALUES(56,8,57,58)
INSERT INTO SUBGROUP VALUES(59,9,60,61)
INSERT INTO SUBGROUPLIST VALUES(1,3,0)
INSERT INTO SUBGROUPLIST VALUES(1,5,1)
INSERT INTO SUBGROUPLIST VALUES(1,7,2)
INSERT INTO SUBGROUPLIST VALUES(1,9,3)
INSERT INTO SUBGROUPLIST VALUES(1,11,4)
INSERT INTO SUBGROUPLIST VALUES(1,13,5)
INSERT INTO SUBGROUPLIST VALUES(1,15,6)
INSERT INTO SUBGROUPLIST VALUES(1,17,7)
INSERT INTO SUBGROUPLIST VALUES(1,19,8)
INSERT INTO SUBGROUPLIST VALUES(33,35,0)
INSERT INTO SUBGROUPLIST VALUES(33,38,1)
INSERT INTO SUBGROUPLIST VALUES(33,41,2)
INSERT INTO SUBGROUPLIST VALUES(33,44,3)
INSERT INTO SUBGROUPLIST VALUES(33,47,4)
INSERT INTO SUBGROUPLIST VALUES(33,50,5)
INSERT INTO SUBGROUPLIST VALUES(33,53,6)
INSERT INTO SUBGROUPLIST VALUES(33,56,7)
INSERT INTO SUBGROUPLIST VALUES(33,59,8)
INSERT INTO TEMPLATE VALUES(1,'grouptemplatable',1)
INSERT INTO DUAL_HIBERNATE_SEQUENCE VALUES(0)
INSERT INTO HIBERNATE_UNIQUE_KEY VALUES(0)
--
When all goes well, as described in the original post, I get the following HSQLDB results :
--
Code:
INSERT INTO HIBERNATE_UNIQUE_KEY VALUES(3)
COMMIT
/*C1*/ALTER SEQUENCE HIBERNATE_SEQUENCE RESTART WITH 116
/*C3*/CONNECT USER SA
SET AUTOCOMMIT FALSE
DELETE FROM HIBERNATE_UNIQUE_KEY WHERE NEXT_HI=3
INSERT INTO HIBERNATE_UNIQUE_KEY VALUES(4)
COMMIT
/*C1*/ALTER SEQUENCE HIBERNATE_SEQUENCE RESTART WITH 117
ALTER SEQUENCE HIBERNATE_SEQUENCE RESTART WITH 118
ALTER SEQUENCE HIBERNATE_SEQUENCE RESTART WITH 119
ALTER SEQUENCE HIBERNATE_SEQUENCE RESTART WITH 120
INSERT INTO PACKET VALUES(108,109,113,118,'customer')
INSERT INTO INFORMATION VALUES(119)
INSERT INTO SHARE VALUES(107,108,47,119)
COMMIT
--
--
Code:
INSERT INTO SUBGROUP VALUES(17,8,NULL,18)
INSERT INTO SUBGROUP VALUES(19,9,NULL,20)
INSERT INTO SUBGROUP VALUES(35,1,36,37)
INSERT INTO SUBGROUP VALUES(38,2,39,40)
INSERT INTO SUBGROUP VALUES(41,3,42,43)
INSERT INTO SUBGROUP VALUES(44,4,45,46)
INSERT INTO SUBGROUP VALUES(47,5,48,49)
INSERT INTO SUBGROUP VALUES(50,6,51,52)
INSERT INTO SUBGROUP VALUES(53,7,54,55)
INSERT INTO SUBGROUP VALUES(56,8,57,58)
INSERT INTO SUBGROUP VALUES(59,9,60,61)
INSERT INTO SUBGROUPLIST VALUES(1,3,0)
INSERT INTO SUBGROUPLIST VALUES(1,5,1)
INSERT INTO SUBGROUPLIST VALUES(1,7,2)
INSERT INTO SUBGROUPLIST VALUES(1,9,3)
INSERT INTO SUBGROUPLIST VALUES(1,11,4)
INSERT INTO SUBGROUPLIST VALUES(1,13,5)
INSERT INTO SUBGROUPLIST VALUES(1,15,6)
INSERT INTO SUBGROUPLIST VALUES(1,17,7)
INSERT INTO SUBGROUPLIST VALUES(1,19,8)
INSERT INTO SUBGROUPLIST VALUES(33,35,0)
INSERT INTO SUBGROUPLIST VALUES(33,38,1)
INSERT INTO SUBGROUPLIST VALUES(33,41,2)
INSERT INTO SUBGROUPLIST VALUES(33,44,3)
INSERT INTO SUBGROUPLIST VALUES(33,47,4)
INSERT INTO SUBGROUPLIST VALUES(33,50,5)
INSERT INTO SUBGROUPLIST VALUES(33,53,6)
INSERT INTO SUBGROUPLIST VALUES(33,56,7)
INSERT INTO SUBGROUPLIST VALUES(33,59,8)
INSERT INTO TEMPLATE VALUES(1,'grouptemplatable',1)
INSERT INTO DUAL_HIBERNATE_SEQUENCE VALUES(0)
INSERT INTO HIBERNATE_UNIQUE_KEY VALUES(2)
--