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

JDBC repo errors on startup when using mysql

    Details

    • Target Version/s:
    • Verified Version/s:
    • Support Ticket IDs:

      Description

      On startup with mysql as repo we are seeing the following stack trace, the application seems to start and run as expected even after the error, this is using the provided template repo file and datasource files for mysql :

      14272 pts/2    Sl     6:01 java -Djava.util.logging.config.file=/opt/forgerock/products/IDM/current/openidm/conf/logging.properties -Xmx1024m -Xms1024m -Djava.endorsed.dirs= -classpath /opt/forgerock/products/IDM/current/openidm/bin/*:/opt/forgerock/products/IDM/current/openidm/framework/* -Dopenidm.system.server.root=/opt/forgerock/products/IDM/current/openidm -Djava.awt.headless=true org.forgerock.commons.launcher.Main -c /opt/forgerock/products/IDM/current/openidm/bin/launcher.json -p /opt/forgerock/products/IDM/current/projects/frdp
      /opt/forgerock/products/IDM/current/openidm/shutdown.sh
      Stopping OpenIDM (14250)
      Fri Aug 26 18:16:14 UTC 2016 Start
      Executing /opt/forgerock/products/IDM/current/openidm/startup.sh...
      Using OPENIDM_HOME:   /opt/forgerock/products/IDM/current/openidm
      Using PROJECT_HOME:   /opt/forgerock/products/IDM/current/openidm//opt/forgerock/products/IDM/current/projects/frdp
      Using OPENIDM_OPTS:   -Xmx1024m -Xms1024m
      Using LOGGING_CONFIG: -Djava.util.logging.config.file=/opt/forgerock/products/IDM/current/openidm/conf/logging.properties
      Using boot properties at /opt/forgerock/products/IDM/current/projects/frdp/conf/boot/boot.properties
      -> ShellTUI: No standard input...exiting.
      Aug 26, 2016 6:16:21 PM org.forgerock.openidm.repo.jdbc.impl.JDBCRepoService init
      WARNING: Configuration invalid, can not start JDBC repository.
      java.lang.NullPointerException
      	at org.forgerock.openidm.repo.jdbc.impl.JDBCRepoService.init(JDBCRepoService.java:898)
      	at org.forgerock.openidm.repo.jdbc.impl.JDBCRepoService.activate(JDBCRepoService.java:202)
      	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:497)
      	at org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:227)
      	at org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:38)
      	at org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:591)
      	at org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:472)
      	at org.apache.felix.scr.impl.helper.ActivateMethod.invoke(ActivateMethod.java:146)
      	at org.apache.felix.scr.impl.manager.ImmediateComponentManager.createImplementationObject(ImmediateComponentManager.java:226)
      	at org.apache.felix.scr.impl.manager.ImmediateComponentManager.createComponent(ImmediateComponentManager.java:118)
      	at org.apache.felix.scr.impl.manager.AbstractComponentManager$Unsatisfied.activate(AbstractComponentManager.java:997)
      	at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:333)
      	at org.apache.felix.scr.impl.manager.DependencyManager.serviceAdded(DependencyManager.java:283)
      	at org.apache.felix.scr.impl.manager.DependencyManager.serviceChanged(DependencyManager.java:170)
      	at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:932)
      	at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:793)
      	at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:543)
      	at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4419)
      	at org.apache.felix.framework.Felix.registerService(Felix.java:3423)
      	at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)
      	at org.apache.felix.scr.impl.manager.AbstractComponentManager.registerService(AbstractComponentManager.java:449)
      	at org.apache.felix.scr.impl.manager.AbstractComponentManager.registerComponentService(AbstractComponentManager.java:460)
      	at org.apache.felix.scr.impl.manager.AbstractComponentManager$Unsatisfied.activate(AbstractComponentManager.java:1009)
      	at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:333)
      	at org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(AbstractComponentManager.java:157)
      	at org.apache.felix.scr.impl.config.UnconfiguredComponentHolder.enableComponents(UnconfiguredComponentHolder.java:68)
      	at org.apache.felix.scr.impl.BundleComponentActivator.loadDescriptor(BundleComponentActivator.java:253)
      	at org.apache.felix.scr.impl.BundleComponentActivator.initialize(BundleComponentActivator.java:147)
      	at org.apache.felix.scr.impl.BundleComponentActivator.<init>(BundleComponentActivator.java:111)
      	at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:285)
      	at org.apache.felix.scr.impl.Activator.bundleChanged(Activator.java:203)
      	at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:868)
      	at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:789)
      	at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:514)
      	at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4403)
      	at org.apache.felix.framework.Felix.startBundle(Felix.java:2092)
      	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1291)
      	at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
      	at java.lang.Thread.run(Thread.java:745)
      
      Aug 26, 2016 6:16:21 PM org.forgerock.openidm.logging.LogServiceTracker logEntry
      SEVERE: Bundle: org.forgerock.openidm.repo-jdbc [12] [org.forgerock.openidm.repo.jdbc] The activate method has thrown an exception
      org.apache.felix.log.LogException: org.forgerock.openidm.config.enhanced.InvalidException: Configuration invalid, can not start JDBC repository.
      	at org.forgerock.openidm.repo.jdbc.impl.JDBCRepoService.init(JDBCRepoService.java:959)
      	at org.forgerock.openidm.repo.jdbc.impl.JDBCRepoService.activate(JDBCRepoService.java:202)
      	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:497)
      	at org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:227)
      	at org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:38)
      	at org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:591)
      	at org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:472)
      	at org.apache.felix.scr.impl.helper.ActivateMethod.invoke(ActivateMethod.java:146)
      	at org.apache.felix.scr.impl.manager.ImmediateComponentManager.createImplementationObject(ImmediateComponentManager.java:226)
      	at org.apache.felix.scr.impl.manager.ImmediateComponentManager.createComponent(ImmediateComponentManager.java:118)
      	at org.apache.felix.scr.impl.manager.AbstractComponentManager$Unsatisfied.activate(AbstractComponentManager.java:997)
      	at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:333)
      	at org.apache.felix.scr.impl.manager.DependencyManager.serviceAdded(DependencyManager.java:283)
      	at org.apache.felix.scr.impl.manager.DependencyManager.serviceChanged(DependencyManager.java:170)
      	at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:932)
      	at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:793)
      	at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:543)
      	at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4419)
      	at org.apache.felix.framework.Felix.registerService(Felix.java:3423)
      	at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)
      	at org.apache.felix.scr.impl.manager.AbstractComponentManager.registerService(AbstractComponentManager.java:449)
      	at org.apache.felix.scr.impl.manager.AbstractComponentManager.registerComponentService(AbstractComponentManager.java:460)
      	at org.apache.felix.scr.impl.manager.AbstractComponentManager$Unsatisfied.activate(AbstractComponentManager.java:1009)
      	at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:333)
      	at org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(AbstractComponentManager.java:157)
      	at org.apache.felix.scr.impl.config.UnconfiguredComponentHolder.enableComponents(UnconfiguredComponentHolder.java:68)
      	at org.apache.felix.scr.impl.BundleComponentActivator.loadDescriptor(BundleComponentActivator.java:253)
      	at org.apache.felix.scr.impl.BundleComponentActivator.initialize(BundleComponentActivator.java:147)
      	at org.apache.felix.scr.impl.BundleComponentActivator.<init>(BundleComponentActivator.java:111)
      	at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:285)
      	at org.apache.felix.scr.impl.Activator.bundleChanged(Activator.java:203)
      	at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:868)
      	at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:789)
      	at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:514)
      	at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4403)
      	at org.apache.felix.framework.Felix.startBundle(Felix.java:2092)
      	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1291)
      	at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.NullPointerException
      	at org.forgerock.openidm.repo.jdbc.impl.JDBCRepoService.init(JDBCRepoService.java:898)
      	... 41 more
      
      Aug 26, 2016 6:16:21 PM org.forgerock.openidm.logging.LogServiceTracker logEntry
      SEVERE: Bundle: org.forgerock.openidm.repo-jdbc [12] [org.forgerock.openidm.repo.jdbc] Component instance could not be created, activation failed
      OpenIDM ready
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cgdrake Chris Drake
                Reporter:
                john.kimble John Kimble
              • Votes:
                2 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: