Category "java"

WSO2 IdendityServer throwing ThreadDeath Exception

I start the server using the ./wso2server.sh start command but after a few hours the server stops responding and throws a ThreadDeath exception. I tried modifyi

After Java update to the version 1.8.0_301 JavaFX WebView with Leaflet.Draw.Circle, Leaflet.Edit.Circle does not work as well as OSM is not draggable

I am using JavaFX Webview with Leaflet library to render OSM tiles. I am running into issues with Circles and Polygons, Marker and with some functions as Editt

How to generate curve25519 key pair for diffie hellman algorithm?

I want to implement ECDHE algorithm in my project ,for that I want to use Curve25519.But stuck how to generate key-pair for Curve25519.With other curve I am abl

Aeron Archive - extend existing recording

I have an Aeron Archive and want to extend the existing recording, i.e. that it continuse to append messages after the service restart. I wasn't able to find an

Replacement for Hibernate's deprecated Type annotation?

Upon upgrading to Hibernate 5.6.0.Final, I found that org.hibernate.annotations.Type is now deprecated. I use this annotation in many of my entities, including

Uploading files Kotlin Spring Boot

So, I am trying to make and upload file(s) functionality, from some blog posts and stackoverflow questions I got this solution: @PostMapping("/file/upload") fun

How do I reverse a string in java by creating a new temporary string?

What's the error in the following code? I am not able to identify it shows the index 0 out of bounds exception. public class stringBuilders{ public static v

Uploading files Kotlin Spring Boot

So, I am trying to make and upload file(s) functionality, from some blog posts and stackoverflow questions I got this solution: @PostMapping("/file/upload") fun

Correct the classpath of your application so that it contains compatible versions of the classes org.springframework.boot.SpringApplication

I recently upgraded by sprint boot to 2.6.6 following a RCE vulnerability. However, now I application isn't starting with error: APPLICATION FAILED TO START Des

Java 17 Update - Cannot find key of appropriate type to decrypt AP-REQ - RC4 with HMAC

I have a productive Java application using Kerberos for SSO. After I update Java from version 16 to 17, I run into the following Error: Cannot find key of appro

Dropwizard: 1.X - can I get cross-parameter method validation to work?

Annotation: @Target({METHOD, CONSTRUCTOR, PARAMETER, FIELD}) @Documented @Constraint(validatedBy = AtLeastOneNotNullValidator.class) @Retention(RUNTIME) public

maven-shade-plugin doesn't replace the original jar

It is weird that my maven-shade-plugin doesn't replace the original jar with the shaded jar. Does anyone know what could be the reason? Here's my plugin in pom.

JUnit tests fails on GitHub Actions but not locally

I am trying to run JUnit tests on GitHub Actions but some of it fails. Locally all tests passed. On my PC I am using Ubuntu 20.04 with OpenJDK 1.8 (275), on CI

How to map elements to their index using streams?

I get a stream of some custom objects and I would like to create a map Map<Integer, MyObject> with index of each object as key. To give you a simple examp

Results of group by null values are lost

I have table which has productId and productVariantId columns. |id |userId|productId|productVariantId| ---------------------------------------- |1 |1

"E/Perf: getFolderSize() : Exception_1 = java.lang.NullPointerException: Attempt to get length of null array" error

I am trying to create an app which downloads and plays music. For stopping users from copying the music files, I want to encrypt the file as soon as it is downl

AccessibilityService on android studio doesn't work

i need to initialise an AccessibilityService with xml configuration, but the service doens't work... i don't understand why. can you help me ? code : manifest :

Exception cannot be converted to Throwable

I'm working on macOS with JDK8. In catch, I have to give the entire name of exception like in this case (ArithmeticException e) instead of (Exception e) to run

force maven to use different java version

I have my existing project that uses Java 1.8 My JAVA_HOME is set to Java 1.8 As a result maven is using Java 1.8 , which is fine Now our project has decided to

How to use Spring Converter for some controllers only?

I have c converter which works: public class StringToLongConverter implements Converter<String, Long> { @Override public Long convert(String sour