Receiving UndeclaredThrowableException even though a custom Exception is declared in JBoss EAP

Solution Verified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content