Receiving UndeclaredThrowableException even though a custom Exception is declared in JBoss EAP
Issue
The application throws a custom checked Exception class. It's declared in the throws
clause of all methods within the stacktrace (this is the base Exception for the application and used all over), but at runtime it's thrown this error:
13:24:06,092 ERROR (http-127.0.0.1:8080-5) java.lang.reflect.UndeclaredThrowableException
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
- 7.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.