Uploaded image for project: 'Couchbase Java Client'
  1. Couchbase Java Client
  2. JCBC-120

NPE when connecting to memcached bucket without configured password

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1-dp3
    • Fix Version/s: 1.1-dp4
    • Component/s: Core
    • Security Level: Public
    • Labels:
      None
    • Environment:
      This happens when connecting to a memcached bucket which is not configured with a password, and no password is specified to the ctor.

      Tested with the beta cluster

      Description

      2012-09-28 09:53:31.562 INFO com.couchbase.client.CouchbaseMemcachedConnection: Added

      {QA sa=/10.3.3.135:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}

      to connect queue
      java.lang.NullPointerException
      at net.spy.memcached.auth.PlainCallbackHandler.<init>(PlainCallbackHandler.java:50)
      at com.couchbase.client.CouchbaseConnectionFactory.getAuthDescriptor(CouchbaseConnectionFactory.java:187)
      at net.spy.memcached.MemcachedClient.<init>(MemcachedClient.java:197)
      at com.couchbase.client.CouchbaseClient.<init>(CouchbaseClient.java:230)
      at com.couchbase.client.CouchbaseClient.<init>(CouchbaseClient.java:200)
      at com.couchbase.cbc.App.main(App.java:69)

      – SNIPPET –

      CouchbaseClient cli = null;
      LinkedList<URI> uriList = new LinkedList<URI>();

      try

      { uriList.add(new URI("http://" + options.hostname + "/pools")); cli = new CouchbaseClient( uriList, options.bucket, options.username, options.password); }

      catch (Exception ex)

      { ex.printStackTrace(); System.exit(-1); }
      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        mnunberg Mark Nunberg created issue -
        mnunberg Mark Nunberg made changes -
        Field Original Value New Value
        Environment This happens when connecting to a memcached bucket which is not configured with a password, and no password is specified to the ctor This happens when connecting to a memcached bucket which is not configured with a password, and no password is specified to the ctor.

        Tested with the beta cluster
        ingenthr Matt Ingenthron made changes -
        Assignee Raghavan Srinivas [ rags ] Michael Nitschinger [ daschl ]
        Fix Version/s 1.1-dp4 [ 10390 ]
        ingenthr Matt Ingenthron made changes -
        Link This issue duplicates JCBC-70 [ JCBC-70 ]
        ingenthr Matt Ingenthron made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Duplicate [ 3 ]
        Hide
        mnunberg Mark Nunberg added a comment -

        This is not a duplicate of JCBC-70. Specifically JCBC-70 relates to issues about memcached buckets during failover. This bug has nothing to do with failover and has to do with connecting to a memcached bucket without a configured SASL password (which the admin console lets you do).

        Show
        mnunberg Mark Nunberg added a comment - This is not a duplicate of JCBC-70 . Specifically JCBC-70 relates to issues about memcached buckets during failover. This bug has nothing to do with failover and has to do with connecting to a memcached bucket without a configured SASL password (which the admin console lets you do).
        mnunberg Mark Nunberg made changes -
        Resolution Duplicate [ 3 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Hide
        ingenthr Matt Ingenthron added a comment - - edited

        Yes, just noticed that it's not a dupe. Sorry about that. I was about to reopen it. Note, this could be related to JCBC-70 though.

        Show
        ingenthr Matt Ingenthron added a comment - - edited Yes, just noticed that it's not a dupe. Sorry about that. I was about to reopen it. Note, this could be related to JCBC-70 though.
        ingenthr Matt Ingenthron made changes -
        Link This issue duplicates JCBC-70 [ JCBC-70 ]
        Show
        daschl Michael Nitschinger added a comment - http://review.couchbase.org/#/c/21446/
        ingenthr Matt Ingenthron made changes -
        Fix Version/s 1.0.4 [ 10364 ]
        mikew Mike Wiederhold made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        daschl Michael Nitschinger made changes -
        Fix Version/s 1.0.4 [ 10364 ]
        ingenthr Matt Ingenthron made changes -
        Workflow jira [ 20968 ] Couchbase SDK Workflow [ 38403 ]

          People

          • Assignee:
            daschl Michael Nitschinger
            Reporter:
            mnunberg Mark Nunberg
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes