Skip to content

Commit

Permalink
MID-6837: midPoint does NOT start if *_FILE in config.xml is not found
Browse files Browse the repository at this point in the history
This affects only cases when the key is suffixed with _FILE and the
value is read from the file specified as the element value, e.g.:
<keyStorePassword_FILE>${midpoint.home}/pwd.txt</keyStorePassword_FILE>
  • Loading branch information
virgo47 committed Mar 4, 2021
1 parent b34a2da commit 2cc25cb
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -285,9 +285,10 @@ private void resolveFileReferences() {
LOGGER.trace("Property '{}' was read from '{}': '{}'", valueKey, filename, value);
} catch (IOException e) {
String message = "Couldn't read the value of configuration key '" + valueKey
+ "' from the file '" + filename + "': " + e.getMessage();
+ "' from the file '" + filename + "': " + e.toString();
LoggingUtils.logUnexpectedException(LOGGER, message, e);
System.err.println(message);
throw new SystemException(e);
}
}
});
Expand Down

0 comments on commit 2cc25cb

Please sign in to comment.