[ 
https://issues.apache.org/jira/browse/FLINK-20082?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17230341#comment-17230341
 ] 

ChangZhuo Chen (陳昌倬) commented on FLINK-20082:
----------------------------------------------

There are some finding for this issues:
 * `-Dsun.io.serialization.extendedDebugInfo=true` will trigger this problem.

 ** The previous good jar will have this issue when we set 
`-Dsun.io.serialization.extendedDebugInfo=true`
 * Without `-Dsun.io.serialization.extendedDebugInfo=true`, using 
ValueStateDescriptor with default value will cause this issue.

 
{code:java}

val descriptor = new ValueStateDescriptor[Long]("last_event_time", 
classOf[Long], 0L) // Remove 0L arg, and the problem will be gone.
...
...

val ttlConfig = StateTtlConfig
  .newBuilder(Time.days(14))
  .setUpdateType(StateTtlConfig.UpdateType.OnCreateAndWrite)
  .setStateVisibility(StateTtlConfig.StateVisibility.NeverReturnExpired)
  .cleanupFullSnapshot()
  .build()

descriptor.enableTimeToLive(ttlConfig)

{code}
 

 

> Cannot start Flink application due to "cannot assign instance of 
> java.lang.invoke.SerializedLambda to type scala.Function1
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: FLINK-20082
>                 URL: https://issues.apache.org/jira/browse/FLINK-20082
>             Project: Flink
>          Issue Type: Bug
>          Components: API / DataStream, API / Scala
>    Affects Versions: 1.11.2
>         Environment: * Flink 1.11.2
>  * Java 11
>  * Scala 2.12.11
>            Reporter: ChangZhuo Chen (陳昌倬)
>            Priority: Major
>         Attachments: Flink-1.11.2_Scala-2.11.log, 
> Flink-1.11.2_Scala-2.12.log, image-20201110-060934.png
>
>
> Hi,
>  * Our Flink application (Java 11 + Scala 2.12) has the following problem 
> when executing it. It cannot be run in Flink cluster.
>  * The problem is similar to 
> https://issues.apache.org/jira/browse/SPARK-25047, so maybe the same fix 
> shall be implemented in Flink?
> !image-20201110-060934.png!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to