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

Try catch of performInjections hiding cause of failure.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.5.GA, 1.1.4.Final, 1.2.0.CR1
    • 1.2.0.Beta2
    • None
    • None

      I have messed up a dependency for one of my services, unfortunately this is the exception reported: -

      14:48:01,606 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.server.controller.management.security_realm.PasswordRealm: org.jboss.msc.service.StartException in service jboss.server.controller.management.security_realm.PasswordRealm: Failed to start service
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1900) [jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_25]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_25]
          at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]
      Caused by: java.lang.NullPointerException
          at org.jboss.msc.value.InjectedSetValue$1.uninject(InjectedSetValue.java:92) [jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]
          at org.jboss.msc.inject.CastingInjector.uninject(CastingInjector.java:60) [jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.performInjections(ServiceControllerImpl.java:1919) [jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1872) [jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]
          ... 3 more
      

      By hitting a NullPointerException in the finally block the original exception which would point me towards what I have done wrong is now lost.

              ropalka Richard Opalka
              darran.lofthouse@redhat.com Darran Lofthouse
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: