JavaDB/Derby Error 08006

本秂侑毒 提交于 2019-12-10 19:27:51

问题


In the article Using Java DB in Desktop Applications the Address Book demo have a method disconnect which have a try-catch block that catch and ignores the exception. If you add a printStackTrace you can see that the exception always occur.

What's wrong here? The JavaDB should not throw this exception, or they should fix something in the example program?


回答1:


Shutdown commands always raise SQLExceptions. So nothing's wrong. That's just the way Derby works.



来源:https://stackoverflow.com/questions/2723622/javadb-derby-error-08006

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!