java.lang.RuntimeException: Directories must end in the system path separator ('/')

JIRA | Alan McCoy | 2 years ago
  1. 0

    If conf-daemon.properties has a Windows carriage-return at the end of {{rootDirectory=/var/lib/mongodb/backup/}}, then the Backup Daemon will fail just after startup with: {noformat} Exception in thread "main" java.lang.RuntimeException: Directories must end in the system path separator ('/') at com.xgen.svc.brs.grid.BackupDaemonConfiguration.getRootDirectory(BackupDaemonConfiguration.java:482) at com.xgen.svc.brs.grid.BackupDaemonConfiguration.<init>(BackupDaemonConfiguration.java:88) at com.xgen.svc.brs.grid.Daemon.initialize(Daemon.java:662) at com.xgen.svc.brs.grid.Daemon.main(Daemon.java:745) {noformat} Note that the service startup works: {code} $ sudo service mongodb-mms-backup-daemon start Starting pre-flight checks Successfully finished pre-flight checks Start Backup Daemon... [ OK ] {code} If visible spaces are added instead, then the startup sequence gives this error: {code} $ sudo service mongodb-mms-backup-daemon start Starting pre-flight checks rootDirectory `/var/lib/mongodb/backup/ ` defined in conf-daemon.properties does not exist. Pre-flight checks failed. Service can not start. {code} (tested on Linux ip-172-31-15-48 3.14.35-28.38.amzn1.x86_64 #1 SMP Wed Mar 11 22:50:37 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux) Filing this to consider if more general white-space is acceptable to ignore for the configuration file. Alternatively, error on all extra white-space similarly. To recreate: 1. Edit the conf-daemon.properties file and add a Windows carriage return (e.g. in vi/vim: ctrl-V ctrl-M) to the end of rootDirectory 2. Try to start the daemon 3. Check the daemon.log file

    JIRA | 2 years ago | Alan McCoy
    java.lang.RuntimeException: Directories must end in the system path separator ('/')
  2. 0

    If conf-daemon.properties has a Windows carriage-return at the end of {{rootDirectory=/var/lib/mongodb/backup/}}, then the Backup Daemon will fail just after startup with: {noformat} Exception in thread "main" java.lang.RuntimeException: Directories must end in the system path separator ('/') at com.xgen.svc.brs.grid.BackupDaemonConfiguration.getRootDirectory(BackupDaemonConfiguration.java:482) at com.xgen.svc.brs.grid.BackupDaemonConfiguration.<init>(BackupDaemonConfiguration.java:88) at com.xgen.svc.brs.grid.Daemon.initialize(Daemon.java:662) at com.xgen.svc.brs.grid.Daemon.main(Daemon.java:745) {noformat} Note that the service startup works: {code} $ sudo service mongodb-mms-backup-daemon start Starting pre-flight checks Successfully finished pre-flight checks Start Backup Daemon... [ OK ] {code} If visible spaces are added instead, then the startup sequence gives this error: {code} $ sudo service mongodb-mms-backup-daemon start Starting pre-flight checks rootDirectory `/var/lib/mongodb/backup/ ` defined in conf-daemon.properties does not exist. Pre-flight checks failed. Service can not start. {code} (tested on Linux ip-172-31-15-48 3.14.35-28.38.amzn1.x86_64 #1 SMP Wed Mar 11 22:50:37 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux) Filing this to consider if more general white-space is acceptable to ignore for the configuration file. Alternatively, error on all extra white-space similarly. To recreate: 1. Edit the conf-daemon.properties file and add a Windows carriage return (e.g. in vi/vim: ctrl-V ctrl-M) to the end of rootDirectory 2. Try to start the daemon 3. Check the daemon.log file

    JIRA | 2 years ago | Alan McCoy
    java.lang.RuntimeException: Directories must end in the system path separator ('/')
  3. 0

    ActiveMQ - User - How do i configure the http transport connector to use a proxy?

    nabble.com | 11 months ago
    java.lang.RuntimeException: Failed to execute start task. Reason: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 56 in XML document from class path resource [activemq.xml] is invalid; nested exception is org.xml.sax.SAXParseException: The reference to entity "proxyPort" must end with the ';' delimiter.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Exporting Data from a Planning Application to a Flat File

    Oracle Community | 2 years ago | MichaelCHy
    java.lang.RuntimeException: An exception occurred checking for, or translating, unencrypted passwords in the "file path" The system cannot find the file specified.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.RuntimeException

      Directories must end in the system path separator ('/')

      at com.xgen.svc.brs.grid.BackupDaemonConfiguration.getRootDirectory()
    2. com.xgen.svc
      Daemon.main
      1. com.xgen.svc.brs.grid.BackupDaemonConfiguration.getRootDirectory(BackupDaemonConfiguration.java:482)
      2. com.xgen.svc.brs.grid.BackupDaemonConfiguration.<init>(BackupDaemonConfiguration.java:88)
      3. com.xgen.svc.brs.grid.Daemon.initialize(Daemon.java:662)
      4. com.xgen.svc.brs.grid.Daemon.main(Daemon.java:745)
      4 frames