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

NPE in CamelDeploymentSettings when deploying an EAR with two WARs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • fuse-7.1
    • None
    • WildFly Camel
    • None
    • % %
    • Fuse 7.1 Sprint 32

    Description

      Cloned from https://github.com/wildfly-extras/wildfly-camel/issues/2580

      14:24:38,489 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deployment.unit."CXFWSEarBasicSecureProducerIntegrationTest.ear".DEPENDENCIES: org.jboss.msc.service.StartException in service jboss.deployment.unit."CXFWSEarBasicSecureProducerIntegrationTest.ear".DEPENDENCIES: WFLYSRV0153: Failed to process phase DEPENDENCIES of deployment "CXFWSEarBasicSecureProducerIntegrationTest.ear"
              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:150)
              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1736)
              at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1698)
              at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1556)
              at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
              at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
              at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
              at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
              at java.lang.Thread.run(Thread.java:748)
      Caused by: java.lang.NullPointerException
              at org.wildfly.extension.camel.deployment.CamelDeploymentSettings.isEnabled(CamelDeploymentSettings.java:60)
              at org.wildfly.extension.camel.deployment.CamelIntegrationProcessor.deploy(CamelIntegrationProcessor.java:45)
              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:143)
              ... 8 more
      

      CamelDeploymentSettings.java:60 is if (childDepSettings.isEnabled()) { and we do not set childDepSettings anywhere except the initializer. Looks like a not completely intialized instance of CamelDeploymentSettings is leaking to another thread.

      Attachments

        Issue Links

          Activity

            People

              ppalaga Peter Palaga
              ppalaga Peter Palaga
              Andrej Podhradsky Andrej Podhradsky
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: