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

ASF GitHub Bot commented on BEAM-1837:
--------------------------------------

GitHub user rangadi opened a pull request:

    https://github.com/apache/beam/pull/2369

    [BEAM-1837] Fix NPE in KafkaIO writer.

    `KafkaIO.writer()...values()` does not require user to set key coder since 
the key always null.
    Validation passes, but it results in an NPE at runtime when the writer is
    tries to instantiates the producer. Set key coder to 'NullOnlyCoder'.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/rangadi/incubator-beam sink

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/beam/pull/2369.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 #2369
    
----
commit 7ddec2c492201e1f9f7aeb358403b798bb7235f1
Author: Raghu Angadi <[email protected]>
Date:   2017-03-30T06:21:54Z

    Fix NPE in Kafka value writer.
    
    KafkaIO.writer()...values() does not require user to set key coder since 
the key always null.
    Validation passes, but it results in an NPE at runtime when the writer is
    tries to instantiates the producer. Set key coder to 'NullOnlyCoder'.

----


> NPE in KafkaIO writer
> ---------------------
>
>                 Key: BEAM-1837
>                 URL: https://issues.apache.org/jira/browse/BEAM-1837
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-java-extensions
>            Reporter: Raghu Angadi
>            Assignee: Raghu Angadi
>
> {{KafkaIO.writer()...values()}} does not require user to set key coder since 
> the key always null. Validation passes, but it results in an NPE at runtime 
> when the writer is tries to instantiates the producer.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to