[
https://issues.apache.org/jira/browse/FLINK-1978?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14530832#comment-14530832
]
ASF GitHub Bot commented on FLINK-1978:
---------------------------------------
GitHub user fhueske opened a pull request:
https://github.com/apache/flink/pull/655
[FLINK-1978] Fix POJO deserialization & copy for reuse objects with NULL
fields
Pojo `deserialize()` and `copy()` fails if a field of the reuse object is
`null`.
This PR fixes the bug and extends the corresponding `PojoSerializerTest`.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/fhueske/flink fix-npe-pojo-ser
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/655.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #655
----
commit f280f809f241444d698d38df248a56bb82b7620b
Author: Fabian Hueske <[email protected]>
Date: 2015-05-06T15:47:59Z
[FLINK-1978] Fix POJO deserialization for reuse objects with NULL fields
----
> POJO serialization NPE
> ----------------------
>
> Key: FLINK-1978
> URL: https://issues.apache.org/jira/browse/FLINK-1978
> Project: Flink
> Issue Type: Bug
> Components: Core
> Affects Versions: 0.9
> Reporter: Flavio Pompermaier
> Assignee: Fabian Hueske
>
> NullPointer on serialization of a Date field:
> Caused by: java.lang.RuntimeException: Error obtaining the sorted input:
> Thread 'SortMerger Reading Thread' terminated due to an exception: null
> at
> org.apache.flink.runtime.operators.sort.UnilateralSortMerger.getIterator(UnilateralSortMerger.java:607)
> at
> org.apache.flink.runtime.operators.RegularPactTask.getInput(RegularPactTask.java:1132)
> at
> org.apache.flink.runtime.operators.CoGroupDriver.prepare(CoGroupDriver.java:98)
> at
> org.apache.flink.runtime.operators.RegularPactTask.run(RegularPactTask.java:464)
> ... 3 more
> Caused by: java.io.IOException: Thread 'SortMerger Reading Thread' terminated
> due to an exception: null
> at
> org.apache.flink.runtime.operators.sort.UnilateralSortMerger$ThreadBase.run(UnilateralSortMerger.java:784)
> Caused by: java.lang.NullPointerException
> at
> org.apache.flink.api.common.typeutils.base.DateSerializer.deserialize(DateSerializer.java:72)
> at
> org.apache.flink.api.common.typeutils.base.DateSerializer.deserialize(DateSerializer.java:1)
> at
> org.apache.flink.api.java.typeutils.runtime.PojoSerializer.deserialize(PojoSerializer.java:487)
> at
> org.apache.flink.api.java.typeutils.runtime.TupleSerializer.deserialize(TupleSerializer.java:136)
> at
> org.apache.flink.api.java.typeutils.runtime.TupleSerializer.deserialize(TupleSerializer.java:30)
> at
> org.apache.flink.runtime.plugable.ReusingDeserializationDelegate.read(ReusingDeserializationDelegate.java:57)
> at
> org.apache.flink.runtime.io.network.api.serialization.SpillingAdaptiveSpanningRecordDeserializer.getNextRecord(SpillingAdaptiveSpanningRecordDeserializer.java:111)
> at
> org.apache.flink.runtime.io.network.api.reader.AbstractRecordReader.getNextRecord(AbstractRecordReader.java:64)
> at
> org.apache.flink.runtime.io.network.api.reader.MutableRecordReader.next(MutableRecordReader.java:34)
> at
> org.apache.flink.runtime.operators.util.ReaderIterator.next(ReaderIterator.java:59)
> at
> org.apache.flink.runtime.operators.sort.UnilateralSortMerger$ReadingThread.go(UnilateralSortMerger.java:958)
> at
> org.apache.flink.runtime.operators.sort.UnilateralSortMerger$ThreadBase.run(UnilateralSortMerger.java:781)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)