-
-
Notifications
You must be signed in to change notification settings - Fork 302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should I handle AsyncAdapterBlockingExecutionFailedException? #908
Comments
Hey @rodrigo-rufino, this exception is simply a Wrapper that indicates you're using a Blocking (not async) message listener. The original exception should be down the cause chain. Please let me know if you have any other questions. |
@tomazfernandes Is there a way to get the original exception? I'm adding an error handler to my listeners, and they log the entire wrapper exception. It would be nice if I could log only the original one. Another question: You said I'm using a blocking message listener. Is this a bad practice that I should avoid in my application? |
@rodrigo-rufino have you solved this? I'm facing the same situation but only when the input queue has an associated DLQ. |
I just added a ErrorHandler to rethrow de exception: https://docs.awspring.io/spring-cloud-aws/docs/3.0.2/reference/html/index.html#error-handling. |
Hi Developers, we also want to get rid of this ERROR LOG Message "AsyncAdapterBlockingExecutionFailedException". Our implemented SQSReceiver logs the error and rethrow the exception, so that after some retries the messages ends up in the Deadletter queue. Any ideas on how to solve the problem? Why is it not possible to override the framework errorhandling or did I do something wrong? Overwriting with rethrow does not work, we still see the error log.
|
@rodrigo-rufino, you can add some logic in your error handler to unwrap the exception by traversing the causes and ignoring framework and JDK exceptions such as We can look into adding some logic to support that in the framework if that's necessary. |
@thomasgerhardt0408 we could add an option in |
Disabling the logger in my logback.xml using the parent package worked for me: |
Looks like a good enough solution. I'll close the issue due to lack of feedback. We can reopen if necessary. |
Type: Bug
Component: SQS
Describe the bug
In Spring 2.X, whenever I needed to reprocess a message, I'd throw an error. This caused the message processing to fail, hence, reprocessing it.
In Spring 3.X, the
AsyncAdapterBlockingExecutionFailedException
is being thrown together with our expected exception.Should I handle this exception? Is it harmless?
The text was updated successfully, but these errors were encountered: