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

NullPointerException with "javax.enterprise.inject.scan.implicit" true and "org.jboss.weld.se.archive.isolation" false

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.1.2.Final
    • 3.1.1.Final
    • Java SE Support
    • None

      I have a Weld SE application.
      If I set the system property javax.enterprise.inject.scan.implicit to true and the system property org.jboss.weld.se.archive.isolation to false, the BeansXmlParser throws a NullPointerException when trying to merge the archives as no BeansXml instance is present on which the methods for the merge are called:

      java.lang.NullPointerException: null
      	at org.jboss.weld.xml.BeansXmlParser.merge(BeansXmlParser.java:83) ~[weld-core-impl-3.1.1.Final.jar:3.1.1.Final]
      	at org.jboss.weld.xml.BeansXmlParser.mergeExisting(BeansXmlParser.java:122) ~[weld-core-impl-3.1.1.Final.jar:3.1.1.Final]
      	at org.jboss.weld.environment.deployment.WeldBeanDeploymentArchive.merge(WeldBeanDeploymentArchive.java:142) ~[weld-environment-common-3.1.1.Final.jar:3.1.1.Final]
      	at org.jboss.weld.environment.se.Weld.createDeployment(Weld.java:1000) ~[weld-se-core-3.1.1.Final.jar:3.1.1.Final]
      	at org.jboss.weld.environment.se.Weld.initialize(Weld.java:777) ~[weld-se-core-3.1.1.Final.jar:3.1.1.Final]
      	at org.jboss.weld.environment.se.Weld.initialize(Weld.java:176) ~[weld-se-core-3.1.1.Final.jar:3.1.1.Final]
      	at ...
      

              manovotn Matěj Novotný
              Vampire0 Björn Kautler (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: