Failed to Load Property Source
Indications
Output similar to the following when running software manually or when started automatically:
$ cd /opt/terma/jobtrac-connector $ java -jar jobtrac-connector-1.0.0.jar 2019-05-29 06:11:33,663 ERROR [SpringApplication] Application run failed java.lang.IllegalStateException: Failed to load property source from location 'file:./application.yml' at org.springframework.boot.context.config.ConfigFileApplicationListener$Loade r.load(ConfigFileApplicationListener.java:554) ~[spring-boot-2.1.2.RELEASE.jar!/:2.1.2.RELEASE] at org.springframework.boot.context.config.ConfigFileApplicationListener$Loade r.loadForFileExtension(ConfigFileApplicationListener.java:500) ~[spring-boot-2.1.2.RELEASE.jar!/:2.1.2.RELEASE] at org.springframework.boot.context.config.ConfigFileApplicationListener$Loade r.load(ConfigFileApplicationListener.java:467) ~[spring-boot-2.1.2.RELEASE.jar!/:2.1.2.RELEASE] [...]
Significance
The software requires a readable, writeable application.yml configuration file co-located with its JAR file and supporting scripts in order to work.
This error indicates one or more of the following states:
-
This configuration file has been corrupted.
-
This configuration file is not readable or writable, per file permissions.
Resolution
Attempt the following tasks in the order shown:
-
If this file exists as a text file in the expected place but is not readable or writable, correct file permissions (and) re-run the software normally, once complete.
-
Otherwise, follow the Resetting Configuration maintenance steps for resolution.