Category "java"

How to add classpath in new version of Android Studio

I updated my android studio version to bumblebee version. Now I want add navigation component to my project. I want add classpath to gradle, but this file gradl

Stream, return value of characters that didn't pass the filter

I would like to count the characters that didn't pass the filter, and return this value too. How can i do that? My exc: Within class LambdasStreamExercise, impl

Flink Avro Error Expecting type to be a PojoTypeInfo

I'm trying to convert a HashMap<String, Object> to an Avro record. I get this runtime exception when I do a DataStream<AvroRecord> dsRpvSchema = fil

Android studio SQLite update ID's after deleting first row from table

i'm using SQLite to store data and if i delete the last row, ID is 4 and after that add a new row and the ID is 5 and it should be 4. And when trying to view th

java.lang.IllegalArgumentException: Multi-value reactive types not supported in view resolution: reactor.core.publisher.Flux<MyPojo>

Small question regarding Java + SpringBoot Webflux please. I have a small handler returning a Flux<MyPojo> If I build a controller as such (please note th

EDI to XML Huge file conversions

I am converting an EDI file to XML. However my input file which happens to also be in BIF is approximately 100Mb is giving me a JAVA out of memory error. I trie

Is there a way to return collection instead of entity in @Repository's @Query

I have a query: @Query( value = "select name, age, now() from received.scheme ;", nativeQuery = true ) public {???} selectData() I cannot create or r

file from one node to another node?

I would like to add a database to it so that the information is stored.

Java Swing - How can I make a frame "mandatory to interact with"?

I'm making a game in Java Swing. Every time the player levels up I display a new frame on top of the one containing the gameplay which has some options on what

Remove item from Nested list Java Stream

I'll appreciate some help with this please. Assuming I have "bookingId": 4, "flights": [ { ... "fl

How to get group and group attributes in Keycloak

I am using Spring Boot, Bitnami/Keycloak:latest, java 11. I want to get the group and group attributes before the request reaches the controller because I need

What is a NullPointerException, and how do I fix it?

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them? What methods/tools can be used to determine the cause

is there a way to create a java class lombok field with a period or other custom character?

How can I make a field name have a period in it? Why? Because this eventually gets translated into JSON that is passed to a service, and the field needs to have

Selenium, default values assigned to web elements instead of the ones i am search for

I am sending text to an input field then within the array of elements searching for specific by checking if element text equal street address As you can see i

Is it possible to make java project that use another library which implements AOP using aspectj mave plugin to use the annotations from the library?

I have java library that I created which implements AOP using AspectJ runtime and AspectJ maven plugin. The AspectJ point cut is getting triggered when I add th

How can I change a value in a set method depending on a boolean's answer in Java?

I'm trying to change the VAT rate of an item depending if it's a luxury item or not. I've tried using an if inside of my set method but it only uses the pre-set

How can I get N smallest number in an array?

I'm trying to get the N smallest numbers (given by the user) in an array without using methods like sort()... in the last step, I keep getting only the smallest

error gradle when update to bumblebee android studio version

today, i update to bumblebee android version, and i create new project and i import some lib, include dagger-hilt. in build.gradle (module) i insert: plugins {

Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified

App crashes at runtime with the following error : java.lang.IllegalArgumentException: maa.abc: Targeting S+ (version 31 and above) requires that one of FLAG_IM

Can I set readOnly false when I use findById with JPA

I have a problem with modifying data while setting database replication Before DB replication, I get data that I want to modify using repository.findById() and