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
Spring @Async should have some way of specifying UncaughtExceptionHandler [SPR-8995] #13635
Comments
Gareth Smith commented Somebody has posted a workaround here: http://stackoverflow.com/questions/8735870/spring-async-uncaught-exception-handler |
Stéphane Nicoll commented The reason why the See also this thread We intend to provide a dedicated callback handler for asynchronous operations that would provide more context. |
Stéphane Nicoll commented The current plain is to define a new interface When an exception is thrown from an asynchronous method invocation and that method has a |
Janning Vygen commented The solution only works for Proxy but not AspectJ mode in 4.1.0.RC2 |
Stéphane Nicoll commented Thanks, I have created #16706 |
Mukund Jalan commented Update may be needed as per #18954 |
Stéphane Nicoll commented This issue is closed. What update are you talking about? |
Dwayne D'Souza opened SPR-8995 and commented
Currently an exceptions in Async proxied methods fail silently and do not pass to the default UncaughtExceptionHandler. This means you need to wrap every async method with AspectJ in order to achieve unexpected error handling in these methods.
e.g.
@Override
@Async
public void asyncExceptionTest() {
int i=1/0;
}
This will fail silently.
Issue Links:
19 votes, 20 watchers
The text was updated successfully, but these errors were encountered: