Questions tagged [java-client]
134 questions
0
votes
0 answers
Kubernetes Java Client getting "Unauthorized 401" response
I'm creating Java API client to connect to a cluster and list the pods,but I'm getting the "Unauthorized" exception every time I try to execute it.
Here is my local project:
import io.kubernetes.client.openapi.ApiClient;
import…

marjan
- 3
- 4
0
votes
0 answers
Java k8s client app, getting java.lang.NumberFormatException: null
I created one mini Java app project for listing all the pods, but I'm getting java.lang.NumberFormatException: null exception.
Full exception:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP)…

marjan
- 3
- 4
0
votes
0 answers
How we can use bulk apis in elasticsearch 8.x java sdk
I don't see any documentation regarding bulk operations in elasticsearch 8 java sdk client.
How older bulk operation codes can be refactored with new version of elasticsearch-8 java sdk?

satyam mishra
- 111
- 1
- 6
0
votes
1 answer
Java - How to Swipe - AndroidDriver
i trying to swipe up inside my android app.
But its not working. I using java-client-8.0.0 and Selenium-server-4.1.2
I tryied allready:
TouchAction ta = new TouchAction(driver);
PointOption poStart = new PointOption();
PointOption poEnd = new…

CErdtmann
- 1
- 3
0
votes
1 answer
how to update env variables in kubernetes deployment in java?
I want to restart deployment pod by patching ENV variable in deployment. Here is my code:
String PATCH_STR = "[{\"op\":\"replace\",\"path\":\"/spec/template/spec/containers/0/env/8/UPDATEDON\",\"value\": \"%d\"}]";
final String patchStr =…

Pushpendra
- 55
- 8
0
votes
2 answers
AppiumFieldDecorator is not working with POM
I am trying to automate with Appium, TestNG and Maven. I am getting errors while initializing the page object model. An error log is attached with this. Tried many ways, but no luck. It would be great if anyone know where I am doing…

Nisha
- 41
- 3
0
votes
1 answer
Java rest client call elastic search after enable https
everyone , I am using elasticsearch 6.8.22 and I need to enable the https for it
I have done setting of secure the elasticsearch and can connect to https://localhost:9200/_cat/indices?v , it require user login , then I already set the user password…

mres
- 53
- 2
- 6
0
votes
1 answer
JAVA socket closed down before it Accepts data
I am unable to send data from the server(python) to the client (android java). Java client socket gets shutdown before it accepts data from the server.
no Error on the Python side it sends data as well but the java client socket is closed and…

Ayaz
- 67
- 1
- 9
0
votes
1 answer
Is it possible to re-use GraphTraversal object to build query chain?
I know that you can do this to add multiple vertices in a single transaction
g.addV(...).addV(...).addV(...).iterate();
But is there a way to re-use the GraphTraversal object to construct the query chain using a loop to add multiple vertices in a…

DrakeX
- 27
- 4
0
votes
0 answers
Pulsar: got Connection refused while trying get started with Java client
I'm trying to get started with Pulsar (source: https://pulsar.apache.org/docs/en/client-libraries-java/)
in Intellij IDEA, but I'm facing with a problem: I can not create a producer because of client uses port. I supose that the mistake is very…

notAprofessional
- 1
- 1
0
votes
1 answer
Directions API Crashes the Application on Smartphone and BlueStacks but Not on Android Studio Emulator
I am using Java client library for Google Maps API Web Services to draw routes between two points. it works fine on Android Studio's Emulator but crashes on Blue Stack and my Smartphone.
I have created Maps Activity from project Templates, only…
0
votes
1 answer
How to set environment variables (Map) for docker container while creating pod in kubernetes cluster using java?
I am trying to create Pod in kubernetes cluster to start the docker image. I used client-java version 8.0.0 to create pod cluster. I used this doc kubernetes-client to create Pod cluster. But I couldn't set the environment variables for docker…

SST
- 2,054
- 5
- 35
- 65
0
votes
1 answer
c# wcf service how to consume call java client
../Iservice1.cs/
public interface IService1
{
[OperationContract]
Int32 Add(Int32 Num1, Int32 Num2);
}
../Iservice1.svc.cs/
public class Service1 : IService1
{
public Int32 Add(Int32 Num1, Int32 Num2)
{
…

Angelia
- 1
- 3
0
votes
1 answer
No effect in setting proxy to AuthenticationContext in KeyVaultClient java
I want to run my Java code to read Azure KeyVault with proxy in Windows server.
I've gone through many posts but could find any working solution. Mostly given for c# but I want for Java. My code is working fine in my local machine but when I'm…

San4musa
- 277
- 2
- 12
0
votes
2 answers
Horizontal swipe using co-ordinates in appium java client 7.0.0
I am trying to swipe horizontally in appium android - java-client 7.0.0. It doesn't work
//Horizontal Swipe by percentages
public void horizontalSwipeByPercentages(double startPercentage, double endPercentage, double anchorPercentage) {
…

Akbar
- 68
- 1
- 10