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
    If the decompile process didn't work properly, try the Android APK Decompiler.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    You might have a JRockit JVM with the management agent started on the same port.
  6. 0
    SMS Emulator caused this error. abortBroadcast only works with broadcasts sent through Context.sendOrderedBroadcast.

    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