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

Aljoscha Krettek commented on FLINK-12303:
------------------------------------------

I agree it's a bit buried in the stack but the problem is there in the trace:
{code:java}
Caused by: java.lang.NullPointerException
 at com.esotericsoftware.kryo.Kryo.getSerializer(Kryo.java:476)
 at com.esotericsoftware.kryo.Kryo.copy(Kryo.java:862)
 at 
org.apache.flink.api.java.typeutils.runtime.kryo.KryoSerializer.copy(KryoSerializer.java:217)
 at 
org.apache.flink.api.scala.typeutils.CaseClassSerializer.copy(CaseClassSerializer.scala:101)
 at 
org.apache.flink.api.scala.typeutils.CaseClassSerializer.copy(CaseClassSerializer.scala:32)
 at 
org.apache.flink.api.scala.typeutils.TrySerializer.copy(TrySerializer.scala:51)
 at 
org.apache.flink.api.scala.typeutils.TrySerializer.copy(TrySerializer.scala:33){code}
Kryo is failing to serialize (or copy) a field in the case class.

I think it's hard to get a more specific error message from the Flink side 
because this happens in Kryo. But maybe someone will pick up this issue.

> Scala 2.12 lambdas does not work in event classes inside streams.
> -----------------------------------------------------------------
>
>                 Key: FLINK-12303
>                 URL: https://issues.apache.org/jira/browse/FLINK-12303
>             Project: Flink
>          Issue Type: Bug
>          Components: API / DataStream, API / Scala
>    Affects Versions: 1.7.2
>         Environment: Scala 2.11/2.12, Oracle Java 1.8.0_172
>            Reporter: Matěj Novotný
>            Priority: Major
>
> When you use lambdas inside event classes used in streams it does work in 
> Scala 2.11. It stoped working in Scala 2.12. It does compile but does not 
> process any data and does not throw any exception. I would expect that it 
> would not compile in case I have used some not supported field in event class 
> or I would throw some exception at least.
>  
> For more detail check my demonstration repo, please: 
> [https://github.com/matej-novotny/flink-lambda-bug]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to