You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Imesha Sudasingha (JIRA)" <ji...@apache.org> on 2017/12/31 04:32:00 UTC
[jira] [Commented] (AVRO-2047) NettyTransceiver can NPE when
getRemoteName() is called
[ https://issues.apache.org/jira/browse/AVRO-2047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16307069#comment-16307069 ]
Imesha Sudasingha commented on AVRO-2047:
-----------------------------------------
I too got the same error. Any update on this issue?
> NettyTransceiver can NPE when getRemoteName() is called
> -------------------------------------------------------
>
> Key: AVRO-2047
> URL: https://issues.apache.org/jira/browse/AVRO-2047
> Project: Avro
> Issue Type: Bug
> Affects Versions: 1.7.7
> Reporter: Clement Pang
>
> NettyTransceiver can NPE if the channel is closed while a request is underway. The correct thing to do seems to be to check for null and throw an IOException ("underlying transport no longer available").
> {code}
> ! java.lang.NullPointerException: null
> ! at org.apache.avro.ipc.NettyTransceiver.getRemoteName(NettyTransceiver.java:431)
> ! at org.apache.avro.ipc.Requestor.writeHandshake(Requestor.java:202)
> ! at org.apache.avro.ipc.Requestor.access$300(Requestor.java:52)
> ! at org.apache.avro.ipc.Requestor$Request.getBytes(Requestor.java:478)
> ! at org.apache.avro.ipc.Requestor.request(Requestor.java:181)
> ! at org.apache.avro.ipc.Requestor.request(Requestor.java:129)
> ! at org.apache.avro.ipc.specific.SpecificRequestor.invoke(SpecificRequestor.java:84)
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)