Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-9446

Random startup failures when using DB2 as a repo

    Details

    • Target Version/s:
    • Verified Version/s:
    • Sprint:
      OpenIDM Sprint 87, OpenIDM Sprint 88

      Description

      In our automated tests, we see regular (but random) failure on startup when using DB2 as a repo.
      (this had been going on in a while... unable to date it though)
      I am unable to find any specific pattern or use case to help reproduce the issue.
      Only thing I can provide is OpenIDM log.
      Full log is attached, and hEre is an extract:

      INFO: Using properties at /home/testuser/jenkins/workspace/OpenIDM-Tests-5.5.x-Core-Linux-DB2/results/20171001-011642/startup_shutdown/service_start_max/IDM/openidm/conf/boot/boot.properties
      Oct 01, 2017 3:47:52 AM org.forgerock.openidm.core.FilePropertyAccessor loadProps
      INFO: Using properties at /home/testuser/jenkins/workspace/OpenIDM-Tests-5.5.x-Core-Linux-DB2/results/20171001-011642/startup_shutdown/service_start_max/IDM/openidm/conf/boot/boot.properties
      Oct 01, 2017 3:47:53 AM org.forgerock.openidm.config.crypto.ConfigCrypto <init>
      INFO: Using keystore alias openidm-sym-default to handle config encryption
      Oct 01, 2017 3:47:53 AM org.forgerock.openidm.config.persistence.Activator start
      INFO: OpenIDM is starting from /home/testuser/jenkins/workspace/OpenIDM-Tests-5.5.x-Core-Linux-DB2/results/20171001-011642/startup_shutdown/service_start_max/IDM/openidm
      Oct 01, 2017 3:47:54 AM org.forgerock.openidm.config.persistence.ConfigBootstrapHelper getBootConfig
      INFO: Bootstrapping with settings from configuration file /home/testuser/jenkins/workspace/OpenIDM-Tests-5.5.x-Core-Linux-DB2/results/20171001-011642/startup_shutdown/service_start_max/IDM/openidm/conf/repo.jdbc.json
      Oct 01, 2017 3:47:54 AM org.forgerock.openidm.config.persistence.ConfigBootstrapHelper getBootConfig
      INFO: Bootstrapping with settings from configuration file /home/testuser/jenkins/workspace/OpenIDM-Tests-5.5.x-Core-Linux-DB2/results/20171001-011642/startup_shutdown/service_start_max/IDM/openidm/conf/datasource.jdbc-default.json
      Oct 01, 2017 3:47:54 AM org.forgerock.openidm.repo.jdbc.impl.Activator start
      INFO: Bootstrapping JDBC repository
      (...)
      Oct 01, 2017 3:49:09 AM org.forgerock.openidm.logging.LogServiceTracker logEntry
      SEVERE: Bundle: org.forgerock.openidm.felix-webconsole [81] [org.forgerock.openidm.felix.webconsole(36)] The activate method has thrown an exception
      org.apache.felix.log.LogException: org.forgerock.openidm.config.enhanced.InvalidException: Component configuration for org.forgerock.openidm.felix.webconsole is invalid: /: Expecting a value
      	at org.forgerock.openidm.config.enhanced.JSONEnhancedConfig.getRawConfiguration(JSONEnhancedConfig.java:133)
      	at org.forgerock.openidm.config.enhanced.JSONEnhancedConfig.getConfiguration(JSONEnhancedConfig.java:104)
      	at org.forgerock.openidm.felix.webconsole.WebConsoleSecurityProviderService.activate(WebConsoleSecurityProviderService.java:68)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.apache.felix.scr.impl.inject.BaseMethod.invokeMethod(BaseMethod.java:224)
      	at org.apache.felix.scr.impl.inject.BaseMethod.access$500(BaseMethod.java:39)
      	at org.apache.felix.scr.impl.inject.BaseMethod$Resolved.invoke(BaseMethod.java:617)
      	at org.apache.felix.scr.impl.inject.BaseMethod.invoke(BaseMethod.java:501)
          (...)
      	at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: org.apache.felix.log.LogException: org.forgerock.json.JsonValueException: /: Expecting a value
      	at org.forgerock.json.JsonValue.required(JsonValue.java:1212)
      	at org.forgerock.openidm.config.enhanced.JSONEnhancedConfig.getRawConfiguration(JSONEnhancedConfig.java:130)
      	... 76 more
      Oct 01, 2017 3:49:09 AM org.forgerock.openidm.external.rest.RestService activate
      INFO: External REST connectivity started.
      Oct 01, 2017 3:49:12 AM org.forgerock.openidm.config.installer.JSONConfigInstaller parsePid
      INFO: Configuring service PID org.forgerock.openidm.ui.context factory PID oauth
      

        Attachments

        1. audit.sql.out
          0.9 kB
        2. finest_log_with_startup_failure_openidm0.log.0.txt
          295 kB
        3. finest_log_with_success_startup_openidm0.log.0.txt
          637 kB
        4. log_openidm_with_db2.txt
          65 kB
        5. openidm.sql.out
          6 kB
        6. openidm0.log.0
          4 kB
        7. openidm0.log.0-DB2-11
          403 kB
        8. openidm0.log.1
          321 kB
        9. openidm0-another-instance.log.0
          141 kB

          Issue Links

            Activity

              People

              • Assignee:
                cgdrake Chris Drake
                Reporter:
                laurent.bristiel Laurent Bristiel [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: