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

flink-connector-jdbc fails to compile with NPE on hasGenericTypesDisabled

    XMLWordPrintableJSON

Details

    Description

      https://github.com/apache/flink-connector-jdbc/actions/runs/7682035724/job/20935884874#step:14:150

      Error:  Tests run: 10, Failures: 5, Errors: 4, Skipped: 0, Time elapsed: 7.909 s <<< FAILURE! - in org.apache.flink.connector.jdbc.JdbcRowOutputFormatTest
      Error:  org.apache.flink.connector.jdbc.JdbcRowOutputFormatTest.testInvalidConnectionInJdbcOutputFormat  Time elapsed: 3.254 s  <<< ERROR!
      java.lang.NullPointerException: Cannot invoke "org.apache.flink.api.common.serialization.SerializerConfig.hasGenericTypesDisabled()" because "config" is null
      	at org.apache.flink.api.java.typeutils.GenericTypeInfo.createSerializer(GenericTypeInfo.java:85)
      	at org.apache.flink.api.java.typeutils.GenericTypeInfo.createSerializer(GenericTypeInfo.java:99)
      	at org.apache.flink.connector.jdbc.JdbcTestBase.getSerializer(JdbcTestBase.java:70)
      	at org.apache.flink.connector.jdbc.JdbcRowOutputFormatTest.testInvalidConnectionInJdbcOutputFormat(JdbcRowOutputFormatTest.java:336)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
      	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
      

      Seems to be caused by FLINK-34122

      Attachments

        Issue Links

          Activity

            People

              jiabao.sun jiabao.sun
              martijnvisser Martijn Visser
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: