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

Java API 2.0.3 returns "Could not decode cluster info" from ClusterManager.getBuckets() on Windows 7

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Major
    • 2.1.0
    • 2.0.3
    • None
    • Security Level: Public
    • None
    • Windows 7

    Description

      Customer is reporting that after reinstalling Couchbase Server 3.0.1, they started to receive the following exception:

      Exception in thread "main" com.couchbase.client.java.error.TranscodingException: Could not decode cluster info.

      This is on Windows 7 with CB 3.0.1 (and they tried 3.0.2 also) and Java 2.0.3 (and 2.0.2)

      I have not been able to reproduce. A wireshark trace on a Windows system does not catch localhost traffic.

      Here is the trace:

      C:\Tools\Couchbase-Java-Client-2.0.3>java -cp couchbase-java-client-2.0.3.jar;couchbase-core-io-1.0.3.jar;rxjava-1.0.4.jar; App

      Jan 15, 2015 3:35:14 PM com.couchbase.client.core.env.DefaultCoreEnvironment <init>

      WARNING: More than 1 Couchbase Environments found (2), this can have severe impact on performance and stability. Reuse environments!

      Jan 15, 2015 3:35:14 PM com.couchbase.client.core.CouchbaseCore <init>

      INFO: CoreEnvironment:

      {sslEnabled=false, sslKeystoreFile='null', sslKeystorePassword='null', queryEnabled=false, queryPort=8093, bo otstrapHttpEnabled=true, bootstrapCarrierEnabled=true, bootstrapHttpDirectPort=8091, bootstrapHttpSslPort=18091, bootstrapCarrierDir ectPort=11210, bootstrapCarrierSslPort=11207, ioPoolSize=4, computationPoolSize=4, responseBufferSize=16384, requestBufferSize=16384 , kvServiceEndpoints=1, viewServiceEndpoints=1, queryServiceEndpoints=1, ioPool=NioEventLoopGroup, coreScheduler=CoreScheduler, pack ageNameAndVersion=couchbase-java-client/2.0.3 (git: 2.0.3)}

      Jan 15, 2015 3:35:15 PM com.couchbase.client.core.node.CouchbaseNode$5 call

      INFO: Connected to Node 127.0.0.1

      Exception in thread "main" com.couchbase.client.java.error.TranscodingException: Could not decode cluster info.

      at com.couchbase.client.java.cluster.DefaultAsyncClusterManager$3.call(DefaultAsyncClusterManager.java:134)

      at com.couchbase.client.java.cluster.DefaultAsyncClusterManager$3.call(DefaultAsyncClusterManager.java:104)

      at rx.internal.operators.OperatorMap$1.onNext(OperatorMap.java:55)

      at rx.internal.operators.OperatorMerge$InnerSubscriber.emit(OperatorMerge.java:635)

      at rx.internal.operators.OperatorMerge$InnerSubscriber.onNext(OperatorMerge.java:545)

      at rx.internal.operators.NotificationLite.accept(NotificationLite.java:150)

      at rx.internal.operators.OperatorObserveOn$ObserveOnSubscriber.pollQueue(OperatorObserveOn.java:189)

      at rx.internal.operators.OperatorObserveOn$ObserveOnSubscriber.access$000(OperatorObserveOn.java:65)

      at rx.internal.operators.OperatorObserveOn$ObserveOnSubscriber$2.call(OperatorObserveOn.java:153)

      at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:47)

      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:482)

      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:345)

      at java.util.concurrent.FutureTask.run(FutureTask.java:177)

      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:189)

      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:303)

      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1121)

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614)

      at java.lang.Thread.run(Thread.java:779)

      Caused by: com.couchbase.client.deps.com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'Unauthorized': was expecting

      ('true', 'false' or 'null')

      at [Source: Unauthorized; line: 1, column: 25]

      at com.couchbase.client.deps.com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1419)

      at com.couchbase.client.deps.com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:508)

      at com.couchbase.client.deps.com.fasterxml.jackson.core.json.ReaderBasedJsonParser._reportInvalidToken(ReaderBasedJsonParser

      .java:2300)

      at com.couchbase.client.deps.com.fasterxml.jackson.core.json.ReaderBasedJsonParser._handleOddValue(ReaderBasedJsonParser.jav

      a:1459)

      at com.couchbase.client.deps.com.fasterxml.jackson.core.json.ReaderBasedJsonParser.nextToken(ReaderBasedJsonParser.java:683)

      at com.couchbase.client.deps.com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:3090)

      at com.couchbase.client.deps.com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3036)

      at com.couchbase.client.deps.com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2146)

      at com.couchbase.client.java.transcoder.JsonArrayTranscoder.stringToJsonArray(JsonArrayTranscoder.java:76)

      at com.couchbase.client.java.cluster.DefaultAsyncClusterManager$3.call(DefaultAsyncClusterManager.java:108)

      ... 17 more

      Caused by: rx.exceptions.OnErrorThrowable$OnNextValue: OnError while emitting onNext value: com.couchbase.client.core.message.config

      .BucketsConfigResponse.class

      at rx.exceptions.OnErrorThrowable.addValueAsLastCause(OnErrorThrowable.java:98)

      at rx.internal.operators.OperatorMap$1.onNext(OperatorMap.java:58)

      Attachments

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

        Activity

          People

            jdillon Jeff Dillon (Inactive)
            jdillon Jeff Dillon (Inactive)
            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