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

Arshad Mohammad commented on ZOOKEEPER-2299:
--------------------------------------------

Thanks [~rakeshr] for looking into the issue.
# {quote}
Could you tell me the way qp.myClientAddr would become null value in the real 
cluster.
{quote}
scenario is as follows
1) in zoo.cfg clientPort is configured but clientPortAddress is not 
configured(which is valid configuration).
2) in zoo.cfg servers have following configuration, not added client information
{code}server.1=localhost:2888:3888:participant
server.2=localhost:2889:3889:participant
server.3=localhost:2890:3890:participant{code}
Remark:{{qp.myClientAddr}}  is not null only when   client ip is specified in 
dynamic configuration
like  server.1=localhost:2888:3888:participant;localhost:2181
# yes, if only secureClientPort is configured {{peer.cnxnFactory}} will be null.
I am returning blank string in this case.
{color:blue}I don't think we should show secure client address in ClientAddress 
property.
There should be different jmx property  SecureClientAddress. What you say? Can 
I raise septate ticket to add SecureClientAddress and SecureClientPort jmx 
property?{color}

> 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