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 2020/10/14 02:14:25 UTC
[GitHub] [shardingsphere] gywndi commented on issue #7701: java.lang.UnsupportedOperationException: Cannot support database type 'MySQL' error
gywndi commented on issue #7701:
URL: https://github.com/apache/shardingsphere/issues/7701#issuecomment-708111281
Thanks for reply, but I still have same issue. :-(
I checked my packaged jar with vi command, it's packaged shardingsphere-sql-parser-mysql-4.1.0.jar also.
```
.. skip ..
org/apache/shardingsphere/sql/parser/mysql/
org/apache/shardingsphere/sql/parser/mysql/parser/
org/apache/shardingsphere/sql/parser/mysql/visitor/
org/apache/shardingsphere/sql/parser/mysql/visitor/impl/
org/apache/shardingsphere/sql/parser/mysql/lexer/
org/apache/shardingsphere/sql/parser/mysql/parser/MySQLParser.class
org/apache/shardingsphere/sql/parser/mysql/MySQLParserConfiguration.class
org/apache/shardingsphere/sql/parser/mysql/visitor/MySQLVisitorFacade.class
org/apache/shardingsphere/sql/parser/mysql/visitor/MySQLVisitor.class
org/apache/shardingsphere/sql/parser/mysql/visitor/impl/MySQLDMLVisitor.class
org/apache/shardingsphere/sql/parser/mysql/visitor/impl/MySQLRLVisitor.class
org/apache/shardingsphere/sql/parser/mysql/visitor/impl/MySQLDDLVisitor.class
org/apache/shardingsphere/sql/parser/mysql/visitor/impl/MySQLDALVisitor.class
org/apache/shardingsphere/sql/parser/mysql/visitor/impl/MySQLDCLVisitor.class
org/apache/shardingsphere/sql/parser/mysql/visitor/impl/MySQLTCLVisitor.class
org/apache/shardingsphere/sql/parser/mysql/lexer/MySQLLexer.class
org/apache/shardingsphere/sql/parser/autogen/MySQLStatementParser$DropColumnSpecificationContext.class
org/apache/shardingsphere/sql/parser/autogen/MySQLStatementParser$ShowProcesslistContext.class
.. skip ..
```
There's no problem, if I execute with java command as below.
```bash
java -classpath my-test-0.0.1-jar-with-dependencies.jar:shardingsphere-sql-parser-mysql-4 net.test.Main
```
But I changed execute `-jar` as below, I have same problem.
```bash
java -classpath my-test-0.0.1-jar-with-dependencies.jar:shardingsphere-sql-parser-mysql-4.1.0.jar -jar my-test-0.0.1-jar-with-dependencies.jar
```
Could it be caused by the class not loading? If so, is there a way to force loading?
----------------------------------------------------------------
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