Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-5364

BeanProvider.getBeanDefinitions() call fails to return registered beans after CLI deployment

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • jboss-fuse-6.3
    • jboss-fuse-6.2.1
    • SwitchYard
    • None
    • % %

      After deploying several *.ear files using JBoss CLI, the org.apache.deltaspike.core.api.provider.BeanProvider.getBeanDefinitions(...) call fails to return registered beans.

      Background information:
      In the SwithYard context the WELD call is done automatically depending on how CDI is configured and used. We have momentarily examined multiple fatalities when using SwitchYard, which definately originate from this error:

      • org.switchyard.bus.camel.CamelExchangeBusRouteBuilder(line 124) tries to lookup all defined ErrorListeners. This sometimes returns the right amount of ErrorListeners and sometimes fails with a NullPointerException
      • Injected beans were not resolved and therefore functionality was not executed (see all using classes of CdiBeanRegistry)

      The issue only shows up under these circumstances:

      • Only when using CDI
      • When deploying more than two EARs, then the second is corrupted.
      • When deploying an EAR on an already running server instance with existing deployments, arbitrary older deployments get corrupted

            tcunning@redhat.com Thomas Cunningham
            rhn-support-mputz Martin Weiler (Inactive)
            Stefan Veres Stefan Veres
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: