Category "java"

Duplicated class Koin org.koin and io.insert-koin

I'm using two library that have dependencies of two different versions of Koin. One of the library has org.koin:koin-android:2.0.1 and the other has io.insert-k

too many org.mongodb.driver.connection: Opened connection for document DB

We have developed an Arest application that uses document DB to store/retrieve user data. MongoClientSettings settings = MongoClientSettings

make repository mutually exclusive in springboot

Is there a way to make a repository mutually exclusive i.e two concurrent values not update the same document in Springboot. My code structure is. //func(versi

Using PowerMock in JDK 16

Java reflection is becoming more and more restricted: Up to Java 8 all operations are allowed Starting from Java 9 to 15 you are still able to perform the opera

Want to compare Timestamps in Drools

I am to receive a timestamp value and want to check it agains the current timeStamp value to make sure that the value I am getting is less of before the current

How to do a get request to SpringBoot java with an Array<Array<string>>?

I am doing a get request in angular with typescript and here it is: this.http.get("http://localhost:8080/data-management/data-users/getAllGeneralInfoCV/"+this.l

Firebase Query in Android returns random number of items altough multiple items match the query

I am using the Firebase Realtime database and I constructed a query for the node "Orders" which should return all items whole attribute "orderID" is equal to 2.

Generate P2SH bitcoin address from WIF in BitcoinJ Java

I'm trying to create P2SH-Segwit bitcoin address from the WIF private key. I'm using the BitcoinJ library in Java. See the following code. String base58PrivateK

how to update json array in java with existing json array value using java. Value are not updating in external json file

JSON file: [ { "name":"John", "city":"Berlin", "job":"Teacher" }, { "name":"Mark", "city":"Oslo", "job":"Doctor" } ] JSONParser parser = new JSONParser(); JSONA

If s3==s4 is false, then how come s1==s2 becomes true? [duplicate]

I am very wondering after executing the below java code. public class HelloWorld { public static void main(String...strings) { String s3

liquibase.exception.DatabaseException: ORA-01950: no privileges on tablespace 'VMSS_TBS'

Initially I was getting this exception while starting my service An attempt was made to call a method that does not exist. The attempt was made from the followi

Log4j2 + AWS JAVA LAMBDA + CLOUD WATCH LOGS

I am using the following configurations in my code but cloudwatch logs are not getting generated. Log4j2.xml is present in main/resources. I am following the AW

When I Update my Phone to Android 12, Installation did not succeed. The application could not be installed: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED

I was working on my project perfectly since I Update my phone to Android 12 unfortunately when I run the project to my phone this Error appears: Installation d

Keep data in ListView after refresh - Android Studio

I have a Main Activity and PersonListView Activity. In Main Activity, there are some input text and when click save button, it will send data and save to listvi

"no_valid_keys_or_signatures" Error Calling DocuSign API through Java SDK for OAuth 2.0 Authentication

I am upgrading our application's authentication method into the DocuSign API from the DocuSign Legacy Authentication to the JWT Grant OAuth 2.0 Authentication.

Azure build error: "Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8"

When building Flutter app in azure devOps, I receive this error: Build file 'D:\a\1\s\android\app\build.gradle' line: 24 * What went wrong: A problem occurred

Distribute cache between Pods in Kubernetes with Hazelcast in Spring boot application

I have a Spring boot application with Hibernate L2 cache enabled. I integrated Hazelcast as cache provider for Hibernate. My application runs on Kubernetes and

Why cant you subract a value from a for loop within an 2DArray but works vice versa(Adding a value to the 2DArray)?

Just like the game minesweeper I want the "O"s to change to "1"s if the borders are next to the "X"s, the board[i][j] will only change to "1"s if and only you a

Breadth-first traversal of a tree of slider puzzle configurations java

I need help with my PuzzleSolver class. I get a notice saying Note: SliderPuzzleSolver.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:u

How convert/adapt ByteObjectHashMap to a JDK Map?

Primitive maps don't seem to implement java.util.Map. If I have a function, accepting JDK Map as an argument and now want to pass eclipse collection implementat