Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Key generation with a prebuilt jar #136

@oracle58

Description

@oracle58

Steps to reproduce

  1. mkdir somedir
  2. cd somedir
  3. place the prebuilt jar in somedir
  4. 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:

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.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions