Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-11734

Weld subsystem throws NPE deploying an application if transactions subsystem is missing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 16.0.0.Final
    • 16.0.0.Beta1
    • CDI / Weld
    • None

    Description

      The reproduction is pretty simple using Galleon. If we generate a server provisioned only with CDI and try to deploy a simple CDI application, we will get the following exception:

      09:29:27,420 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start service jboss.deployment.unit."cdi-test-1.0.war".WeldBootstrapService: org.jboss.msc.service.StartException in service jboss.deployment.unit."cdi-test-1.0.war".WeldBootstrapService: Failed to start service
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1730)
      	at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1558)
      	at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
      	at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
      	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
      	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1363)
      	at java.lang.Thread.run(Thread.java:748)
      Caused by: java.lang.NullPointerException
      	at org.jboss.as.weld.WeldBootstrapService.start(WeldBootstrapService.java:127)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1738)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1700)
      	... 6 more
      
      09:29:27,424 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "cdi-test-1.0.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"cdi-test-1.0.war\".WeldBootstrapService" => "Failed to start service
          Caused by: java.lang.NullPointerException"}}
      

      Attachments

        Activity

          People

            yborgess1@redhat.com Yeray Borges Santana
            yborgess1@redhat.com Yeray Borges Santana
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: