I implemented derby data base in my application to save my data,and I am getting this exception in retrieval of result set form select query in Derby database.
select
Found this via Google.
I had the same problem and found my answer in this sample application: http://db.apache.org/derby/docs/10.4/devguide/rdevcsecure26537.html
// force garbage collection to unload the EmbeddedDriver // so Derby can be restarted System.gc();
Works perfectly now.