1,915,260 questions
Score of -1
1 answer
43 views
How to scroll more in scrollview
I have a floating bottom navigation with transparent background and i want to make scroll view overscrolls until elements in my scroll view gets on top of bottom navigation.
<ScrollView
...
Score of -3
0 answers
88 views
Variable initially NULL, set in a try/catch, and later used in a lambda gives "Local variable required to be final or effectively final"
I have a variable which is initialized as null and set in a try/catch block from a method that can throw an exception. Later on, that variable is used in a lambda expression. This occurs in a loop.
...
Score of -1
0 answers
34 views
How to set a default request body value
I upgraded my application from Spring Boot 3 to Spring Boot 4, so I also updated Jackson. However, I encountered a problem.
If I have an endpoint that takes an object like @RequestBody, and I define ...
Score of 1
1 answer
51 views
How does saving work in a Spring Data JPA repository?
I am writing some code related to a management system.
public Student updateStudent(Long id,Student studentReq) {
Optional<Student> existingStudent = studentRepository....
Score of 0
0 answers
55 views
NextFlow continuing processes when some inputs fail
I have a pipeline, in which several files are processed using consecutive processing steps, and when I run the pipeline, sometimes, errors can occur, and halt all processes. In this example:
process ...
Score of -2
0 answers
109 views
Why I'm getting an input mismatch exception in Java? [duplicate]
I've been doing a school exercise, and I used a double variable, but whenever I type in a decimal such as 2.4, I receive the following mousepad EatALot.java:
java EatALot.java Weight: 2.4 Exception ...
Score of 4
0 answers
138 views
Why is Maven JAR Plugin writing *.jar contents into the *.pom file?
In the process of setting up on a new mandatory workstation, I have encountered the following problem:
Running the mvn clean install instruction results in the maven-jar-plugin writing contents of a \*...
Score of 3
1 answer
125 views
Spring Boot 3 fails to find bean despite @Service annotation and correct package structure
I have a Spring Boot 3 application where a controller depends on a service annotated with @Service, but the application fails to start because Spring cannot find the OrderService bean.
Error
Field ...
Score of 2
1 answer
69 views
Nextflow Task-Finalizer unable to locate expected file saved in publishDir unless I copy to PWD
I have been porting a pipeline over to NextFlow that involves saving inter-process temporary files to a secondary directory for later access. I set publishDir to this temporary directory, and when I ...
Score of 1
1 answer
161 views
Why does my application return different data than a direct SQL query?
I'm facing a strange issue, where the same PostgreSQL function returns different results, when executed from my Java application versus pgAdmin.
Environment
Spring Boot 3.0.6
PostgreSQL 15.3
JPA ...
Score of 1
2 answers
149 views
Selenium Test opens the Chrome window in headless mode
After my Chrome browser updated recently to version 150.0.7871.47, my Selenium tests don't run in headless mode anymore, and open empty Chrome windows while tests are running. I'm new to Selenium ...
Score of 1
0 answers
137 views
JUnit testing works, but I am recieving warning lines about junit packages in my code in VS Code [closed]
I am trying to get JUnit testing to work.
Well, the testing itself actually seems to work for me. I can click on the test buttons, and it shows where problems are, and when I fix the bug in the class ...
Score of 5
3 answers
229 views
How to test a randomized input used to determine a final result on assertions?
I am writing randomized JUnit tests for small Java methods. The test runs many generated inputs, combines the outputs into a checksum, and compares that checksum to an expected checksum. When the ...
Score of 2
2 answers
117 views
How to use a module from Jetbrains Runtime?
I want to use the JCEF module from JetBrains Runtime (jbrsdk_jcef-25, v25.0.3), but attempting to compile it results in the following error:
D:\cef2\src\main\java\module-info.java:5:14
java: module ...
Score of 1
1 answer
98 views
iText 7 copyPagesTo throws UnsupportedOperationException for a link annotation with an invalid GoTo destination
I'm merging PDF pages with iText 7 using copyPagesTo. It works for most files, but a few PDFs from third parties make the copy blow up with java.lang.UnsupportedOperationException, and that kills the ...