Uploaded image for project: 'Modular Service Container'
  1. Modular Service Container
  2. MSC-346

ServiceStatus throws NPE if parent controller is anonymous

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.5.5.Final
    • 1.6.0.Final, 1.5.4.Final
    • runtime
    • None

      This causes calls to ServiceContainer.dumpServices() to throw an NPE.
      e.g.

      52:43,095 SEVERE [org.jboss.arquillian.protocol.jmx.JMXTestRunner] (pool-59-thread-1) Failed: org.jboss.as.test.integration.batch.repository.JdbcRepositoryExecutionsLimitTestCase.testGetJobExecutionsWithLimit: java.lang.NullPointerException: Cannot invoke "org.jboss.msc.service.ServiceName.getCanonicalName()" because the return value of "org.jboss.msc.service.ServiceControllerImpl.getName()" is null
        at org.jboss.msc@1.5.4.Final//org.jboss.msc.service.ServiceControllerImpl.getStatus(ServiceControllerImpl.java:1205)
        at org.jboss.msc@1.5.4.Final//org.jboss.msc.service.ServiceContainerImpl.dumpServices(ServiceContainerImpl.java:583)
        at org.jboss.msc@1.5.4.Final//org.jboss.msc.service.ServiceContainerImpl.dumpServices(ServiceContainerImpl.java:566)
        at deployment.jdbc-batch.war//org.jboss.as.test.integration.batch.repository.JobRepositoryTestUtils.testGetJobExecutionsWithLimit(JobRepositoryTestUtils.java:42)
        at deployment.jdbc-batch.war//org.jboss.as.test.integration.batch.repository.JdbcRepositoryExecutionsLimitTestCase.testGetJobExecutionsWithLimit(JdbcRepositoryExecutionsLimitTestCase.java:47)
      

              ropalka Richard Opalka
              pferraro@redhat.com Paul Ferraro
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: