Hi, you may try to use this configuration[1] to register your class. The deprecated method `StreamExecutionEnvironment#registerType` has been removed in flink 2.0.
[1] https://nightlies.apache.org/flink/flink-docs-master/docs/deployment/config/#pipeline-serialization-config -- Best! Xuyang 在 2025-07-10 16:06:21,"patricia lee" <plee3...@gmail.com> 写道: Hi, We are currently migrating from Flink version 1.18 to Flink version 2.0. We have this configuration: StreamExecutionEnvironment env = new StreamExecutionEnvironment(); env.setRegisterTypes(MyClass.class); In flink 2.0, if our understanding is correct, we'll use this registerPojoType instead. However, this method does not exist. So how are we going to register the class? Thanks https://nightlies.apache.org/flink/flink-docs-release-2.0/docs/dev/datastream/execution/execution_configuration