You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/09/22 09:38:37 UTC

[GitHub] [shardingsphere] judykula opened a new issue, #21137: java.lang.ClassCastException: org.apache.shardingsphere.infra.context.ConnectionContext cannot be cast to org.apache.shardingsphere.infra.binder.QueryContext

judykula opened a new issue, #21137:
URL: https://github.com/apache/shardingsphere/issues/21137

   ## Bug Report
   
   **For English only**, other languages will not accept.
   
   [ERROR] 2022-09-22 17:30:49.224 [ShardingSphere-Command-1] o.a.s.a.c.p.i.InstanceMethodAroundInterceptor - Failed to execute the pre-method of method[route] in class[class org.apache.shardingsphere.infra.route.engine.SQLRouteEngine]
   java.lang.ClassCastException: org.apache.shardingsphere.infra.context.ConnectionContext cannot be cast to org.apache.shardingsphere.infra.binder.QueryContext
   	at org.apache.shardingsphere.agent.metrics.api.advice.SQLRouteEngineAdvice.beforeMethod(SQLRouteEngineAdvice.java:55)
   	at org.apache.shardingsphere.agent.core.plugin.interceptor.InstanceMethodAroundInterceptor.intercept(InstanceMethodAroundInterceptor.java:63)
   	at org.apache.shardingsphere.infra.route.engine.SQLRouteEngine.route(SQLRouteEngine.java)
   	at org.apache.shardingsphere.infra.context.kernel.KernelProcessor.route(KernelProcessor.java:59)
   	at org.apache.shardingsphere.infra.context.kernel.KernelProcessor.generateExecutionContext(KernelProcessor.java:51)
   	at org.apache.shardingsphere.proxy.backend.communication.jdbc.JDBCDatabaseCommunicationEngine.execute(JDBCDatabaseCommunicationEngine.java:126)
   	at org.apache.shardingsphere.proxy.backend.handler.data.impl.UnicastDatabaseBackendHandler.execute(UnicastDatabaseBackendHandler.java:76)
   	at org.apache.shardingsphere.proxy.frontend.mysql.command.query.text.query.MySQLComQueryPacketExecutor.execute(MySQLComQueryPacketExecutor.java:94)
   	at org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask.executeCommand(CommandExecutorTask.java:110)
   	at org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask.run$original$DVM9twSv(CommandExecutorTask.java:77)
   	at org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask.run$original$DVM9twSv$accessor$BuBKBPGk(CommandExecutorTask.java)
   	at org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask$auxiliary$plsl7Ryl.call(Unknown Source)
   	at org.apache.shardingsphere.agent.core.plugin.interceptor.InstanceMethodAroundInterceptor.intercept(InstanceMethodAroundInterceptor.java:74)
   	at org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask.run(CommandExecutorTask.java)
   	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
   	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   	at java.lang.Thread.run(Thread.java:748)
   
   ### Which version of ShardingSphere did you use?
   5.2.0
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   
   ### Expected behavior
   
   ### Actual behavior
   
   ### Reason analyze (If you can)
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
   
   ### Example codes for reproduce this issue (such as a github link).
   


-- 
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@shardingsphere.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] judykula commented on issue #21137: java.lang.ClassCastException: org.apache.shardingsphere.infra.context.ConnectionContext cannot be cast to org.apache.shardingsphere.infra.binder.QueryContext

Posted by GitBox <gi...@apache.org>.
judykula commented on issue #21137:
URL: https://github.com/apache/shardingsphere/issues/21137#issuecomment-1257370756

   Can't you reproduce the problem? I tried both tag 5.2.0 and 5.2.1 of the master branch


-- 
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@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] TeslaCN commented on issue #21137: java.lang.ClassCastException: org.apache.shardingsphere.infra.context.ConnectionContext cannot be cast to org.apache.shardingsphere.infra.binder.QueryContext

Posted by GitBox <gi...@apache.org>.
TeslaCN commented on issue #21137:
URL: https://github.com/apache/shardingsphere/issues/21137#issuecomment-1256837168

   It seems that the code in agent was outdated.


-- 
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@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] judykula closed issue #21137: java.lang.ClassCastException: org.apache.shardingsphere.infra.context.ConnectionContext cannot be cast to org.apache.shardingsphere.infra.binder.QueryContext

Posted by GitBox <gi...@apache.org>.
judykula closed issue #21137: java.lang.ClassCastException: org.apache.shardingsphere.infra.context.ConnectionContext cannot be cast to org.apache.shardingsphere.infra.binder.QueryContext
URL: https://github.com/apache/shardingsphere/issues/21137


-- 
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@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] TeslaCN commented on issue #21137: java.lang.ClassCastException: org.apache.shardingsphere.infra.context.ConnectionContext cannot be cast to org.apache.shardingsphere.infra.binder.QueryContext

Posted by GitBox <gi...@apache.org>.
TeslaCN commented on issue #21137:
URL: https://github.com/apache/shardingsphere/issues/21137#issuecomment-1259561230

   Hi @judykula 
   Why closed this? Have you solved your problem?


-- 
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@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org