Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-27219

CliClientITCase.testSqlStatements failed on azure with jdk11

    XMLWordPrintableJSON

Details

    Description

      Apr 13 04:56:44 [ERROR] Could not execute SQL statement. Reason:
      Apr 13 04:56:44 java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap')
      Apr 13 04:56:44 !error
      Apr 13 04:56:44 
      Apr 13 04:56:44 # test "ctas" only supported in Hive Dialect
      Apr 13 04:56:44 CREATE TABLE foo as select 1;
      Apr 13 04:56:44 [ERROR] Could not execute SQL statement. Reason:
      Apr 13 04:56:44 java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap')
      Apr 13 04:56:44 !error
      Apr 13 04:56:44 
      Apr 13 04:56:44 # list the configured configuration
      Apr 13 04:56:44 set;
      Apr 13 04:56:44 [ERROR] Could not execute SQL statement. Reason:
      Apr 13 04:56:44 java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap')
      Apr 13 04:56:44 !error
      Apr 13 04:56:44 
      Apr 13 04:56:44 # reset the configuration
      Apr 13 04:56:44 reset;
      Apr 13 04:56:44 [ERROR] Could not execute SQL statement. Reason:
      Apr 13 04:56:44 java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap')
      Apr 13 04:56:44 !error
      Apr 13 04:56:44 
      Apr 13 04:56:44 set;
      Apr 13 04:56:44 [ERROR] Could not execute SQL statement. Reason:
      Apr 13 04:56:44 java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap')
      Apr 13 04:56:44 !error
      
      ...
      
      Apr 13 04:56:44 [ERROR] Could not execute SQL statement. Reason:
      Apr 13 04:56:44 org.apache.flink.sql.parser.impl.ParseException: Encountered "STRING" at line 10, column 27.
      Apr 13 04:56:44 Was expecting one of:
      Apr 13 04:56:44     ")" ...
      Apr 13 04:56:44     "," ...
      Apr 13 04:56:44 
      Apr 13 04:56:44 !error
      
      ...
      
      Apr 13 04:56:44 SHOW JARS;
      Apr 13 04:56:44 Empty set
      Apr 13 04:56:44 !ok
      Apr 13 04:56:44 "
      Apr 13 04:56:44 	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      Apr 13 04:56:44 	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      Apr 13 04:56:44 	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      Apr 13 04:56:44 	at org.apache.flink.table.client.cli.CliClientITCase.testSqlStatements(CliClientITCase.java:139)
      Apr 13 04:56:44 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      Apr 13 04:56:44 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      Apr 13 04:56:44 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      Apr 13 04:56:44 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      Apr 13 04:56:44 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
      Apr 13 04:56:44 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      Apr 13 04:56:44 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
      Apr 13 04:56:44 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      Apr 13 04:56:44 	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      Apr 13 04:56:44 	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      Apr 13 04:56:44 	at org.apache.flink.util.TestNameProvider$1.evaluate(TestNameProvider.java:45)
      Apr 13 04:56:44 	at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:61)
      Apr 13 04:56:44 	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
      Apr 13 04:56:44 	at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
      Apr 13 04:56:44 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
      Apr 13 04:56:44 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
      Apr 13 04:56:44 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
      Apr 13 04:56:44 	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
      Apr 13 04:56:44 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
      Apr 13 04:56:44 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
      Apr 13 04:56:44 	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
      Apr 13 04:56:44 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
      Apr 13 04:56:44 	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
      Apr 13 04:56:44 	at org.junit.runners.Suite.runChild(Suite.java:128)
      Apr 13 04:56:44 	at org.junit.runners.Suite.runChild(Suite.java:27)
      Apr 13 04:56:44 	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
      Apr 13 04:56:44 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
      Apr 13 04:56:44 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
      Apr 13 04:56:44 	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
      
      

      https://dev.azure.com/apache-flink/apache-flink/_build/results?buildId=34596&view=logs&j=ce3801ad-3bd5-5f06-d165-34d37e757d90&t=5e4d9387-1dcc-5885-a901-90469b7e6d2f&l=11357

      This seems to only occur on jdk11

      Attachments

        Issue Links

          Activity

            People

              fsk119 Shengkai Fang
              gaoyunhaii Yun Gao
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: