Questions tagged [java]
Java is a high-level object-oriented programming language. Use this tag when you're having problems using or understanding the language itself. This tag is frequently used alongside other tags for libraries and/or frameworks used by Java developers.
176
questions
-1
votes
0
answers
11
views
Apache Camel OnException JUnit5 Test
I have this Camel Route and would like to test it.
from("jms:queue:importer.messageImport")
.routeId("Import")
.onException(Exception.class)
.maximumRedeliveries(0)
...
0
votes
0
answers
11
views
Bean Could not be found despite proper project file structure
File Structure screenshot
I've seen other posts solving this issue with this exact file structure yet no matter what I do it always gives me this error:
***************************
APPLICATION FAILED ...
-2
votes
0
answers
23
views
Issues with Region in S3AsyncClient using Minio with AWS SDK for Java
I encountered an issue while configuring S3AsyncClient using the AWS SDK for Java in a Spring Boot application. Despite setting all the necessary properties, I keep receiving the following error ...
1
vote
1
answer
42
views
Java libraries built from source have differences to those published wrt to anonymous classes
I am trying to build groovy (and others) from source using the instructions in their help file.
https://github.com/apache/groovy/tree/GROOVY_3_0_21?tab=readme-ov-file
The built binaries operate just ...
0
votes
1
answer
23
views
Is JBoss 8 compatible with java 8? [duplicate]
I am trying to migrate an ear application from JBoss 7.1 eap to jboss 8, is it compatible with java 8?
I get the following error
Error: A JNI error has occurred, please check your installation and try ...
0
votes
0
answers
11
views
javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: could not extract ResultSet
Here the error:
javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: could not extract ResultSet
at org.hibernate.internal.ExceptionConverterImpl.convert(...
0
votes
0
answers
10
views
I have implemented the code to raise local reminder notification everyday at specific time. On Android 14 phone not able to receive this notification
Below is my code snippet.
AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);
android.icu.util.Calendar calendar = android.icu.util.Calendar.getInstance(...
0
votes
0
answers
26
views
Java Stream API memory consumption of multiple .filter() in chain [duplicate]
Have a question regarding .filter (or any other non-terminal) methods in Stream API chain (code in the block below is just for example):
var s1 = Stream.of(1,2,3,4,5,6,7,8,9);
var intemidiate1 = s1....
-1
votes
1
answer
23
views
Mocking a vendor class that is not initialized by my code in Mockito [closed]
I have a very unique challenge with respect to unit testing a scenario.
There is a vendor application provided by a jar file. I have to write code on top of it. Internal to vendor application the ...
-1
votes
0
answers
23
views
Convert decimal value into hexadecimal in little-endian 64-bit unsigned integer for Scala? [closed]
I'm trying to implement some crypto into my Scala source, so in my algorithm, I would need some null byte, so as in Scala it would be like
0x00 as Byte
\0 (originally as algorithm stated)
\u0000 ? (...
1
vote
0
answers
28
views
how to specify the author of commit created by revert() in JGit?
Suppose there is a file that is added and committed to a Git repository with the change reverted:
try (Git gitParent = Git.init().setDirectory(parentRepositoryRoot).call()) {
final String fooName =...
-1
votes
1
answer
18
views
JBeret job execution start time not constant?
I have some JSR352 jobs running in Wildfly (which uses JBeret). Some time ago I noticed strange behaviour, and now I drilled it down to something that's puzzling me.
So far I assumed the job execution ...
1
vote
0
answers
13
views
Java MongoDB not mapping extended classes
I have a base class Person and 2 classes that extends from it. When I insert instances of these classes into the database, it keeps all the info about the extended classes as shown below.
Below is the ...
-1
votes
0
answers
10
views
Micrometer tracing + zipkin
I'm building a microservice application using Spring Boot 3 (currently 3.3.2) and I want to add span IDs and trace IDs to my logs. I also want to be able to track them in Zipkin. I found out that ...
0
votes
0
answers
17
views
Data related to the response is being filtered and body is not displayed despite various attempts to set it up
I would like the log to include all information regarding requests and responses including their bodies.
Despite the following standard logging configuration, the content of the responses is being ...