The Nominee.key file is automatically generated in and read from .src/main/resources, if this directory does not exist, following error is thrown:
java.io.FileNotFoundException: ./src/main/resources/Nominee.key (No such file or directory)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at java.io.FileOutputStream.<init>(FileOutputStream.java:101)
at java.io.FileWriter.<init>(FileWriter.java:63)
at net.helix.hlx.crypto.Merkle.createKeyfile(Merkle.java:168)
at net.helix.hlx.service.milestone.impl.MilestonePublisher.generateKeyfile(MilestonePublisher.java:111)
at net.helix.hlx.service.milestone.impl.MilestonePublisher.startScheduledExecutorService(MilestonePublisher.java:138)
at net.helix.hlx.HLX$HLXLauncher.main(HLX.java:140)
at net.helix.hlx.HLX.main(HLX.java:65)
Expected behavior
If not run from the source repository, a resources directory should be created in the directory in which the jar is executed.
Steps to reproduce
java -jar helix-<version>.jar -p 8085 -nominee <pathToSeed>
Issue
The
Nominee.key
file is automatically generated in and read from.src/main/resources
, if this directory does not exist, following error is thrown:Expected behavior
If not run from the source repository, a resources directory should be created in the directory in which the jar is executed.