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

Using BucketTool helper - error in connection to the server, bucket creation, deletion.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.1-beta
    • Fix Version/s: 1.1.2
    • Component/s: Core
    • Security Level: Public
    • Labels:
      None

      Description

      BucketTool is not behaving properly to create default bucket and connect to the server.
      Error received while running CouchbaseClientTest using the initClient method which is overridden -

      java.lang.RuntimeException: Http Error: 401 Reason: Unauthorized Details: No reason given
      at com.couchbase.client.ClusterManager.checkError(ClusterManager.java:300)
      at com.couchbase.client.ClusterManager.listBuckets(ClusterManager.java:186)
      at com.couchbase.client.BucketTool$1.callback(BucketTool.java:73)
      at com.couchbase.client.BucketTool.poll(BucketTool.java:108)
      at com.couchbase.client.BucketTool.deleteAllBuckets(BucketTool.java:84)
      at com.couchbase.client.CouchbaseClientTest.initClient(CouchbaseClientTest.java:60)
      at net.spy.memcached.ClientBaseCase.setUp(ClientBaseCase.java:72)
      at junit.framework.TestCase.runBare(TestCase.java:132)
      at junit.framework.TestResult$1.protect(TestResult.java:110)
      at junit.framework.TestResult.runProtected(TestResult.java:128)
      at junit.framework.TestResult.run(TestResult.java:113)
      at junit.framework.TestCase.run(TestCase.java:124)
      at junit.framework.TestSuite.runTest(TestSuite.java:232)
      at junit.framework.TestSuite.run(TestSuite.java:227)
      at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
      at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
      at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

      1. log.txt
        222 kB
        Deepti Dawar

        Issue Links

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

          Activity

          Hide
          daschl Michael Nitschinger added a comment -
          Show
          daschl Michael Nitschinger added a comment - This is addressed in http://www.couchbase.com/issues/browse/JCBC-225
          Hide
          deeptida Deepti Dawar added a comment - - edited

          The resolution for these two issues should be similar as there is still a timeout issue that is appearing for the remotely hosted server.

          Show
          deeptida Deepti Dawar added a comment - - edited The resolution for these two issues should be similar as there is still a timeout issue that is appearing for the remotely hosted server.
          Hide
          deeptida Deepti Dawar added a comment -

          The problem still exists for the remote VMs. If I run the same test on the local server, then it passes.
          I am linking this issue to the JCBC-189.

          Show
          deeptida Deepti Dawar added a comment - The problem still exists for the remote VMs. If I run the same test on the local server, then it passes. I am linking this issue to the JCBC-189 .
          Hide
          daschl Michael Nitschinger added a comment -

          Is this still an issue for you?

          Show
          daschl Michael Nitschinger added a comment - Is this still an issue for you?
          Hide
          deeptida Deepti Dawar added a comment -

          Attaching the log extracted from the 'ant test' run.
          The error is different but the same test is still failing.
          Not able to run CouchbaseClientTest.

          Show
          deeptida Deepti Dawar added a comment - Attaching the log extracted from the 'ant test' run. The error is different but the same test is still failing. Not able to run CouchbaseClientTest.

            People

            • Assignee:
              daschl Michael Nitschinger
              Reporter:
              deeptida Deepti Dawar
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes