report errors
Exception in thread "main" org.apache.flink.api.common.functions.InvalidTypesException: Could not determine TypeInformation for the OutputTag type. The most common reason is forgetting to make the OutputTag an anonymous inner class. It is also not possible to use generic type variables with OutputTags, such as 'Tuple2<A, B>'.
Caused by: org.apache.flink.api.common.functions.InvalidTypesException: The types of the interface org.apache.flink.util.OutputTag could not be inferred. Support for synthetic interfaces, lambdas, and generic or raw types is limited at this point
Solution:
Generally, curly braces are omitted:
OutputTag<ApacheLogEvent> lateTag = new OutputTag<ApacheLogEvent>("late-tag");
Replace with:
OutputTag<ApacheLogEvent> lateTag = new OutputTag<ApacheLogEvent>("late-tag"){};
Places that are easy to ignore.
Read More:
- Mybatis single parameter pass in exception (How to Fix)
- Caused by: java.lang.IllegalStateException (How to Fix)
- How to Fix log4j2 warning: warn unable to identify org.fusesource.jansi.WindowsAnsiOutputStream
- How to Fix “DevTools failed to load SourceMap” Warning
- How to Fix COM Surrogate has stopped working in Windows 7
- IDEA-Error java error release version 5 not supported (How To Fix)
- Flutter: How to Fix Android module can’t recognize flutter SDK source code
- [Solved] Flink1.12 integrate Hadoop 3.X error: java.lang.RuntimeException…
- [Solved] org.apache.flink.client.program.ProgramInvocationException: The main method caused an error
- How to Fix Error Caused by: java.util.MissingResourceException: Can‘t find bundle for base name xxx, locale zh_CN
- Flink Error: is not serializable. The object probably contains or references non serializable fields.
- [Solved] write javaBean error, fastjson version 1.2.76, class org.apache.flink.table.data.binary
- FIX: SSL error when connecting to the Jack server. [How to Solve]
- How to Solve Flynk Task Java verifyerror 209 error
- How to Solve Flick operate Error: not serialized
- How to Solve Log4j 2.5 upgrade to 2.15 error
- How to Solve Swagger error: IllegalStateException
- How to Solve ERROR: Java 1.7 or later is required to run Apache Drill
- JAVA: How to Use Minio to upload pictures