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

ServiceController.dumpServices() throws NPE if service has no identifier

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 1.6.0.Final, 1.5.2.Final
    • 1.5.1.Final
    • runtime
    • None

    Description

      Services created via ServiceTarget.addService() have a null serviceId, i.e. ServiceController.getName() returns null.
      However, the ServiceControllerImpl.getStatus() method does not handle these services correctly, and throws an NPE.
      e.g.

      org.jboss.as.test.integration.batch.repository.JdbcRepositoryExecutionsLimitTestCase(basic-integration-default-web).testGetJobExecutionsWithLimit: java.lang.NullPointerException
      	at org.jboss.msc@1.5.1.Final//org.jboss.msc.service.ServiceControllerImpl.getStatus(ServiceControllerImpl.java:1206)
      	at org.jboss.msc@1.5.1.Final//org.jboss.msc.service.ServiceContainerImpl.dumpServices(ServiceContainerImpl.java:593)
      	at org.jboss.msc@1.5.1.Final//org.jboss.msc.service.ServiceContainerImpl.dumpServices(ServiceContainerImpl.java:576)
      	at deployment.jdbc-batch.war//org.jboss.as.test.integration.batch.repository.JobRepositoryTestUtils.testGetJobExecutionsWithLimit(JobRepositoryTestUtils.java:53)
      	at deployment.jdbc-batch.war//org.jboss.as.test.integration.batch.repository.JdbcRepositoryExecutionsLimitTestCase.testGetJobExecutionsWithLimit(JdbcRepositoryExecutionsLimitTestCase.java:58)
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: