[ https://issues.apache.org/jira/browse/BAHIR-250?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17247214#comment-17247214 ]
zoucao commented on BAHIR-250: ------------------------------ hi [~hiscat], the same problem occurred in my project, How did you fix it ? > flink-1.11.2 -java.lang.VerifyError: Cannot inherit from final class > -------------------------------------------------------------------- > > Key: BAHIR-250 > URL: https://issues.apache.org/jira/browse/BAHIR-250 > Project: Bahir > Issue Type: Bug > Components: Flink Streaming Connectors > Affects Versions: Flink-Next > Environment: jdk1.8 > scala-2.11.8 > kudu1.13-docker > Reporter: 谢波 > Priority: Blocker > Fix For: Flink-Next > > > flink1.11.2版本下,无法使用KuduSink > > <flink.version>1.11.2</flink.version> > <scala.binary.version>2.11</scala.binary.version> > <scala.version>2.11.8</scala.version> > <flink-connector-kudu_2.11.version>1.1-SNAPSHOT</flink-connector-kudu_2.11.version> > > Exception in thread "main" java.lang.VerifyError: Cannot inherit from final > classException in thread "main" java.lang.VerifyError: Cannot inherit from > final class at java.lang.ClassLoader.defineClass1(Native Method) at > java.lang.ClassLoader.defineClass(ClassLoader.java:763) at > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at > java.net.URLClassLoader.defineClass(URLClassLoader.java:468) at > java.net.URLClassLoader.access$100(URLClassLoader.java:74) at > java.net.URLClassLoader$1.run(URLClassLoader.java:369) at > java.net.URLClassLoader$1.run(URLClassLoader.java:363) at > java.security.AccessController.doPrivileged(Native Method) at > java.net.URLClassLoader.findClass(URLClassLoader.java:362) at > java.lang.ClassLoader.loadClass(ClassLoader.java:424) at > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) at > java.lang.ClassLoader.loadClass(ClassLoader.java:357) at > java.lang.Class.getDeclaredMethods0(Native Method) at > java.lang.Class.privateGetDeclaredMethods(Class.java:2701) at > java.lang.Class.getDeclaredMethod(Class.java:2128) at > org.apache.flink.api.java.ClosureCleaner.usesCustomSerialization(ClosureCleaner.java:164) > at org.apache.flink.api.java.ClosureCleaner.clean(ClosureCleaner.java:89) at > org.apache.flink.api.java.ClosureCleaner.clean(ClosureCleaner.java:126) at > org.apache.flink.api.java.ClosureCleaner.clean(ClosureCleaner.java:71) at > org.apache.flink.streaming.api.environment.StreamExecutionEnvironment.clean(StreamExecutionEnvironment.java:1899) > at > org.apache.flink.streaming.api.datastream.DataStream.clean(DataStream.java:189) > at > org.apache.flink.streaming.api.datastream.DataStream.addSink(DataStream.java:1296) > at > org.apache.flink.streaming.api.scala.DataStream.addSink(DataStream.scala:1131) > at com.hiscat.flink.kudu.KuduSinkTest$.main(KuduSinkTest.scala:26) at > com.hiscat.flink.kudu.KuduSinkTest.main(KuduSinkTest.scala) -- This message was sent by Atlassian Jira (v8.3.4#803005)