java.lang.ClassCastException: com.alibaba.druid.sql.ast.expr.SQLPropertyExpr cannot be cast to com.alibaba.druid.sql.dialect.mysql.ast.expr.MySqlSelectGroupByExpr

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by dahai2016
, 1 year ago
com.alibaba.druid.sql.ast.expr.SQLPropertyExpr cannot be cast to com.alibaba.druid.sql.dialect.mysql.ast.expr.MySqlSelectGroupByExpr
java.lang.ClassCastException: com.alibaba.druid.sql.ast.expr.SQLPropertyExpr cannot be cast to com.alibaba.druid.sql.dialect.mysql.ast.expr.MySqlSelectGroupByExpr
at org.opencloudb.parser.druid.impl.DruidSelectParser.buildGroupByCols(DruidSelectParser.java:559)
at org.opencloudb.parser.druid.impl.DruidSelectParser.parseAggGroupCommon(DruidSelectParser.java:178)
at org.opencloudb.parser.druid.impl.DruidSelectSqlServerParser.parseOrderAggGroupSqlServer(DruidSelectSqlServerParser.java:81)
at org.opencloudb.parser.druid.impl.DruidSelectSqlServerParser.sqlserverParse(DruidSelectSqlServerParser.java:72)
at org.opencloudb.parser.druid.impl.DruidSelectSqlServerParser.statementParse(DruidSelectSqlServerParser.java:39)
at org.opencloudb.parser.druid.impl.DefaultDruidParser.parser(DefaultDruidParser.java:63)
at org.opencloudb.route.impl.DruidMycatRouteStrategy.routeNormalSqlWithAST(DruidMycatRouteStrategy.java:64)
at org.opencloudb.route.impl.AbstractRouteStrategy.route(AbstractRouteStrategy.java:76)
at org.opencloudb.route.RouteService.route(RouteService.java:133)
at org.opencloudb.server.ServerConnection.routeEndExecuteSQL(ServerConnection.java:227)
at org.opencloudb.server.ServerConnection.execute(ServerConnection.java:175)
at org.opencloudb.server.handler.SelectHandler.handle(SelectHandler.java:106)
at org.opencloudb.server.ServerQueryHandler.query(ServerQueryHandler.java:77)
at org.opencloudb.net.FrontendConnection.query(FrontendConnection.java:308)
at org.opencloudb.net.handler.FrontendCommandHandler.handle(FrontendCommandHandler.java:71)
at org.opencloudb.net.FrontendConnection.rawHandle(FrontendConnection.java:435)
at org.opencloudb.net.FrontendConnection.handle(FrontendConnection.java:417)
at org.opencloudb.net.AbstractConnection.onReadData(AbstractConnection.java:313)
at org.opencloudb.net.NIOSocketWR.asynRead(NIOSocketWR.java:186)
at org.opencloudb.net.AbstractConnection.asynRead(AbstractConnection.java:274)
at org.opencloudb.net.NIOReactor$RW.run(NIOReactor.java:100)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.