Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

liteflow-rule-sql遇上spring-jdbc+druid时 #66

Open
360631935 opened this issue Aug 29, 2023 · 1 comment
Open

liteflow-rule-sql遇上spring-jdbc+druid时 #66

360631935 opened this issue Aug 29, 2023 · 1 comment

Comments

@360631935
Copy link

错误的资源释放顺序导致,项目抛出java.sql.SQLException: 关闭的语句问题(是发生在调用缓存的SQL时,如项目启动加载了一次规则,调用reloadRule方法,重新加载规则,就会抛异常,导致无法刷新)。排查后发现spring-jdbc释放资源的顺序为 rs pstmt conn。而liteflow的释放顺序为conn pstmt rs。

@360631935
Copy link
Author

应该要按先打开的后关闭,不然conn先被关闭了,Statement 和Rs 不能用了,但不一定释放了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant