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/04/12 04:48:40 UTC

[GitHub] [shardingsphere] strongduanmu opened a new issue, #16757: NullPointerException occurs when connect ShardingSphere-Proxy with mysql

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

   ## Bug Report
   
   ### Which version of ShardingSphere did you use?
   
   https://github.com/apache/shardingsphere/commit/93db6243cb43555921688f51869a0426fbb87a72
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   
   ShardingSphere-Proxy
   
   ### Expected behavior
   
   Connect ShardingSphere-Proxy with mysql successully.
   
   ### Actual behavior
   
   ```
   [INFO ] 2022-04-12 12:45:55.112 [main] o.a.s.p.frontend.ShardingSphereProxy - ShardingSphere-Proxy Cluster mode started successfully
   [INFO ] 2022-04-12 12:46:02.537 [ShardingSphere-Command-0] ShardingSphere-SQL - Logic SQL: select @@version_comment limit 1
   [INFO ] 2022-04-12 12:46:02.537 [ShardingSphere-Command-0] ShardingSphere-SQL - SQLStatement: MySQLSelectStatement(table=Optional.empty, limit=Optional[org.apache.shardingsphere.sql.parser.sql.common.segment.dml.pagination.limit.LimitSegment@7c5ce8d9], lock=Optional.empty, window=Optional.empty)
   [INFO ] 2022-04-12 12:46:02.537 [ShardingSphere-Command-0] ShardingSphere-SQL - Actual SQL: slave_0 ::: select @@version_comment limit 1
   [ERROR] 2022-04-12 12:46:04.219 [ShardingSphere-Command-0] o.a.s.p.f.c.CommandExecutorTask - Exception occur: 
   java.lang.NullPointerException: null
   	at org.apache.shardingsphere.proxy.backend.response.header.query.QueryHeaderBuilderFactory.newInstance(QueryHeaderBuilderFactory.java:44)
   	at org.apache.shardingsphere.proxy.backend.response.header.query.QueryHeaderBuilderEngine.build(QueryHeaderBuilderEngine.java:55)
   	at org.apache.shardingsphere.proxy.backend.text.admin.DatabaseAdminQueryBackendHandler.createResponseHeader(DatabaseAdminQueryBackendHandler.java:71)
   	at org.apache.shardingsphere.proxy.backend.text.admin.DatabaseAdminQueryBackendHandler.execute(DatabaseAdminQueryBackendHandler.java:61)
   	at org.apache.shardingsphere.proxy.frontend.mysql.command.query.text.query.MySQLComQueryPacketExecutor.execute(MySQLComQueryPacketExecutor.java:97)
   	at org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask.executeCommand(CommandExecutorTask.java:107)
   	at org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask.run(CommandExecutorTask.java:77)
   	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
   	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
   	at java.lang.Thread.run(Thread.java:748)
   [INFO ] 2022-04-12 12:46:20.159 [_finished_check_Worker-1] o.a.c.f.imps.CuratorFrameworkImpl - Starting
   [INFO ] 2022-04-12 12:46:20.160 [_finished_check_Worker-1] org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=localhost:2181 sessionTimeout=60000 watcher=org.apache.curator.ConnectionState@746de858
   ```
   
   ### 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] tuichenchuxin closed issue #16757: NullPointerException occurs when connect ShardingSphere-Proxy with mysql

Posted by GitBox <gi...@apache.org>.
tuichenchuxin closed issue #16757: NullPointerException occurs when connect ShardingSphere-Proxy with mysql
URL: https://github.com/apache/shardingsphere/issues/16757


-- 
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