SQLNonTransientConnectionException: No current connection, in my application while interacting with Derby database

后端 未结 1 1091
無奈伤痛
無奈伤痛 2020-12-10 17:07

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.

1条回答
  •  执念已碎
    2020-12-10 17:15

    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.

    0 讨论(0)
提交回复
热议问题