You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Hairong Kuang (JIRA)" <ji...@apache.org> on 2008/05/29 18:21:44 UTC

[jira] Updated: (HADOOP-3453) ipc.Client.close() throws NullPointerException

     [ https://issues.apache.org/jira/browse/HADOOP-3453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hairong Kuang updated HADOOP-3453:
----------------------------------

    Attachment: ipc_client_npe.patch

This patch makes sure that connection.close() checks if the connection has been set up or not so avoiding NPE.

> ipc.Client.close() throws NullPointerException
> ----------------------------------------------
>
>                 Key: HADOOP-3453
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3453
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: ipc
>            Reporter: Tsz Wo (Nicholas), SZE
>            Assignee: Hairong Kuang
>         Attachments: ipc_client_npe.patch
>
>
> There are two possible cases that Client.close() throws NullPointerException
> - Exception in thread "IPC Client (47) connection to localhost/127.0.0.1:3070 from tsz" java.lang.NullPointerException
>     at org.apache.hadoop.ipc.Client$Connection.close(Client.java:521)
>     at org.apache.hadoop.ipc.Client$Connection.run(Client.java:434)
> - Exception in thread "Thread-2" java.lang.NullPointerException
>     at org.apache.hadoop.ipc.Client$Connection.close(Client.java:519)
>     at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:317)
>     at org.apache.hadoop.ipc.Client$Connection.access$1700(Client.java:175)
>     at org.apache.hadoop.ipc.Client.getConnection(Client.java:766)
>     at org.apache.hadoop.ipc.Client.call(Client.java:680)
>     at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:216)
>     ...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.