CrackerSuperior commented on issue #13998:
URL: 
https://github.com/apache/shardingsphere/issues/13998#issuecomment-993705588


   When I was doing the parsing test of the grammar definition, the following 
error occurred
   
   ``` java
   
   java.lang.ExceptionInInitializerError
        at 
org.apache.shardingsphere.test.sql.parser.parameterized.DistSQLParserParameterizedTest.<clinit>(DistSQLParserParameterizedTest.java:39)
        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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
        at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
        at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
        at org.junit.runners.Parameterized.allParameters(Parameterized.java:280)
        at org.junit.runners.Parameterized.<init>(Parameterized.java:248)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at 
org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:104)
        at 
org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:86)
        at 
org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
        at 
org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)
        at 
org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
        at 
org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:33)
        at 
com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:50)
        at 
com.intellij.rt.junit.IdeaTestRunner$Repeater$1.execute(IdeaTestRunner.java:38)
        at 
com.intellij.rt.execution.junit.TestsRepeater.repeat(TestsRepeater.java:11)
        at 
com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:35)
        at 
com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:235)
        at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54)
   Caused by: java.lang.IllegalStateException: Find duplicated Case ID: 
parse-sql
        at 
com.google.common.base.Preconditions.checkState(Preconditions.java:589)
        at 
org.apache.shardingsphere.test.sql.parser.parameterized.jaxb.distsql.loader.DistSQLCasesLoader.buildCaseMap(DistSQLCasesLoader.java:48)
        at 
org.apache.shardingsphere.test.sql.parser.parameterized.loader.CasesLoader.loadFromTargetDirectory(CasesLoader.java:65)
        at 
org.apache.shardingsphere.test.sql.parser.parameterized.loader.CasesLoader.load(CasesLoader.java:51)
        at 
org.apache.shardingsphere.test.sql.parser.parameterized.loader.CasesLoader.<init>(CasesLoader.java:45)
        at 
org.apache.shardingsphere.test.sql.parser.parameterized.jaxb.distsql.loader.DistSQLCasesLoader.<init>(DistSQLCasesLoader.java:41)
        at 
org.apache.shardingsphere.test.sql.parser.parameterized.jaxb.CasesRegistry.<init>(CasesRegistry.java:41)
        at 
org.apache.shardingsphere.test.sql.parser.parameterized.jaxb.CasesRegistry.<clinit>(CasesRegistry.java:29)
        ... 26 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