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

NPE when connecting to memcached bucket without configured password

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 1.1-dp4
    • 1.1-dp3
    • Core
    • Security Level: Public
    • None
    • 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); }

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            daschl Michael Nitschinger
            mnunberg Mark Nunberg (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty