Archive for the ‘MySQL’ Category

(LoadContexts.java:cleanup:108) fail-safe cleanup (collections) : org.hibernate.engine.loading.CollectionLoadContext@515f9553

I got this exception while working with sturts2.2.3.1, spring 2.3 and JPA 1.0.
I didn’t find anything wrong in my code, in other words i am not able to find what i am missing.
Everything is working fine but on the last id (=1259) i am getting this exception.

[ WARN] ["http-bio-8080"-exec-6 06:00:46] (LoadContexts.java:cleanup:108) fail-safe cleanup (collections) : org.hibernate.engine.loading.CollectionLoadContext@515f9553<rs=com.mysql.jdbc.ResultSet@266c4c10>

MySQL Backup and Restore

To take the backup of your mysql database, use the following command

mysqldump –-user=[username] –-password=[pass] [database-name] > [dump file]
e.g.
 shell>mysqldump –-user=root –-password=root employee > employee.sql

or

mysqldump –user=[username] –password=[pass] [database-name] > [dump file]
e.g.
 shell>mysqldump –user=root –password=root employee > employee.sql

where, [username] is your database user name
[pass] is your database password
[database-name] is the database which you want to take backup
[dump file] in this file the backup will be automatically written.

To restore your database, use the following command

 mysql –-user=[username] –-password=[pass] [database-name] < [dump file]
 e.g.
 shell>mysql –-user=root –-password=root employee < employee.sql