Skip to main content
The 2024 Developer Survey results are live! See the results

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.

java
-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) ...
Burner's user avatar
  • 1,009
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 ...
mrsteel2935's user avatar
-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 ...
wallhack's user avatar
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 ...
visionset's user avatar
  • 163
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 ...
Alejandro Manuel Carrion's user avatar
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(...
Kutman Salamatov's user avatar
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(...
Aniket's user avatar
  • 1
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....
omelnykov's user avatar
-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 ...
Jainam MJ's user avatar
  • 318
-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 ? (...
TriNguyen's user avatar
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 =...
Vlad's user avatar
  • 315
-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 ...
queeg's user avatar
  • 8,892
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 ...
pomipiwimo's user avatar
-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 ...
Nazgot's user avatar
  • 410
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 ...
Walter Butze's user avatar

15 30 50 per page
1 2 3
4
5
12