Category "java"

Java ERROR: package X is declared in the unnamed module, but module Y does not read it

I am trying to make my javafx project to create an Excel file. One of the first steps for it would be XSSFWorkbook workbook = new XSSFWorkbook(); for which to w

Spring Boot Exception evaluating SpringEL expression

ERROR 4904 --- [nio-8080-exec-1] org.thymeleaf.TemplateEngine : [THYMELEAF][http-nio-8080-exec-1] Exception processing template "index": An error happene

searching in arraylist always not found

no matter what I use indexof() or contains or .equals() changing everything to uppercase or to lowercase It always return false and not found can someone please

I'm trying to add a jsp page in my Spring Boot Aplication. My problem is that every time I try to go to that page I have this:

Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback. Tue Apr 26 16:10:15 IRDT 2022 There was an unex

About the use of JPA ElementCollection

I used the ElementCollection annotation on a List object, @ElementCollection(fetch = FetchType.EAGER) @CollectionTable( name = "a", joinC

MacOs Catalina 10.15.5 crashes and report gives no clue

I recently updated my MacOs from Catalina 10.15.4 to 10.15.5 (19F101). I use Android Studio as IDE to develop Android apps using Java programming language. So I

Adding a light to Sceneform node has no effect

I'm following the google developers guide on adding Light to a Node in SceneView: https://developers.google.com/sceneform/develop/build-scene Light spotLightYel

Which `Clock` implementation is the default in java.time?

The java.time framework built into Java 8 and later includes the Clock class. This class provides several variations useful for testing our date-time handling c

A difference between Mono.mapNotNull(....) and Mono.flatMap(Mono.justOrEmpty(....))

Being a novice to Project Reactor I'm trying to wrap my head around the documentation. However I still can't figure out if there any practical difference betwee

Spire Doc Free 3.9.0 not running in headless server

Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.spire.doc.packages.sprDGC at com.spire.doc.formatting.CharacterFormat.spr (Un

Hot Deploy Does Not Work For Java Class File Edits On Weblogic 12c

I'm using Intellij Community edition I don't have the luxurary of using the Ultimate edition; Hence, I can't install the weblogic plugin. When I make edits to a

JavaFX thread should wait for background thread but without freezing the UI (JavaFX)

I want my main thread to wait until the background thread completes. But, this makes my UI freeze. I want to achieve this without freezing my UI. Please help me

Convert @ sign from byte in GSM 7-bit encoding to Java text

I have given a byte array [97, 98, 0, 99, 100] which is GSM 7-Bit encoded. This should be converted into ab@cd. When I tried to append this given array into a

Truecaller like alert dialog in dart

I am trying to implement a true caller like alert dialog in flutter. Since I am very new to flutter+dart, I was looking for any out of the box implementation. S

How to calculate from a date to another date?

I am creating a workday calendar which calculates which date the workday ends. I have a code that sets daily worktime from e.g 8:00-16:00 (workDayStartStop). An

Mapstruct: Check for null for source before mapping to target

Mapstruct: Check for null for source before mapping to target. Require to throw a custom exception from mapstruct interface if the source is null.

Error when trying to create a model in PowerDesigner through Java

The actual code package OOM.src.createOOM; import org.eclipse.swt.internal.ole.win32.COM; import com.sybase.stf.powerdesigner.PdCommon.*; import com.sybase.stf

postman returning "status": 404, "error": "Not Found", for the spring boot

Thank you in advance, Hello I am new to spring boot. I am facing a problem with spring boot. When I run my URL in postman it shows an error below. I have also u

Assert two List have same subtypes in a certain order

I would like to check if two lists (let's say, ArrayLists) have exactly the same instance classes, based in an expected List. To do so, I have built the next me

java.lang.IllegalStateException: enterPictureInPictureMode: Current activity does not support picture-in-picture

Error message java.lang.IllegalStateException: enterPictureInPictureMode: Current activity does not support picture-in-picture. at android.os.Parcel.c