我在尝试根据视图检索文档时遇到问题。
import java.util.Arrays;
import java.util.Scanner;
class Demo
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
System.out.print("Enter total number of elemets: ");
int total = sc.nextInt();
int[]arr1 = new int[total];
int[]arr2 = new int[total];
System.out.print("Enter elemets: ");
for(int i = 0; i<total; i++)
{
arr1[i]= sc.nextInt();
}
System.out.print("Original Array: " +Arrays.toString(arr1));
System.out.println();
for(int a = 0 ; a< total; a++)
{
for(int j =total-a-1; j>=0; j--)
{
arr2[a]= arr1[j];
break;
}
}
System.out.print("Reversed Array: " +Arrays.toString(arr2));
}
}
例外:
result = bucket.query("view","view", limit=1, streaming=True)
for row in result:
bucket.replace("aass_brewery-juleol", row.docid)
存储桶在couchbase.exceptions._AuthError_0x2 (generated, catch AuthError): <Key=u'aass_brewery-juleol', RC=0x2[Authentication failed. You may have provided an invalid username/password combination], Operational Error, Results=1, C Source=(src/multiresult.c,309)>