[JCBC-176] Using BucketTool helper - error in connection to the server, bucket creation, deletion. Created: 09/Dec/12  Updated: 31/Jan/13  Resolved: 31/Jan/13

Status: Resolved
Project: Couchbase Java Client
Component/s: Core
Affects Version/s: 1.1-beta
Fix Version/s: 1.1.2
Security Level: Public

Type: Bug Priority: Major
Reporter: Deepti Dawar Assignee: Michael Nitschinger
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File log.txt    
Issue Links:
depends on JCBC-189 Views having odd timeout issues on so... Closed
duplicates JCBC-225 ClusterManagerTest - Handle failure i... Closed

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)

Comment by Deepti Dawar [ 10/Dec/12 ]
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.
Comment by Michael Nitschinger [ 19/Dec/12 ]
Is this still an issue for you?
Comment by Deepti Dawar [ 20/Dec/12 ]
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.
Comment by Deepti Dawar [ 20/Dec/12 ]
The resolution for these two issues should be similar as there is still a timeout issue that is appearing for the remotely hosted server.
Comment by Michael Nitschinger [ 31/Jan/13 ]
This is addressed in http://www.couchbase.com/issues/browse/JCBC-225
Generated at Fri Oct 31 02:51:20 CDT 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.