You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Steve Loughran (JIRA)" <ji...@apache.org> on 2015/12/15 19:03:46 UTC

[jira] [Commented] (ZOOKEEPER-2345) ServerCnxnFactory.configureSaslLogin() loses stack trace on auth failures

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

Steve Loughran commented on ZOOKEEPER-2345:
-------------------------------------------

{code}
2015-12-15 17:16:23,517 - WARN  [main:SaslServerCallbackHandler@105] - No password found for user: null
2015-12-15 17:16:23,536 - ERROR [main:ZooKeeperServerMain@63] - Unexpected exception, exiting abnormallyjava.io.IOException: Could not configure server because SASL configuration did not allow the  ZooKeeper server to authenticate itself properly: javax.security.auth.login.LoginException: No password provided
        at org.apache.zookeeper.server.ServerCnxnFactory.configureSaslLogin(ServerCnxnFactory.java:207)
        at org.apache.zookeeper.server.NIOServerCnxnFactory.configure(NIOServerCnxnFactory.java:87)
        at org.apache.zookeeper.server.ZooKeeperServerMain.runFromConfig(ZooKeeperServerMain.java:111)
        at org.apache.zookeeper.server.ZooKeeperServerMain.initializeAndRun(ZooKeeperServerMain.java:86)
        at org.apache.zookeeper.server.ZooKeeperServerMain.main(ZooKeeperServerMain.java:52)
        at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:116)
        at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:78)
{code}

Now, there's clearly a hint of the root cause "No password found for user: null", but the inner stack is lost, and more info could be provided

> ServerCnxnFactory.configureSaslLogin() loses stack trace on auth failures
> -------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-2345
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2345
>             Project: ZooKeeper
>          Issue Type: Sub-task
>          Components: server
>    Affects Versions: 3.4.6
>            Reporter: Steve Loughran
>
> When there's a problem authenticating in {{ServerCnxnFactory.configureSaslLogin() }}, the exception is retained -but the full stack lost.



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