Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-782

Better exception message when bean creation fails in EL resolver

XMLWordPrintable

    • Low

      When bean creation fails in the EL resolver, Weld reports a misleading error message (defined by ElMessages.RESOLUTION_ERROR)

      WELD-001000 Error resolving property orderBean against base null

      The problem is that the EL resolver just wraps the bean creation in a try/catch block and reports this message if it fails (near end of AbstractWeldELResolver#getValue()). The includes any failures that come from a post-construct/initializer method.

      At this point in the code, base is always null because a bean is being resolved by name (the bean name is in the propertyString).

      Weld should clarify that bean creation failed during bean creation and remove the null reference in the message.

              pmuiratbleepbleep Pete Muir (Inactive)
              dan.j.allen Dan Allen (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: