Category "java"

SQLITE_BUSY The database file is locked

I'm getting the error [SQLITE_BUSY] The database file is locked (database is locked), even though I close my connection and the statements. Not sure what else

How to search for all records of of type CustomRecordType in Netsuite?

I am trying to get all the records related to a custom record type. How to do it in Netsuite SOAP? Also is there a way to search records of that custom record t

What is the fastest way to split Integer into digits?

I do a lot of operations with splitting numbers into separate digits, putting digits in ArrayList and passing this digits one by one to other ArrayList for furt

Gremlin HasStep label condition on vertex or edge

Is there any way to find out if hasLabel() step is applied on vertices or edges? I know we can keep track of it while iterating through all the steps in recursi

How to generate a logstash event within a custom java filter plugin after timeout?

I want to correlate messages sending to logstash within a filter and send them to the next filter of logstash inside the pipeline. However I have successfully s

Is it possible to create keycloak policy enforcer resources with same url?

I want to use keycloak policy enforcer to authorize requests for resources of my app. But, some resources need to have same urls. In example, there are two role

TLS_DHE_RSA_WITH_AES_128_CCM support

I am getting below error when trying to run a server with TLS_DHE_RSA_WITH_AES_128_CCM: java.lang.IllegalArgumentException: Unsupported CipherSuite: TLS_DHE_RSA

Java Stream a Large SQL Query into API CSV File

I am writing a Service that obtains data from large sql query in database (over 100,000 records) and streams into an API CSV File. Is there any java library fun

Jetty17 --add-opens option does not work, java.lang.IllegalAccessError

I use Java 17 with Jetty 11.0.9. I started Jetty with the following command java --add-opens=java.base/java.lang=ALL-UNNAMED -jar start.jar Then I am facing ex

Spring Boot MongoDB the field with version annotation does not increment

This question asked several times before, but the answers in these questions didn't work for me. This is my Book document @Document @NoArgsConstructor @ToString

Spring Cloud Stream - Is there a way to customize the StreamThread thread name?

I'm using Spring Cloud Stream (Kafka as the binder) in my current project and the default thread name for StreamThread keeps me bothered as it is very long. Her

Appending to a TextArea from multiple threads on JavaFX [duplicate]

I am currently creating a program that utilizes multithreading. In each thread, it appends to a TextArea. I've come upon an error that I belie

Java 17 with Maven Wrapper results in Unrecognized VM option 'MaxPermSize=512m'

I use OpenJDK 17 with Maven Wrapper 3.8.2 from Spring Initializr (Maven project, JAR packaging, Java 17, Spring Boot 2.6.0). No additional dependencies. user@D

What is the use of Condition along with Lock in Java

I am trying to understand what is the use of doing condition.await() if I am already doing lock.lock() If I understood locks correctly, once I do lock.lock() it

How can an object reference in java hold the reference to a primitive double dimensional int array [duplicate]

I have a piece of code- public class Sudoku { static int[][] game; public static void main(String[] args) { int [][] games= n

How can I do a loop "do/while" to insert some data to Postgres Database?

I did this class to do the inserts but every time I need insert again, I need initialize the method main of this class again. Because it is in just one cycle. p

How do I fix a NotSerializable exception

I have a program called Agent that launches a thread called BeaconSender: public class BeaconSender extends Thread { private Beacon beacon; private

Adding 2 or more Actions on L2switch for OpenDaylight Sodium-SR4

I am working with L2switch (https://github.com/opendaylight/l2switch). In flow writer (https://github.com/opendaylight/l2switch/blob/master/l2switch-main/src/ma

how to ref version catalog in apply block

I want to declare in the apply block of the parent module's build.gradle file to apply the plugin to eligible submodules(use the version catalog at the s

How do I create a Java string from the contents of a file?

I've been using the idiom below for some time now. And it seems to be the most wide-spread, at least on the sites I've visited. Is there a better/different way