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 2021/06/22 03:08:02 UTC

[GitHub] [shardingsphere] viqbgrg opened a new issue #10900: mysql json 5.0.0-beta fail to boot

viqbgrg opened a new issue #10900:
URL: https://github.com/apache/shardingsphere/issues/10900


   ### Which version of ShardingSphere did you use?
   implementation 'org.apache.shardingsphere:shardingsphere-jdbc-core-spring-boot-starter:5.0.0-beta'
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   ShardingSphere-JDBC
   ### Expected behavior
   Start the project
   ### Actual behavior
   Unable to start
   ### Reason analyze (If you can)
   A MySQL table with a JSON field will fail to boot
   
   Caused by: java.util.concurrent.ExecutionException: java.lang.NullPointerException
   	at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[na:na]
   	at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191) ~[na:na]
   	at org.apache.shardingsphere.infra.metadata.schema.builder.SchemaBuilder.appendDialectRemainTables(SchemaBuilder.java:120) ~[shardingsphere-infra-common-5.0.0-beta.jar:5.0.0-beta]
   	... 100 common frames omitted
   Caused by: java.lang.NullPointerException: null
   	at org.apache.shardingsphere.infra.metadata.schema.builder.loader.dialect.MySQLTableMetaDataLoader.loadColumnMetaData(MySQLTableMetaDataLoader.java:95) ~[shardingsphere-infra-common-5.0.0-beta.jar:5.0.0-beta]
   	at org.apache.shardingsphere.infra.metadata.schema.builder.loader.dialect.MySQLTableMetaDataLoader.loadColumnMetaDataMap(MySQLTableMetaDataLoader.java:77) ~[shardingsphere-infra-common-5.0.0-beta.jar:5.0.0-beta]
   	at org.apache.shardingsphere.infra.metadata.schema.builder.loader.dialect.MySQLTableMetaDataLoader.loadTableMetaDataMap(MySQLTableMetaDataLoader.java:59) ~[shardingsphere-infra-common-5.0.0-beta.jar:5.0.0-beta]
   	at org.apache.shardingsphere.infra.metadata.schema.builder.loader.dialect.MySQLTableMetaDataLoader.load(MySQLTableMetaDataLoader.java:54) ~[shardingsphere-infra-common-5.0.0-beta.jar:5.0.0-beta]
   	at org.apache.shardingsphere.infra.metadata.schema.builder.SchemaBuilder.lambda$appendDialectRemainTables$1(SchemaBuilder.java:116) ~[shardingsphere-infra-common-5.0.0-beta.jar:5.0.0-beta]
   	at java.base/java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:264) ~[na:na]
   	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java) ~[na:na]
   	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na]
   	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na]
   	at java.base/java.lang.Thread.run(Thread.java:829) ~[na:na]
   


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

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



[GitHub] [shardingsphere] tuichenchuxin commented on issue #10900: mysql json 5.0.0-beta fail to boot

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


   @viqbgrg 
   This problem is indeed reproduced with your demo.
   This is due to mysql databaseMetaData.getTypeInfo()
   JSON type cannot be obtained, resulting in subsequent nullPointerException.
   
   append  this will be ok.
   ![image](https://user-images.githubusercontent.com/86938616/125435773-cfa3b889-2407-4ed4-96b2-5bac434fd0de.png)
   I want a more elegant way to solve this 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



[GitHub] [shardingsphere] RaigorJiang commented on issue #10900: mysql json 5.0.0-beta fail to boot

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


   Fixed in master.


-- 
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] RaigorJiang closed issue #10900: mysql json 5.0.0-beta fail to boot

Posted by GitBox <gi...@apache.org>.
RaigorJiang closed issue #10900:
URL: https://github.com/apache/shardingsphere/issues/10900


   


-- 
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] strongduanmu commented on issue #10900: mysql json 5.0.0-beta fail to boot

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


   @viqbgrg Thank you very much for using the `5.0.0-beta` version and reporting the problem. I will investigate this issue later.


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

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