Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-119532

Add config file cause java.lang.ClassNotFoundException

    Details

    • Fix Priority:
      4

      Description

      Steps for reproduce:

      1. Add com.liferay.captcha.configuration.CaptchaConfiguration.config with maxChallenges="0" to osgi/configs
      2. Startup portal
        11:58:00,969 ERROR [CM Event Dispatcher (Fire ConfigurationEvent: pid=com.liferay.captcha.configuration.CaptchaConfiguration)][SimpleCaptchaImpl:518] Unable to load 
        java.lang.ClassNotFoundException:  cannot be found by com.liferay.captcha.api_3.1.0
        	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:508)
        	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:419)
        	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:411)
        	at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:151)
        	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        	at com.liferay.captcha.simplecaptcha.SimpleCaptchaImpl._loadClass(SimpleCaptchaImpl.java:529)
        	at com.liferay.captcha.simplecaptcha.SimpleCaptchaImpl._getInstance(SimpleCaptchaImpl.java:511)
        	at com.liferay.captcha.simplecaptcha.SimpleCaptchaImpl.initGimpyRenderers(SimpleCaptchaImpl.java:326)
        	at com.liferay.captcha.simplecaptcha.SimpleCaptchaImpl.activate(SimpleCaptchaImpl.java:176)
        	at com.liferay.captcha.simplecaptcha.SimpleCaptchaImpl.activate(SimpleCaptchaImpl.java:188)
        	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.methods.BaseMethod.invokeMethod(BaseMethod.java:228)
        	at org.apache.felix.scr.impl.inject.methods.BaseMethod.access$500(BaseMethod.java:41)
        	at org.apache.felix.scr.impl.inject.methods.BaseMethod$Resolved.invoke(BaseMethod.java:664)
        	at org.apache.felix.scr.impl.inject.methods.BaseMethod.invoke(BaseMethod.java:510)
        	at org.apache.felix.scr.impl.inject.methods.ActivateMethod.invoke(ActivateMethod.java:317)
        	at org.apache.felix.scr.impl.inject.methods.ActivateMethod.invoke(ActivateMethod.java:307)
        	at org.apache.felix.scr.impl.manager.SingleComponentManager.invokeModifiedMethod(SingleComponentManager.java:837)
        	at org.apache.felix.scr.impl.manager.SingleComponentManager.modify(SingleComponentManager.java:792)
        	at org.apache.felix.scr.impl.manager.SingleComponentManager.reconfigure(SingleComponentManager.java:710)
        	at org.apache.felix.scr.impl.manager.SingleComponentManager.reconfigure(SingleComponentManager.java:674)
        	at org.apache.felix.scr.impl.manager.ConfigurableComponentHolder.configurationUpdated(ConfigurableComponentHolder.java:435)
        	at org.apache.felix.scr.impl.manager.RegionConfigurationSupport.configurationEvent(RegionConfigurationSupport.java:317)
        	at org.apache.felix.scr.impl.manager.RegionConfigurationSupport$2.configurationEvent(RegionConfigurationSupport.java:119)
        	at org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.sendEvent(ConfigurationManager.java:1685)
        	at org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.run(ConfigurationManager.java:1637)
        	at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:138)
        	at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:105)
        	at java.lang.Thread.run(Thread.java:745)
        

      This issue first found when test 7.1.x gauntlet sp.

        Attachments

          Activity

            People

            Assignee:
            raven.song Raven Song
            Reporter:
            raven.song Raven Song
            Participants of an Issue:
            Recent user:
            Brian Wulbern
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              9 weeks, 4 days ago

                Packages

                Version Package