Category "java"

package javax.servlet does not exist | package jakarta.servlet does not exist

javac -classpath "/opt/tomcat/lib/servlet-api.jar" /opt/tomcat/webapps/ROOT/WEB-INF/classes/NewServlet.java I have tried replacing the javax.servlet with "jaka

Accessing json value using jsonpath?

I'm following the tutorial for using jsonpath (https://www.baeldung.com/guide-to-jayway-jsonpath) and using the endpoint https://api.binance.com/api/v3/exchange

How to export backup of Cloud SQL database in Google Storage?

I have a GAE project and for that to store the data i have used Cloud SQL database. I need to take on demand backup of my Cloud SQL database and the backup sho

Query through all provided schemas

I have kind of 'restaurant app' with multi tenant architecture. Each Tenant in short words have their Order table where I keep all data regarding orders which w

Meaning of Long in JPARepository?

What is Long here and what on basis do we configure this in JpaRepository? public interface FirstRepository extends JpaRepository<First, Long> { }

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