-
Notifications
You must be signed in to change notification settings - Fork 8.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
调用存储过程后LogFilter出现空指针异常,问题原因分析并且找到 #1486
Labels
Milestone
Comments
bug |
请提供一下版本,没有版本不好对代码行号 |
1.0.25 |
行号还是不对,能提供出错的堆栈信息么? |
我想起来了,我是反编译的,我明天上班下载源码在给你 |
这个方法的 parameters.add(jdbcParam.getValue()); |
你也知道问题所在了,提交一个pull request?参与进来一起改进吧 |
wenshao
added a commit
that referenced
this issue
Nov 26, 2016
已经修复,请使用1.0.27版本 https://github.com/alibaba/druid/releases/tag/1.0.27 |
我刚准备改,被你改了,我可以参与其他的需求或者BUG修改吗? |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
存储过程如下:
出现问题的代码如下:
LogFilter类的下面这段代码有问题,请看加粗标记的地方
分析:
实际上入参只有1个,但是parametersSize等于2,原因如下:
PreparedStatementProxyImpl这个类的setParameter这个方法
由于入参是在第二个位置,所以jdbcIndex的值为2,最后parameterSize的值就为2,正常情况如果不是存储过程那么jdbcIndex是没有问题的。目前我在重写了logfilter类,解决,但是真正要解决的是在调用这个类的时候PreparedStatementProxyImpl要考虑存储过程的情况
The text was updated successfully, but these errors were encountered: