Category "java"

Coinbase Api Java POST request "Invalid Signature"

I am trying to send a POST request to the coinbase sandbox endpoint. When signing the request I always get an "Invalid Signature" response. It seems that coinba

Java Hibernate Different Behavior between starting jar from console and explorer with double click

In my JavaFx project I use Hibernate to connect to a local Postgresql database. In Intellij the project runs and the connection works. Also when I start the for

Android Studio Failed to resolve: org.junit.jupiter:junit-jupiter:

When i try to sync my project or run a unit test it shows me the following error: Failed to resolve: org.junit.jupiter:junit-jupiter: Affected Modules: app Thes

How to switch to a new window in through Selenium

I have 1 3rd party integration as Paypal. When I will click on Place Order button it will navigate me from Place Order page to paypal page. Can you please let m

Shell script running Openssl command fails with ProcessBuilder

I have the following shell script Script #! /bin/sh set -ex cp /tmp/untouched_input_backup /tmp/untouched_input #sign the digest cp /tmp/untouched_input_back

Connect to Kafka running in Docker

I setup a single node Kafka Docker container on my local machine like it is described in the Confluent documentation (steps 2-3). In addition, I also exposed Z

Import Maven projects automatically checkbox dissapear in IntelliJ EAP

I use to use IntelliJ, lately I have updated to IntelliJ EAP now the checkbox "Import Maven projects automatically" has dissapeard , so every time I add a new

android app flip layout when I change language [duplicate]

I created an app on android studio using java. I have a problem that when I change the language From English to Arabic the app flips 180 degre

405 Method not allowed despite exposing all methods when using RepositoryRestConfiguration.disableDefaultExposure()

I don't want to expose my repositories by default and it looks like RepositoryRestConfiguration.disableDefaultExposure() does exactly what I want; however I get

Why is Mutiny call method blocking

just get started with Mutiny, working through the guides (https://smallrye.io/smallrye-mutiny/guides). And as far as I read in the docs, the call method is asyn

Determine Android device performance programmatically

I want to run different lines of code for android devices with different performance. For example something like this: if (isHighPerformanceDevice()) { // r

How to integrate find-sec-bugs in spotbugs?

Recently I downloaded the findsecbugs-plugin-1.11.0.jar in order to use it in spotbugs. I copied this jar file to the folder plugin of the project spotbugs(4.1.

Flink TaskManager not reconnecting to the new Jobmanager

I have configured Flink in HA mode as mentioned here: I wanted to test the fault tolerance, hence I did the following: Setup Flink cluster with 2 JobManagers

Display Glitch in Cytoscape

I have installed the latest version of Java as well as Cytoscape. Whenever I open Cytoscape, there seems to be a display bug or glitch after around 2-3 minutes

Is there a way to use an XML file to run Selenium tests?

I have a selenium test with over 100 lines of findElement, click(), sendKeys().... Is there a way I can create an XML or text file of the different parameters a

How large should my list of objects be to warrant the use of java 8's parallelStream?

I have a list of objects from the database and i want to filter this list using the filter() method of the Stream class. New objects will be added to the databa

Kafka authentication with Jaas config

I have set up my Kafka jaas config as an external bean in my spring boot application to read my configuration from my application.yaml file. But I am facing an

JavaFX: How to make a VBox and it's contents expand infinitely with window height like they do with width?

Probably a very simple question but I have not been able to figure it out. I have a ScrollPane (feat. Label) inside a VBox, inside a SplitPane: (Full fxml fil

How do I compare strings in Java?

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals()

How to build cordova project with Kotlin

I have a cordova project folder www already in progress. Build this and you will have an Android project. This will create a MainActivity.java file. I don't