BruceZhangXL opened a new issue #13082:
URL: https://github.com/apache/shardingsphere/issues/13082
## Bug Report
java.lang.NoClassDefFoundError, message=Could not initialize class
org.apache.shardingsphere.sql.parser.core.rule.registry.ParseRuleRegistry 】
java.lang.NoClassDefFoundError: Could not initialize class
org.apache.shardingsphere.sql.parser.core.rule.registry.ParseRuleRegistry
at
org.apache.shardingsphere.sql.parser.SQLParseEngine.parse0(SQLParseEngine.java:70)
at
org.apache.shardingsphere.sql.parser.SQLParseEngine.parse(SQLParseEngine.java:52)
at
org.apache.shardingsphere.core.route.router.sharding.ShardingRouter.parse$original$K1EIPfwP(ShardingRouter.java:86)
at
org.apache.shardingsphere.core.route.router.sharding.ShardingRouter.parse$original$K1EIPfwP$accessor$fYOJ3msv(ShardingRouter.java)
at
org.apache.shardingsphere.core.route.router.sharding.ShardingRouter$auxiliary$8V8n2toM.call(Unknown
Source)
at
org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstMethodsInter.intercept(InstMethodsInter.java:86)
at
org.apache.shardingsphere.core.route.router.sharding.ShardingRouter.parse(ShardingRouter.java)
### Which version of ShardingSphere did you use?
4.1.1
### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere-JDBC
### Expected behavior
run fine under jdk 11
### Actual behavior
sometime throw NoClassDefFoundError under jdk 11, the error seldom occur
but really exists ,must restart app once occured
### Reason analyze (If you can)

the static code block in ParseRuleRegistry maybe occer error,should wrap
them with try and catch the real exception,instead of throw the initialize
class fail exception.
--
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]