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

Avoid NPE when Host is Up, but no CB is running

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • None
    • None
    • Core
    • Security Level: Public
    • None

    Description

      When the target host is reachable, but no server is running, the client throws a unhelpful NPE:

      Caused by: java.lang.NullPointerException
      at com.couchbase.client.vbucket.ConfigurationProviderHTTP.getBucketConfiguration(ConfigurationProviderHTTP.java:148)
      at com.couchbase.client.CouchbaseConnectionFactory.getVBucketConfig(CouchbaseConnectionFactory.java:231)
      at com.couchbase.client.CouchbaseClient.<init>(CouchbaseClient.java:237)
      at com.couchbase.client.CouchbaseClient.<init>(CouchbaseClient.java:175)

      The logs also show more infos, but this NPE is not helpful in the stack.

      Attachments

        Issue Links

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

          Activity

            People

              daschl Michael Nitschinger
              daschl Michael Nitschinger
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty