You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by "sky-dawn (via GitHub)" <gi...@apache.org> on 2023/04/27 15:48:27 UTC
[GitHub] [skywalking] sky-dawn opened a new issue, #10741: [Bug]
sky-dawn opened a new issue, #10741:
URL: https://github.com/apache/skywalking/issues/10741
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/skywalking/issues?q=is%3Aissue) and found no similar issues.
### Apache SkyWalking Component
Java Agent (apache/skywalking-java)
### What happened
ERROR 2023-04-27 03:00:27.566 http-nio-8085-exec-2 InstMethodsInter : class[class com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement] before method[setObject] intercept failure
java.lang.ClassCastException: com.microsoft.sqlserver.jdbc.Parameter cannot be cast to java.lang.Integer
at org.apache.skywalking.apm.plugin.jdbc.JDBCPreparedStatementSetterInterceptor.beforeMethod(JDBCPreparedStatementSetterInterceptor.java:34)
at org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstMethodsInter.intercept(InstMethodsInter.java:76)
at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.setObject(SQLServerPreparedStatement.java)
at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.setNull$original$zlYk2Jdr(SQLServerPreparedStatement.java:888)
at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.setNull$original$zlYk2Jdr$accessor$SGUKmmTt(SQLServerPreparedStatement.java)
at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement$auxiliary$pyn6dt6J.call(Unknown Source)
at org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstMethodsInter.intercept(InstMethodsInter.java:86)
at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.setNull(SQLServerPreparedStatement.java)
at com.alibaba.druid.pool.DruidPooledPreparedStatement.setNull(DruidPooledPreparedStatement.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.ibatis.logging.jdbc.PreparedStatementLogger.invoke(PreparedStatementLogger.java:67)
### What you expected to happen
hope agent to run normally
### How to reproduce
just insert data to sqlserver
### Anything else
I have found the problem and solved it
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on issue #10741: [Bug] SQLServer write data intercept failure
Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng commented on issue #10741:
URL: https://github.com/apache/skywalking/issues/10741#issuecomment-1544969793
Fixed by https://github.com/apache/skywalking-java/pull/524. Pending on next release.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on issue #10741: [Bug]
Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng commented on issue #10741:
URL: https://github.com/apache/skywalking/issues/10741#issuecomment-1525946111
Could you update the title for your issue?
I can assign this to you as you said, you have known the issue and fixed locally.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng closed issue #10741: [Bug] SQLServer write data intercept failure
Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng closed issue #10741: [Bug] SQLServer write data intercept failure
URL: https://github.com/apache/skywalking/issues/10741
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] mattwmj commented on issue #10741: [Bug] SQLServer write data intercept failure
Posted by "mattwmj (via GitHub)" <gi...@apache.org>.
mattwmj commented on issue #10741:
URL: https://github.com/apache/skywalking/issues/10741#issuecomment-1544967627
We are facing the same issue and looking forward @sky-dawn 's fixing. Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org