[OPENDJ-6446] Embedded API examples: setup fails with ExceptionInInitializerError Created: 11/Jul/19  Updated: 08/Nov/19  Resolved: 11/Jul/19

Status: Done
Project: OpenDJ
Component/s: core apis, test-impact
Affects Version/s: 7.0.0
Fix Version/s: 7.0.0

Type: Bug Priority: Major
Reporter: carole forel Assignee: Gaetan Boismal
Resolution: Fixed Votes: 0
Labels: Verified

Issue Links:
Regression
is caused by OPENDJ-6417 patch process does not work anymore Done
Epic Link: Bugs 7.0
Story Points: 0.5
QA Assignee: carole forel

 Description   

Found with rev OpenDJ 7.0.0-SNAPSHOT (71e4856907f)

SetupServer in embedded api examples does not seem to work anymore:

/usr/bin/java -cp /local/GIT/pyforge/archives/opendj-7.0.0-SNAPSHOT.jar:/local/GIT/pyforge/results/20190711-105740/embedded_api_group/Examples/API/opendj/lib/opendj-slf4j-adapter.jar org.forgerock.opendj.examples.SetupServer /local/GIT/pyforge/archives/opendj-7.0.0-SNAPSHOT.zip /local/GIT/pyforge/results/20190711-105740/embedded_api_group/Examples/embedded/opendj 1500 4500 with_sample_backend

Exception in thread "main" java.lang.ExceptionInInitializerError
	at com.forgerock.opendj.util.Version.binaryVersion(Version.java:57)
	at org.forgerock.opendj.server.core.ProductInformation.<init>(ProductInformation.java:55)
	at org.forgerock.opendj.server.core.ProductInformation.<clinit>(ProductInformation.java:24)
	at org.forgerock.opendj.server.embedded.EmbeddedDirectoryServer.<clinit>(EmbeddedDirectoryServer.java:80)
	at org.forgerock.opendj.examples.SetupServer.createEmbeddedDirectoryServer(SetupServer.java:152)
	at org.forgerock.opendj.examples.SetupServer.setupServerWithSampleBackend(SetupServer.java:139)
	at org.forgerock.opendj.examples.SetupServer.main(SetupServer.java:85)
Caused by: java.lang.RuntimeException: Unable to find the opendj tool version in any manifest files
	at com.forgerock.opendj.util.ManifestUtil.readVersionWithRevision(ManifestUtil.java:43)
	at com.forgerock.opendj.util.ManifestUtil.<clinit>(ManifestUtil.java:23)
	... 7 more

To reproduce:

./run-pybot.py -n -s embedded* -t Setup* opendj


 Comments   
Comment by carole forel [ 15/Jul/19 ]

verified with rev 7.0.0-SNAPSHOT (9685e4a8467)

Generated at Mon Aug 10 00:13:52 UTC 2020 using Jira 7.13.12#713012-sha1:6e07c38070d5191bbf7353952ed38f111754533a.