Category "java"

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

Hashmap values always being overwritten to last looped value

I cannot figure out why my HashMap keeps over writing all of my key/value pairs with the last ip address the method reads. Basically we are meant to store all o

Azure Storage Blob: Uploaded CSV file shows zero bytes

This problem I am facing in title is very similar to this question previously raised here (Azure storage: Uploaded files with size zero bytes), but it was for .

JAXB - Unmarshalling of abstract classes (InstantiationException)

I know, that it might seem that this question is a duplicate of this one: InstantiationException during JAXB Unmarshalling (abstract base class, with @XmlSeeAls

No main manifest attribute, in executable jar

while running my jar I receive the below error No main manifest attribute, in jar I have followed some of the solutions provided here but it did not solv

JAVA_HOME is not valid when trying to start NIFI

Running on a mac. Just downloaded JAVA 1.8.0_311 in order to run nifi 1.14.0. I am following instructions from a book that instructs me to set the environment

Spring boot (.2.3.0.RELEASE) with bucket4j rate limit not working

I am trying to use limit rate API for a Spring Boot Rest application, with bucket4j based on the following online resource Please find my configuration below: B

Retrieve exchange token

Working on an Azure AD-based authentication using OAuth2 and its On-Behalf-Of authentication flow. I am wondering how to actually check the token comparison bet

Firestore Paging Adapter- How to know if query returns 0 results

I'm using firestore paging adapter to populate my RecyclerView with data from Firestore, if collection in Firestore is empty I would like to show a TextView to