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/26 09:20:50 UTC
[GitHub] [shardingsphere] chenqin091017 opened a new issue #11024: Springboot service can not start when the datatype of column is json
chenqin091017 opened a new issue #11024:
URL: https://github.com/apache/shardingsphere/issues/11024
### Which version of ShardingSphere did you use?
shardingsphere-jdbc-core 5.0.0-beta
### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere-JDBC
### Expected behavior
springboot service can start
### Actual behavior
springboot service can not start
### Reason analyze (If you can)
When service start ,ShardingSphere will load some informations from mysql.
Because the datatype of column is json and dataTypeMap don't have this key,throw NullPointerException.
By the way,why does ShardingSphere load the information of other tables, don't use ShardingSphere ?
```java
Caused by: java.lang.NullPointerException: null
at org.apache.shardingsphere.infra.metadata.schema.builder.loader.dialect.MySQLTableMetaDataLoader.loadColumnMetaData(MySQLTableMetaDataLoader.java:95)
at org.apache.shardingsphere.infra.metadata.schema.builder.loader.dialect.MySQLTableMetaDataLoader.loadColumnMetaDataMap(MySQLTableMetaDataLoader.java:77)
at org.apache.shardingsphere.infra.metadata.schema.builder.loader.dialect.MySQLTableMetaDataLoader.loadTableMetaDataMap(MySQLTableMetaDataLoader.java:59)
at org.apache.shardingsphere.infra.metadata.schema.builder.loader.dialect.MySQLTableMetaDataLoader.load(MySQLTableMetaDataLoader.java:54)
at org.apache.shardingsphere.infra.metadata.schema.builder.SchemaBuilder.lambda$appendDialectRemainTables$1(SchemaBuilder.java:116)
```

### 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
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] chenqin091017 closed issue #11024: Springboot service can not startup when the datatype of column(mysql) is json
Posted by GitBox <gi...@apache.org>.
chenqin091017 closed issue #11024:
URL: https://github.com/apache/shardingsphere/issues/11024
--
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] chenqin091017 commented on issue #11024: Springboot service can not startup when the datatype of column(mysql) is json
Posted by GitBox <gi...@apache.org>.
chenqin091017 commented on issue #11024:
URL: https://github.com/apache/shardingsphere/issues/11024#issuecomment-870159496
> set check-table-metadata-enabled=false
It's working.Thanks!
--
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] avalon5666 commented on issue #11024: Springboot service can not startup when the datatype of column(mysql) is json
Posted by GitBox <gi...@apache.org>.
avalon5666 commented on issue #11024:
URL: https://github.com/apache/shardingsphere/issues/11024#issuecomment-869697083
set check-table-metadata-enabled=false
--
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] chenqin091017 closed issue #11024: Springboot service can not startup when the datatype of column(mysql) is json
Posted by GitBox <gi...@apache.org>.
chenqin091017 closed issue #11024:
URL: https://github.com/apache/shardingsphere/issues/11024
--
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] avalon5666 commented on issue #11024: Springboot service can not startup when the datatype of column(mysql) is json
Posted by GitBox <gi...@apache.org>.
avalon5666 commented on issue #11024:
URL: https://github.com/apache/shardingsphere/issues/11024#issuecomment-869697083
set check-table-metadata-enabled=false
--
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] chenqin091017 commented on issue #11024: Springboot service can not startup when the datatype of column(mysql) is json
Posted by GitBox <gi...@apache.org>.
chenqin091017 commented on issue #11024:
URL: https://github.com/apache/shardingsphere/issues/11024#issuecomment-870159496
> set check-table-metadata-enabled=false
It's working.Thanks!
--
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