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

Rakesh R commented on ZOOKEEPER-2299:
-------------------------------------

Thanks [~arshad.mohammad] for reporting this. I could see the unit test case is 
written to simulate the scenario. Could you tell me the way {{qp.myClientAddr}} 
would become null value in the real cluster. 

Also, just one quick comment about the patch. Say, if someone use 
secureClientPort, server will use {{peer.secureCnxnFactory}} to handle the 
connections. {{peer.cnxnFactory}} will be null, again this patch will throw 
NPE, right?

> NullPointerException in LocalPeerBean for ClientAddress
> -------------------------------------------------------
>
>                 Key: ZOOKEEPER-2299
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2299
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: jmx
>            Reporter: Arshad Mohammad
>            Assignee: Arshad Mohammad
>             Fix For: 3.5.2
>
>         Attachments: ZOOKEEPER-2299-01.patch
>
>
> When clientPortAddress is not configured LocalPeerBean throws 
> NullPointerException.
> *Expected Behavior:*
> # When only clientPort is configured ClientAddress value should be 
> 0.0.0.0:clientPort or 0:0:0:0:0:0:0:0:clientPort
> # When both clientPort clientPortAddress are configured then expected value 
> is clientPortAddress:clientPort



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to