shardingsphere icon indicating copy to clipboard operation
shardingsphere copied to clipboard

Execute the query statement,sharding-proxy An exception occurred in the background ,java.lang.NullPointerException: null

Open haj8888888 opened this issue 7 years ago • 2 comments

Which version of ShardingSphere did you use? sharding-proxy-4.0.0-RC1

Which project did you use? Sharding-JDBC or Sharding-Proxy? sharding-proxy-4.0.0-RC1

Exception description:java.lang.NullPointerException: null at org.apache.shardingsphere.core.parse.antlr.extractor.impl.dml.select.item.FunctionSelectItemSegmentExtractor.extractFunctionSelectItemSegment(FunctionSelectItemSegmentExtractor.java:50) at org.apache.shardingsphere.core.parse.antlr.extractor.impl.dml.select.item.FunctionSelectItemSegmentExtractor.extract(FunctionSelectItemSegmentExtractor.java:46) at org.apache.shardingsphere.core.parse.antlr.extractor.impl.dml.select.item.SelectItemExtractor.extract(SelectItemExtractor.java:54) at org.apache.shardingsphere.core.parse.antlr.extractor.impl.dml.select.SelectClauseExtractor.setSelectItemSegment(SelectClauseExtractor.java:61) at org.apache.shardingsphere.core.parse.antlr.extractor.impl.dml.select.SelectClauseExtractor.extract(SelectClauseExtractor.java:48) at org.apache.shardingsphere.core.parse.antlr.extractor.SQLSegmentsExtractorEngine.extract(SQLSegmentsExtractorEngine.java:47) at org.apache.shardingsphere.core.parse.antlr.AntlrParsingEngine.parse(AntlrParsingEngine.java:71) at org.apache.shardingsphere.core.parse.SQLParsingEngine.parse(SQLParsingEngine.java:61) at org.apache.shardingsphere.core.route.router.sharding.ParsingSQLRouter.parse(ParsingSQLRouter.java:78) at org.apache.shardingsphere.core.route.StatementRoutingEngine.route(StatementRoutingEngine.java:56) at org.apache.shardingsphere.core.SimpleQueryShardingEngine.route(SimpleQueryShardingEngine.java:60) at org.apache.shardingsphere.core.BaseShardingEngine.shard(BaseShardingEngine.java:64) at org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.wrapper.StatementExecutorWrapper.doShardingRoute(StatementExecutorWrapper.java:86) at org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.wrapper.StatementExecutorWrapper.route(StatementExecutorWrapper.java:57) at org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.JDBCDatabaseCommunicationEngine.execute(JDBCDatabaseCommunicationEngine.java:79) at org.apache.shardingsphere.shardingproxy.backend.text.query.QueryBackendHandler.execute(QueryBackendHandler.java:54) at org.apache.shardingsphere.shardingproxy.frontend.mysql.command.query.text.query.MySQLComQueryPacketExecutor.execute(MySQLComQueryPacketExecutor.java:71) at org.apache.shardingsphere.shardingproxy.frontend.command.CommandExecutorTask.executeCommand(CommandExecutorTask.java:86) at org.apache.shardingsphere.shardingproxy.frontend.command.CommandExecutorTask.run(CommandExecutorTask.java:66) 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:745) Execute SQL: select * from t_order t join t_order_item ti on t.order_id = ti.order_id;

haj8888888 avatar May 16 '19 07:05 haj8888888

@haj8888888 Use the default configuration, the result is normal regardless of whether there is data, there is no abnormal log in the background, how to reproduce this issue?

empty resultset log image image

has one resultset log image image

codefairy08 avatar May 22 '19 06:05 codefairy08

No response anymore, close now.

terrymanu avatar Jun 17 '19 04:06 terrymanu