2013650523 opened a new issue, #2081: URL: https://github.com/apache/incubator-seatunnel/issues/2081
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/incubator-seatunnel/issues?q=is%3Aissue+label%3A%22bug%22) and found no similar issues. ### What happened I use the new API connector, Fake source to jdbc sink . whern I run seatunnel-flink-new-connector-example, application report a error ,Caused by: java.lang.IllegalArgumentException: Cannot convert type to class ### SeaTunnel Version api-draft ### SeaTunnel Config ```conf # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use this file except in compliance with # the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ###### ###### This config file is a demonstration of streaming processing in seatunnel config ###### env { # You can set flink configuration here execution.parallelism = 1 #job.mode = "BATCH" #execution.checkpoint.interval = 10000 #execution.checkpoint.data-uri = "hdfs://localhost:9000/checkpoint" } source { # This is a example source plugin **only for test and demonstrate the feature source plugin** FakeSource { result_table_name = "fake" field_name = "name,age" } # If you would like to get more information about how to configure seatunnel and see full list of source plugins, # please go to https://seatunnel.apache.org/docs/flink/configuration/source-plugins/Fake } transform { # If you would like to get more information about how to configure seatunnel and see full list of transform plugins, # please go to https://seatunnel.apache.org/docs/flink/configuration/transform-plugins/Sql } sink { jdbc { source_table_name = fake driver = com.mysql.jdbc.Driver url = "jdbc:mysql://192.168.88.130/test" username = root query = "insert into test(name,age) values(?,?)" batch_size = 2 } # If you would like to get more information about how to configure seatunnel and see full list of sink plugins, # please go to https://seatunnel.apache.org/docs/flink/configuration/sink-plugins/Console } ``` ### Running Command ```shell run ``` ### Error Exception ```log Caused by: java.lang.IllegalArgumentException: Cannot convert type to class at org.apache.flink.api.java.typeutils.TypeExtractionUtils.typeToClass(TypeExtractionUtils.java:284) at org.apache.flink.streaming.runtime.translators.SinkTransformationTranslator.extractCommittableTypeInformation(SinkTransformationTranslator.java:364) at org.apache.flink.streaming.runtime.translators.SinkTransformationTranslator.addWriter(SinkTransformationTranslator.java:202) at org.apache.flink.streaming.runtime.translators.SinkTransformationTranslator.internalTranslate(SinkTransformationTranslator.java:146) at org.apache.flink.streaming.runtime.translators.SinkTransformationTranslator.translateForStreaming(SinkTransformationTranslator.java:103) at org.apache.flink.streaming.runtime.translators.SinkTransformationTranslator.translateForStreaming(SinkTransformationTranslator.java:58) at org.apache.flink.streaming.api.graph.StreamGraphGenerator.translate(StreamGraphGenerator.java:721) at org.apache.flink.streaming.api.graph.StreamGraphGenerator.transform(StreamGraphGenerator.java:453) at org.apache.flink.streaming.api.graph.StreamGraphGenerator.generate(StreamGraphGenerator.java:303) at org.apache.flink.streaming.api.environment.StreamExecutionEnvironment.getStreamGraph(StreamExecutionEnvironment.java:2009) at org.apache.flink.streaming.api.environment.StreamExecutionEnvironment.getExecutionPlan(StreamExecutionEnvironment.java:2042) at org.apache.seatunnel.core.starter.flink.execution.FlinkExecution.execute(FlinkExecution.java:66) at org.apache.seatunnel.core.starter.flink.command.FlinkApiTaskExecuteCommand.execute(FlinkApiTaskExecuteCommand.java:55) ``` ### Flink or Spark Version _No response_ ### Java or Scala Version _No response_ ### Screenshots _No response_ ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- 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]
