Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-1347

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: M3
    • Fix Version/s: 0.13
    • Component/s: Broker-J
    • 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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: