Skip to content

Commit

Permalink
Catch MissingReflectionRegistrationErrors during start up
Browse files Browse the repository at this point in the history
Closes #42084
  • Loading branch information
zakkak committed Nov 21, 2024
1 parent 296ffde commit faa7022
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import jakarta.enterprise.inject.spi.BeanManager;
import jakarta.enterprise.inject.spi.CDI;

import org.graalvm.nativeimage.MissingReflectionRegistrationError;
import org.jboss.logging.Logger;
import org.jboss.logmanager.handlers.AsyncHandler;
import org.wildfly.common.lock.Locks;
Expand Down Expand Up @@ -199,7 +200,8 @@ public static void run(Application application, Class<? extends QuarkusApplicati
}
applicationLogger.warn("You can try to kill it with 'kill -9 <pid>'.");
}
} else if (rootCause instanceof ConfigurationException || rootCause instanceof ConfigValidationException) {
} else if (rootCause instanceof ConfigurationException || rootCause instanceof ConfigValidationException
|| rootCause instanceof MissingReflectionRegistrationError) {
System.err.println(rootCause.getMessage());
} else if (rootCause instanceof PreventFurtherStepsException
&& !StringUtil.isNullOrEmpty(rootCause.getMessage())) {
Expand Down

0 comments on commit faa7022

Please sign in to comment.