Uploaded image for project: 'OptaPlanner'
  1. OptaPlanner
  2. PLANNER-2498

Improve the error message for Quarkus if OptaPlanner beans cannot be injected

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 8.12.0.Final
    • None
    • None
    • None

      Example:

      the java-activemq quickstart relies on a common module containing the OptaPlanner domain. In order for Quarkus to detect the domain classes in the solver module, the common module has to have jandex-maven-plugin configured.

      If not, Quarkus fails to start the solver app because of missing SolverManager bean. However, the exception message does not point to the root cause, being little helpful.

       

      The goal is to improve the error message in case the OptaPlanner Quarkus beans cannot be created.

       

      Implementation suggestion:

      create new bean producers that would provide helpful message in case of an error.

       

              rsynek@redhat.com Radovan Synek (Inactive)
              rsynek@redhat.com Radovan Synek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: