Skip to content

Spring @Async should have some way of specifying UncaughtExceptionHandler [SPR-8995] #13635

@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Assignees

Labels

has: votes-jiraIssues migrated from JIRA with more than 10 votes at the time of importtype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions