Questions tagged [java-client]

134 questions
2
votes
3 answers

How can I store and update the nested json object into couchbase using java sdk

I am using couchbase Community Edition 5.0.1 and java-client 2.7.4. I want to store the following nested json object into couchbase. If I want to update the same object without affecting the other fields. Eg: If I want to add one more player…
SST
  • 2,054
  • 5
  • 35
  • 65
2
votes
1 answer

How to capture error while using CouchbaseAsyncCluster.openBucket call

I have the following code that creates Couchbase cluster and tried to open a bucket. The name given to the bucket is a wrong name. I want to capture the error since the bucket does not exist. Using java client version 2.7.6 and Java…
Tusshu
  • 1,664
  • 3
  • 16
  • 32
2
votes
1 answer

Exclude a user with realm-management role from keycloak's password policy

I have a user with Client Roles realm-management in a realm which contains password policy. I want to exclude this user from the password policy since I use this user to do some operation fetch the roles get all the user via Java API and I don't…
Noa
  • 315
  • 1
  • 7
  • 31
2
votes
2 answers

Appium:java.lang.NoSuchMethodError: com.google.gson.GsonBuilder.setLenient()Lcom/google/gson/GsonBuilder;

I am getting the above error while trying to run an appium test. The jars I use are: The jars in my lib folder: My app is coming up after driver = new AndroidDriver<>(new URL("http://127.0.0.1:4723/wd/hub"), caps); But in the next…
aswathy
  • 139
  • 2
  • 16
2
votes
3 answers

Couchbase partial update not working as expected

I am doing partial update of a couchbase document as follows: ... MutateInBuilder builder = bucket.mutateIn(id); for (Map.Entry entry : map.entrySet()) { builder = builder.upsert(entry.getKey(),…
user3911119
  • 273
  • 3
  • 14
2
votes
3 answers

Apple Reporter returns "Invalid username and password" with valid credentials

I've been using Apple Reporter for several weeks without issue, but yesterday (7/20/2017) all my calls fail unexpectedly. My token is valid, I've refreshed and replaced it and setup a new account as an additional test. I can find no status or…
2
votes
0 answers

longPress with element and coordinates not working properly

I am new to the automation testing (Selenium Grid and appium) in mobile devices (android) and I am facing a problem with longPress action in a physical android device (Samsung Galaxy S5). When i call longPress(WebElement el, int x, int y) it seems…
Marina K.
  • 21
  • 2
2
votes
2 answers

Java: Any need to use sync gateway in web application for communicating with couchbase server?

I am new in couchDB database. I am trying to connect couchbase server using JAVA client, but I am confused in Couchbase sync gateway. My question is, Couchbase sync gateway is only for mobile application or can we use for web application? is this…
2
votes
1 answer

Aerospike - Scans with “done(abandoned-unknown)” status

Once I updated aerospike server and java client I am having a strange status "done(abandoned-unknown)" on aql > show scans When query a set with a few registries is having a "done(ok)", but when query a bigger set is having the…
Javier Salinas
  • 617
  • 6
  • 15
1
vote
0 answers

Elasticsearch: Using Ingest pipeline for update document

Our service is written in Java and uses Elasticsearch Java client version 7.10.1. We are using an ingest pipeline called "date index name processor" in order to determine our indexes names. We have 2 types of events: index and update. index event:…
1
vote
2 answers

spec.rules[0].http.backend.servicePort: Invalid value: \"80\": must contain at least one letter or number(a-z,0-9)", Error - createNamespacedIngress()

spec.rules[0].http.backend.servicePort: Invalid value: "80": must contain at least one letter or number (a-z, 0-9)", Error while calling NetworkingV1beta1Api.createNamespacedIngress() api I am using io.kubernetes:client-java-api:12.0.1 version as a…
1
vote
1 answer

Appium application is giving null pointer exception if using two or more classes in testng.xml

Appium application is giving null pointer exception if using two or more classes in testng.xml Attached are the codes below. If I use any one of the class in testng.xml file, it works fine. But if I define both the classes in testng.xml file, it…
1
vote
1 answer

HttpResponseException: Forbidden while trying to call create job in jenkins through java

I am using this maven library to connect to Jenkins : com.offbytwo.jenkins jenkins-client 0.3.8 Then I tried to get all Jobs available in Jenkins and I…
Kumar
  • 955
  • 5
  • 20
  • 50
1
vote
5 answers

Android phone: How to simply open an application without installation (as it is already installed) using Appium

Scenarios to automate is: I installed an application and logged in successfully. There is an "App Lock" feature which closes the application. I clicked on App Lock and application is closed. Now, I need to open application again without installing…
1
vote
1 answer

Being too stupid to implement Appium Java client into Android Studio Project

I recently started coding my really first android project using Android Studio 3.1.2 and SDK 19 (Android 4.4). When I came across testing I want to automate my UI-tests, which I plan to write with the java client of Appium (the server will be set up…
procra
  • 535
  • 4
  • 29
1
2
3
8 9