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/01/07 11:51:41 UTC
[GitHub] [shardingsphere] zjcnb opened a new issue #14613: driverClassName is com.mysql.cj.jdbc.Driver ShardingSphere-Proxy start failed.
zjcnb opened a new issue #14613:
URL: https://github.com/apache/shardingsphere/issues/14613
### Which version of ShardingSphere did you use?
`master`
### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
`Sharding-Proxy`
```
[ERROR] 2022-01-07 19:12:53.820 [main] com.zaxxer.hikari.HikariConfig - Failed to load driver class com.mysql.cj.jdbc.Driver from HikariConfig class classloader sun.misc.Launcher$AppClassLoader@18b4aac2
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.shardingsphere.infra.config.datasource.pool.creator.DataSourceReflection.setField(DataSourceReflection.java:133)
at org.apache.shardingsphere.infra.config.datasource.pool.creator.DataSourceReflection.lambda$setField$0(DataSourceReflection.java:118)
at java.util.Optional.ifPresent(Optional.java:159)
at org.apache.shardingsphere.infra.config.datasource.pool.creator.DataSourceReflection.setField(DataSourceReflection.java:118)
at org.apache.shardingsphere.infra.config.datasource.pool.creator.DataSourcePoolCreator.setConfiguredFields(DataSourcePoolCreator.java:110)
at org.apache.shardingsphere.infra.config.datasource.pool.creator.DataSourcePoolCreator.createDataSource(DataSourcePoolCreator.java:82)
at org.apache.shardingsphere.infra.config.datasource.pool.creator.DataSourcePoolCreatorUtil.getDataSource(DataSourcePoolCreatorUtil.java:43)
at org.apache.shardingsphere.mode.manager.cluster.ClusterContextManagerBuilder.getLoadDataSources(ClusterContextManagerBuilder.java:187)
at org.apache.shardingsphere.mode.manager.cluster.ClusterContextManagerBuilder.loadDataSourcesMap(ClusterContextManagerBuilder.java:162)
at org.apache.shardingsphere.mode.manager.cluster.ClusterContextManagerBuilder.beforeBuildContextManager(ClusterContextManagerBuilder.java:100)
at org.apache.shardingsphere.mode.manager.cluster.ClusterContextManagerBuilder.build(ClusterContextManagerBuilder.java:84)
at org.apache.shardingsphere.proxy.initializer.BootstrapInitializer.createContextManager(BootstrapInitializer.java:84)
at org.apache.shardingsphere.proxy.initializer.BootstrapInitializer.init(BootstrapInitializer.java:71)
at org.apache.shardingsphere.proxy.Bootstrap.main(Bootstrap.java:47)
Caused by: java.lang.RuntimeException: Failed to load driver class com.mysql.cj.jdbc.Driver in either of HikariConfig class loader or Thread context classloader
at com.zaxxer.hikari.HikariConfig.setDriverClassName(HikariConfig.java:485)
... 18 more
```
### Zookeeper Configuration
```
ds0:
initializationFailTimeout: 1
validationTimeout: 5000
readOnly: false
registerMbeans: false
isolateInternalQueries: false
maxLifetime: 1800000
leakDetectionThreshold: 0
running: false
password: '123456'
allowPoolSuspension: false
idleTimeout: 600000
driverClassName: com.mysql.cj.jdbc.Driver
jdbcUrl: jdbc:mysql://127.0.0.1:3306/test0
closed: false
dataSourceClassName: com.zaxxer.hikari.HikariDataSource
autoCommit: true
connectionTimeout: 30000
username: root
ds1:
initializationFailTimeout: 1
validationTimeout: 5000
readOnly: false
registerMbeans: false
isolateInternalQueries: false
maxLifetime: 1800000
leakDetectionThreshold: 0
running: false
password: '123456'
allowPoolSuspension: false
idleTimeout: 600000
driverClassName: com.mysql.cj.jdbc.Driver
jdbcUrl: jdbc:mysql://127.0.0.1:3306/test1
closed: false
dataSourceClassName: com.zaxxer.hikari.HikariDataSource
autoCommit: true
connectionTimeout: 30000
username: root
ds2:
initializationFailTimeout: 1
validationTimeout: 5000
readOnly: false
registerMbeans: false
isolateInternalQueries: false
maxLifetime: 1800000
leakDetectionThreshold: 0
running: false
password: '123456'
allowPoolSuspension: false
idleTimeout: 600000
driverClassName: com.mysql.cj.jdbc.Driver
jdbcUrl: jdbc:mysql://127.0.0.1:3306/test1
closed: false
dataSourceClassName: com.zaxxer.hikari.HikariDataSource
autoCommit: true
connectionTimeout: 30000
username: root
```
--
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] terrymanu closed issue #14613: The DriverClassName is com.mysql.cj.jdbc.Driver ShardingSphere-Proxy start failed.
Posted by GitBox <gi...@apache.org>.
terrymanu closed issue #14613:
URL: https://github.com/apache/shardingsphere/issues/14613
--
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