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

sustaining/4.0.x: ClassNotFoundException on startup

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: OpenIDM 4.0.0.1
    • Fix Version/s: OpenIDM 4.0.1
    • Component/s: None
    • Labels:
    • Environment:
      OpenIDM 4.0.0.1-b685r1f3

      Description

      On IDM startup, we have several exceptions

      Executing ./startup.sh...
      Using OPENIDM_HOME:   /home/soge/_WORK/openidm-sustaining/openidm-zip/target/openidm
      Using PROJECT_HOME:   /home/soge/_WORK/openidm-sustaining/openidm-zip/target/openidm
      Using OPENIDM_OPTS:   -Xmx1024m -Xms1024m
      Using LOGGING_CONFIG: -Djava.util.logging.config.file=/home/soge/_WORK/openidm-sustaining/openidm-zip/target/openidm/conf/logging.properties
      Using boot properties at /home/soge/_WORK/openidm-sustaining/openidm-zip/target/openidm/conf/boot/boot.properties
      -> Oct 31, 2019 2:34:53 PM org.forgerock.openidm.logging.LogServiceTracker logEntry
      SEVERE: Bundle: org.forgerock.openidm.servlet [141] FrameworkEvent ERROR
      org.apache.felix.log.LogException: org.osgi.framework.BundleException: Unresolved constraint in bundle org.forgerock.openidm.servlet [141]: Unable to resolve 141.0: missing requirement [141.0] osgi.wiring.package; (&(osgi.wiring.package=com.google.common.net)(version>=26.0.0)(!(version>=27.0.0)))
      	at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3974)
      	at org.apache.felix.framework.Felix.startBundle(Felix.java:2037)
      	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:748)
      
      Configured class org.forgerock.openidm.jetty.LargePayloadServletFilter failed to load from configured class path URLs []
      java.lang.ClassNotFoundException: org.forgerock.openidm.jetty.LargePayloadServletFilter
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      	at java.lang.Class.forName0(Native Method)
      	at java.lang.Class.forName(Class.java:348)
      	at org.forgerock.openidm.servletregistration.impl.ServletRegistrationSingleton.registerFilterWithWebContainer(ServletRegistrationSingleton.java:215)
      	at org.forgerock.openidm.servletregistration.impl.ServletRegistrationSingleton.registerFilter(ServletRegistrationSingleton.java:150)
      	at org.forgerock.openidm.servletregistration.impl.ServletFilterConfiguration.activate(ServletFilterConfiguration.java:85)
      	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.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.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.ops4j.pax.web.service.internal.Activator.updateController(Activator.java:354)
      	at org.ops4j.pax.web.service.internal.Activator$3.run(Activator.java:291)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      
      2019-10-31 14:34:55:914 SEVE Error registering filter { "classPathURLs": [  ], "systemProperties": {  }, "requestAttributes": {  }, "scriptExtensions": {  }, "initParams": { "maxRequestSizeInMegabytes": "5" }, "urlPatterns": [ "/*" ], "filterClass": "org.forgerock.openidm.jetty.LargePayloadServletFilter" } [ServletRegistrationSingleton]Bundle: org.forgerock.openidm.servlet-registrator [92] [org.forgerock.openidm.servletfilter] The activate method has thrown an exception
      java.lang.ClassNotFoundException: org.forgerock.openidm.jetty.LargePayloadServletFilter
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      	at java.lang.Class.forName0(Native Method)
      	at java.lang.Class.forName(Class.java:348)
      	at org.forgerock.openidm.servletregistration.impl.ServletRegistrationSingleton.registerFilterWithWebContainer(ServletRegistrationSingleton.java:215)
      	at org.forgerock.openidm.servletregistration.impl.ServletRegistrationSingleton.registerFilter(ServletRegistrationSingleton.java:150)
      	at org.forgerock.openidm.servletregistration.impl.ServletFilterConfiguration.activate(ServletFilterConfiguration.java:85)
      	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.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.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.ops4j.pax.web.service.internal.Activator.updateController(Activator.java:354)
      	at org.ops4j.pax.web.service.internal.Activator$3.run(Activator.java:291)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      
      2019-10-31 14:34:55:916 SEVE Bundle: org.forgerock.openidm.servlet-registrator [92] [org.forgerock.openidm.servletfilter] Component instance could not be created, activation failed [Framework]
      2019-10-31 14:35:11:446 SEVE OpenIDM failure during startup, ACTIVE_NOT_READY: Not all modules started [] [org.forgerock.openidm.servlet] [] [HealthService]
      
      

        Attachments

          Activity

            People

            • Assignee:
              brmiller Brendan Miller
              Reporter:
              michal.orlik@profiq.cz Michal Orlik
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: