zjcnb opened a new issue #11884:
URL: https://github.com/apache/shardingsphere/issues/11884


   ## Bug Report
   
   **For English only**, other languages will not accept.
   
   Before report a bug, make sure you have:
   
   - Searched open and closed [GitHub 
issues](https://github.com/apache/shardingsphere/issues).
   - Read documentation: [ShardingSphere 
Doc](https://shardingsphere.apache.org/document/current/en/overview).
   
   Please pay attention on issues you submitted, because we maybe need more 
details. 
   If no response anymore and we cannot reproduce it on current information, we 
will **close it**.
   
   Please answer these questions before submitting your issue. Thanks!
   
   ### Which version of ShardingSphere did you use?
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   
   ShardingSphere-Proxy
   
   ### Expected behavior
   
   start up success when use mysql driver 8.0.11
   
   ### Actual behavior
   
   ```
   Exception in thread "main" java.lang.IllegalStateException: Error while 
loading privilege with java.util.concurrent.FutureTask@23706db8
        at 
org.apache.shardingsphere.authority.provider.natived.builder.StoragePrivilegeBuilder.lambda$load$5(StoragePrivilegeBuilder.java:141)
        at java.lang.Iterable.forEach(Iterable.java:75)
        at 
org.apache.shardingsphere.authority.provider.natived.builder.StoragePrivilegeBuilder.load(StoragePrivilegeBuilder.java:137)
        at 
org.apache.shardingsphere.authority.provider.natived.builder.StoragePrivilegeBuilder.buildPrivilegesInStorage(StoragePrivilegeBuilder.java:95)
        at 
org.apache.shardingsphere.authority.provider.natived.builder.StoragePrivilegeBuilder.lambda$buildPrivilegesInStorage$1(StoragePrivilegeBuilder.java:84)
        at 
java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
        at 
java.util.LinkedList$LLSpliterator.forEachRemaining(LinkedList.java:1235)
        at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
        at 
java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
        at 
java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
        at 
java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
        at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
        at 
java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
        at 
org.apache.shardingsphere.authority.provider.natived.builder.StoragePrivilegeBuilder.buildPrivilegesInStorage(StoragePrivilegeBuilder.java:84)
        at 
org.apache.shardingsphere.authority.provider.natived.builder.StoragePrivilegeBuilder.build(StoragePrivilegeBuilder.java:71)
        at 
org.apache.shardingsphere.authority.provider.natived.NativeAuthorityProviderAlgorithm.init(NativeAuthorityProviderAlgorithm.java:42)
        at 
org.apache.shardingsphere.authority.rule.AuthorityRule.<init>(AuthorityRule.java:50)
        at 
org.apache.shardingsphere.authority.rule.builder.AuthorityRuleBuilder.build(AuthorityRuleBuilder.java:36)
        at 
org.apache.shardingsphere.authority.rule.builder.AuthorityRuleBuilder.build(AuthorityRuleBuilder.java:32)
        at 
org.apache.shardingsphere.infra.rule.builder.ShardingSphereRulesBuilder.buildGlobalRules(ShardingSphereRulesBuilder.java:121)
        at 
org.apache.shardingsphere.infra.context.metadata.MetaDataContextsBuilder.buildGlobalSchemaMetaData(MetaDataContextsBuilder.java:119)
        at 
org.apache.shardingsphere.infra.context.metadata.MetaDataContextsBuilder.build(MetaDataContextsBuilder.java:108)
        at 
org.apache.shardingsphere.infra.context.manager.impl.StandaloneContextManagerBuilder.build(StandaloneContextManagerBuilder.java:69)
        at 
org.apache.shardingsphere.proxy.initializer.impl.AbstractBootstrapInitializer.init(AbstractBootstrapInitializer.java:71)
        at org.apache.shardingsphere.proxy.Bootstrap.main(Bootstrap.java:54)
   Caused by: java.util.concurrent.ExecutionException: 
java.sql.SQLDataException: Cannot determine value type from string 'Y'
        at java.util.concurrent.FutureTask.report(FutureTask.java:122)
        at java.util.concurrent.FutureTask.get(FutureTask.java:206)
        at 
org.apache.shardingsphere.authority.provider.natived.builder.StoragePrivilegeBuilder.fillPrivileges(StoragePrivilegeBuilder.java:150)
        at 
org.apache.shardingsphere.authority.provider.natived.builder.StoragePrivilegeBuilder.lambda$load$5(StoragePrivilegeBuilder.java:139)
        ... 24 more
   Caused by: java.sql.SQLDataException: Cannot determine value type from 
string 'Y'
        at 
com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:112)
        at 
com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:95)
        at 
com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:87)
        at 
com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:61)
        at 
com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:71)
        at 
com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:96)
        at 
com.mysql.cj.jdbc.result.ResultSetImpl.getBoolean(ResultSetImpl.java:719)
        at 
com.mysql.cj.jdbc.result.ResultSetImpl.getBoolean(ResultSetImpl.java:723)
        at 
com.zaxxer.hikari.pool.HikariProxyResultSet.getBoolean(HikariProxyResultSet.java)
        at 
org.apache.shardingsphere.authority.provider.natived.builder.dialect.MySQLPrivilegeHandler.loadAdministrativePrivileges(MySQLPrivilegeHandler.java:235)
        at 
org.apache.shardingsphere.authority.provider.natived.builder.dialect.MySQLPrivilegeHandler.fillGlobalPrivileges(MySQLPrivilegeHandler.java:121)
        at 
org.apache.shardingsphere.authority.provider.natived.builder.dialect.MySQLPrivilegeHandler.fillGlobalPrivileges(MySQLPrivilegeHandler.java:112)
        at 
org.apache.shardingsphere.authority.provider.natived.builder.dialect.MySQLPrivilegeHandler.load(MySQLPrivilegeHandler.java:100)
        at 
org.apache.shardingsphere.authority.provider.natived.builder.StoragePrivilegeBuilder.lambda$load$4(StoragePrivilegeBuilder.java:135)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        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)
   Caused by: com.mysql.cj.exceptions.DataConversionException: Cannot determine 
value type from string 'Y'
        at 
com.mysql.cj.result.StringConverter.createFromBytes(StringConverter.java:127)
        at 
com.mysql.cj.protocol.a.MysqlTextValueDecoder.decodeByteArray(MysqlTextValueDecoder.java:238)
        at 
com.mysql.cj.protocol.result.AbstractResultsetRow.decodeAndCreateReturnValue(AbstractResultsetRow.java:129)
        at 
com.mysql.cj.protocol.result.AbstractResultsetRow.getValueFromBytes(AbstractResultsetRow.java:233)
        at 
com.mysql.cj.protocol.a.result.TextBufferRow.getValue(TextBufferRow.java:128)
        at 
com.mysql.cj.jdbc.result.ResultSetImpl.getNonStringValueFromRow(ResultSetImpl.java:628)
        ... 12 more
   ```
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to