Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-1874

Do not inject CDI if the application is being undeployed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.7.5, 7.0.3
    • None
    • None

    Description

      Somewhere around StatelessInstanceManager.createInstance there should be check a check to see if the application is being undeployed.
      The following stacktrace snippet is written to the logs multiple times during an undeploy, as the pool tries to fill.

      at org.apache.webbeans.util.InjectionExceptionUtil.throwUnsatisfiedResolutionException(InjectionExceptionUtil.java:60)
      at org.apache.webbeans.container.InjectionResolver.getInjectionPointBean(InjectionResolver.java:250)
      at org.apache.webbeans.inject.AbstractInjectable.inject(AbstractInjectable.java:76)
      at org.apache.webbeans.inject.InjectableField.doInjection(InjectableField.java:65)
      at org.apache.webbeans.portable.InjectionTargetImpl.injectFields(InjectionTargetImpl.java:208)
      at org.apache.webbeans.portable.InjectionTargetImpl.inject(InjectionTargetImpl.java:194)
      at org.apache.webbeans.portable.InjectionTargetImpl.inject(InjectionTargetImpl.java:184)
      at org.apache.openejb.cdi.CdiEjbBean$EjbInjectionTargetImpl.inject(CdiEjbBean.java:388)
      at org.apache.openejb.BeanContext.inject(BeanContext.java:1660)
      at org.apache.openejb.BeanContext.newInstance(BeanContext.java:1489)
      at org.apache.openejb.core.stateless.StatelessInstanceManager.createInstance(StatelessInstanceManager.java:207)
      at org.apache.openejb.core.stateless.StatelessInstanceManager.access$200(StatelessInstanceManager.java:72)
      at org.apache.openejb.core.stateless.StatelessInstanceManager$StatelessSupplier.create(StatelessInstanceManager.java:151)
      at org.apache.openejb.core.stateless.StatelessInstanceManager$StatelessSupplier.create(StatelessInstanceManager.java:127)
      at org.apache.openejb.util.Pool$Replace.run(Pool.java:847)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)

      Attachments

        Activity

          People

            andyg Andy Gumbrecht
            andyg Andy Gumbrecht
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: