Qpid
  1. Qpid
  2. QPID-1347

Broker doesn't clearly report missing configuration files such as password file.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: M3
    • Fix Version/s: 0.13
    • Component/s: Java Broker
    • Labels:

      Description

      If the password file is missing on startup the the following exception is shown:

      Error configuring message broker: org.apache.commons.configuration.ConfigurationException: java.lang.reflect.InvocationTargetException
      2008-09-26 15:14:56,529 ERROR [main] server.Main (Main.java:206) - Error configuring message broker: org.apache.commons.configuration.ConfigurationException: java.lang.reflect.InvocationTargetException
      org.apache.commons.configuration.ConfigurationException: java.lang.reflect.InvocationTargetException
      at org.apache.qpid.server.security.auth.database.ConfigurationFilePrincipalDatabaseManager.initialisePrincipalDatabase(ConfigurationFilePrincipalDatabaseManager.java:158)
      at org.apache.qpid.server.security.auth.database.ConfigurationFilePrincipalDatabaseManager.initialisePrincipalDatabases(ConfigurationFilePrincipalDatabaseManager.java:87)
      at org.apache.qpid.server.security.auth.database.ConfigurationFilePrincipalDatabaseManager.<init>(ConfigurationFilePrincipalDatabaseManager.java:56)
      at org.apache.qpid.server.registry.ConfigurationFileApplicationRegistry.initialise(ConfigurationFileApplicationRegistry.java:117)
      at org.apache.qpid.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:79)
      at org.apache.qpid.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:67)
      at org.apache.qpid.server.Main.startup(Main.java:260)
      at org.apache.qpid.server.Main.execute(Main.java:196)
      at org.apache.qpid.server.Main.<init>(Main.java:96)
      at org.apache.qpid.server.Main.main(Main.java:454)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
      Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.qpid.server.security.auth.database.ConfigurationFilePrincipalDatabaseManager.initialisePrincipalDatabase(ConfigurationFilePrincipalDatabaseManager.java:148)
      ... 14 more
      Caused by: java.io.FileNotFoundException: Cannot find password file /home/ritchiem/support/Stars/707/work/cfg/qpid.passwd
      at org.apache.qpid.server.security.auth.database.Base64MD5PasswordFilePrincipalDatabase.setPasswordFile(Base64MD5PasswordFilePrincipalDatabase.java:109)
      ... 19 morere

      The user must read all the way though to the Caused by section to find the real problem.
      This error could be processed on the broker and more appropriate text shown.

        Issue Links

          Activity

          Rob Godfrey made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Robbie Gemmell made changes -
          Component/s Starter [ 12312518 ]
          Robbie Gemmell made changes -
          Labels starter
          Robbie Gemmell made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Assignee Robbie Gemmell [ gemmellr ]
          Fix Version/s 0.13 [ 12316854 ]
          Resolution Fixed [ 1 ]
          Keith Wall made changes -
          Link This issue is part of QPID-3283 [ QPID-3283 ]
          Marnie McCormack made changes -
          Fix Version/s M4 [ 12313279 ]
          Marnie McCormack made changes -
          Field Original Value New Value
          Priority Major [ 3 ] Minor [ 4 ]
          Component/s Starter [ 12312518 ]
          Martin Ritchie created issue -

            People

            • Assignee:
              Robbie Gemmell
              Reporter:
              Martin Ritchie
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development