Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-529

DeltaSpikeExceptionHandler construction issue in non EE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.5, 0.6
    • 0.6
    • JSF-Module
    • None
    • Tomcat

    Description

      In non EE environments you may be using Weld Servlet to initialize CDI.
      However because of JSF zeroconfig you cannot guarantee that weld servlet will be started before JSF.
      During JSF startup DeltaSpikeExceptionHandler is created and exceptionQualifier is populated, but it throws an exception because the following will only work once the CDI container is started:
      this.exceptionQualifier = AnnotationInstanceProvider.of(
      BeanProvider.getContextualReference(JsfModuleConfig.class).getExceptionQualifier());

      Recommend either not caching the exceptionQualifier, or moving the initialization to the handle() method if null.

      Attachments

        Activity

          People

            tandraschko Thomas Andraschko
            bryncooke Bryn Cooke
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: