Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-6446

Embedded API examples: setup fails with ExceptionInInitializerError

    Details

      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
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gaetan Gaetan Boismal
                Reporter:
                cforel carole forel
                QA Assignee:
                carole forel
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: