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

OpenIDM throws NPE on 1st startup with remote connector server.

    XMLWordPrintable

Details

    Description

      On some environments, when OpenIDM is configured to use remote connector server and is started for the first time, the OpenIDM does not start properly. It will display OpenIDM ready message into console, but on every request it replies with 503. If you take a look into log, you'll find a NullPointerException. Note that this issue appears only on some environments.

      Environments where I was able to reproduce:

      • Fedora 17, OpenJDK 1.7.0_25
      • Mint 16, OpenJDK 1.7.0_25
      • CentOS 6.4, Oracle 1.7.0_60

      Workaround:
      When this problem occurs, there's an easy workaround. Simply restart the OpenIDM and everything should be working again.

      Steps to reproduce:
      1) Dowload ICF from http://maven.forgerock.org/repo/simple/releases/org/forgerock/openicf/framework/openicf-zip/1.4.0.0/, you want the openicf-zip-1.4.0.0.zip
      2) Unzip it somewhere.
      3) Unzip OpenIDM
      4) Copy csv connector to openicf/bundles
      5) Overwrite the openidm/conf with attached file.
      6) Start openicf server by:

      cd path/to/openicf
      ./bin/ConnectorServer.sh /run
      

      7) start openidm.
      8) Check the logs for following exception:

      Jul 15, 2014 6:05:25 PM org.forgerock.openidm.logging.LogServiceTracker logEntry
      SEVERE: Bundle: org.forgerock.openidm.authnfilter [36] [org.forgerock.openidm.authnfilterbuilder] The activate method has thrown an exception
      java.lang.NullPointerException
      	at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.removeFilter(JettyServerImpl.java:410)
      	at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Started.removeFilter(ServerControllerImpl.java:303)
      	at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.removeFilter(ServerControllerImpl.java:148)
      	at org.ops4j.pax.web.service.internal.HttpServiceStarted.unregisterFilter(HttpServiceStarted.java:470)
      	at org.ops4j.pax.web.service.internal.HttpServiceProxy.unregisterFilter(HttpServiceProxy.java:195)
      	at org.forgerock.openidm.servletregistration.impl.ServletRegistrationSingleton.unregisterFilterWithWebContainer(ServletRegistrationSingleton.java:259)
      	at org.forgerock.openidm.servletregistration.impl.ServletRegistrationSingleton.registerFilter(ServletRegistrationSingleton.java:142)
      	at org.forgerock.openidm.jaspi.config.OSGiAuthnFilterBuilder.registerAuthnFilter(OSGiAuthnFilterBuilder.java:252)
      	at org.forgerock.openidm.jaspi.config.OSGiAuthnFilterBuilder.activate(OSGiAuthnFilterBuilder.java:185)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	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.framework.BundleContextImpl.registerService(BundleContextImpl.java:320)
      	at org.forgerock.openidm.router.RouteEntryImpl.<init>(RouterRegistryImpl.java:477)
      	at org.forgerock.openidm.router.RouterRegistryImpl.addRoute(RouterRegistryImpl.java:169)
      	at org.forgerock.openidm.router.RouterRegistryImpl.addRoute(RouterRegistryImpl.java:191)
      	at org.forgerock.openidm.router.RouterRegistryImpl.addingService(RouterRegistryImpl.java:227)
      	at org.forgerock.openidm.router.RouterRegistryImpl.addingService(RouterRegistryImpl.java:68)
      	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:932)
      	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:864)
      	at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
      	at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
      	at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:894)
      	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.ImmediateComponentManager.reconfigure(ImmediateComponentManager.java:398)
      	at org.apache.felix.scr.impl.config.ConfiguredComponentHolder.configurationUpdated(ConfiguredComponentHolder.java:201)
      	at org.apache.felix.scr.impl.config.ConfigurationComponentRegistry.configurationEvent(ConfigurationComponentRegistry.java:277)
      	at org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.sendEvent(ConfigurationManager.java:2032)
      	at org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.run(ConfigurationManager.java:2002)
      	at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:103)
      	at java.lang.Thread.run(Thread.java:724)
      

      Attachments

        Activity

          People

            brmiller Brendan Miller
            Ladislav.Folta Ladislav Folta
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: