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

All Questions

Tagged with
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
-1 votes
3 answers
40 views

Adapt exception type of generic throwing iterator

I have an interface ThrowingIterator, which follows the general contract of Iterator, except the hasNext() and next() methods can throw exceptions: public interface ThrowingIterator<T, E extends ...
EarthTurtle's user avatar
-1 votes
1 answer
30 views

Reactor doOnError - How to include multiple Exception Types in method parameters

I would like to handle multiple exceptions in the same way in the Controller of a Reactive Spring Boot API. The idea is to send a HttpStatus.BAD_REQUEST as an error response for more than one type of ...
Mohammed Idris's user avatar
1 vote
1 answer
32 views

how to decide if SocketTimeoutException means there is no connection

we have a retrofit java client to a server running in gui app, we want to notify the user if there is no connection to the server, there are some exceptions that are obvious like ConnectException or ...
Shin938's user avatar
  • 949
0 votes
1 answer
41 views

Appropriate way to handle exception in Java n-tier application

I have three layers in my application Controller, Service and DAO. My controller and service layers are in spring meanwhile DAO layer is in Hibernate 6. My question is what is most appropriate way to ...
Yasin Ahmed's user avatar
-3 votes
0 answers
20 views

Failure in finding Kafka source (Spark) [org.apache.spark.sql.AnalysisException: Failed to find data source: kafka]

I have made a fat jar file from my project which uses spark to read some CSVs and write to Kafka easily. The project is written in java, when I run the code in IntelliJ Idea it runs ok. But when I try ...
nilian's user avatar
  • 7
0 votes
1 answer
43 views

How to Implement a Lockfile to Prevent Multiple Instances of a Java Application [duplicate]

I am working on a Java application, and I need to ensure that only one instance of the application runs at any given time. I have read that this can be achieved using a lockfile. The idea is that when ...
Meymuna S.'s user avatar
-1 votes
0 answers
26 views

running a react native app in cmd why its showing build failed with exception?

I want to run the react native app in cmd my emulator is on I run the command npx react-native run-android but I get the following exception (build failed with exception) What went wrong: java.io....
farman ullah's user avatar
-1 votes
1 answer
44 views

Camel NotifyBuilder does not match when exception is thrown

It seems that camel's NotifyBuilder works in normal message processing but does not work when exceptions are thrown. Please see the following test case where I create the following routes direct:...
lance-java's user avatar
  • 27.4k
-1 votes
1 answer
44 views

How can I display an error when I use Spring Security?

I'm building an API using Spring Boot, and I've implemented Spring Security for login and registration. However, when I access an endpoint of my API without a good body, I consistently receive a 403 ...
Shadow Walker's user avatar
-2 votes
0 answers
25 views

Skip or handle failure in Mutiny Multi.createFrom().iterable in Quarkus and reactive programming

I'm implementing a functionality to read messages from a queue in SQS in AWS, process them and insert them into a table in dynamoDB. I'm using quarkus and reactive programming with Mutiny to run all ...
Allanh's user avatar
  • 504
1 vote
2 answers
101 views

How to use try-catch (IOException) for BufferedWriter.write nested in if-else?

I have a block to write data(string) using BufferedWriter, but compiler keeps saying error: unreported exception IOException; must be caught or declared to be thrown this.dataContainer.stream()....
limestreetlab's user avatar
0 votes
0 answers
73 views

FormulaEvaluatorFormulaParseException Dotted range (full row or column) expression 'C.aRG' must have exactly 2 dots

I am using Apache.poi.xssf.usermodel.XSSF to read from an Excel file and evaluate the formulas using: FormulaEvaluator evaluator = workbook.getCreationHelper().createFormulaEvaluator(); evaluator....
cost p's user avatar
  • 3
0 votes
1 answer
83 views

How to Return a Custom Error Message for Invalid Enum Value in Spring Boot RequestBody?

My put endpoint accept a requestBody of type UpdateUserDTO. The role property must be of type roleEnum. I am looking for a way to return a custom message if the role property provided is not a ...
Ryley38's user avatar
  • 353
0 votes
0 answers
26 views

How do I fix this nullPointException exception in my program? [duplicate]

I'm trying to create a simple card game where the user faces against a computer (which is a class in my method that takes its turn automatically after the user), but I'm encountering a ...
Emily Araoju's user avatar

15 30 50 per page
1
2 3 4 5
1034