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

Captcha is broken and java.lang.VerifyError occurs after upgrade from 7.0.4 to master or after installing DXP 7.1 FP17/DXP 7.2 FP5 fix pack

    Details

      Description

      Important Change note about the fix

      The fix includes a new upgrade process for the Captcha Impl (1.0.0 to 1.1.0) that will be executed on startup so please create a backup of your Configuration_ table before starting DXP after applying the fix or moving to a Patch Level containing this fix.

      This fix will be released in future Service Packs for the affected versions.


      Steps to reproduce -DXP 7.2, DXP 7.1

      1. Start DXP 7.2 SP1/DXP 7.1 SP3 (or any DXP 7.2/7.1 bundle with patch level lower than FP5/FP17)
      2. Go to System Settings - CAPTCHA
      3. Save the config (to imitate if CAPTCHA was set up)
      4. Stop DXP
      5. Install FP5
      6. Start DXP

      Steps to reproduce - master

      1. Import mysql.sql from data-archive-staging-with-default-setting-mysql.zip.
      2. Upgrade to master.
      3. Start up master.

       Expected Results:
      No errors during startup process.

       Actual Results:
      VerifyError occurs in the console:

      2020-05-18 10:49:02.051 ERROR [CM Event Dispatcher (Fire ConfigurationEvent: pid=com.liferay.captcha.configuration.CaptchaConfiguration)][SimpleCaptchaImpl:93] bundle com.liferay.captcha.api:4.1.2 (1371)[com.liferay.captcha.simplecaptcha.SimpleCaptchaImpl(1356)] : The activate method has thrown an exception 
      java.lang.VerifyError: (class: nl/captcha/gimpy/BlockGimpyRenderer, method: gimp signature: (Ljava/awt/image/BufferedImage;)V) Incompatible argument to function
      	at java.lang.Class.getDeclaredConstructors0(Native Method)
      	at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
      	at java.lang.Class.getConstructor0(Class.java:3075)
      	at java.lang.Class.newInstance(Class.java:412)
      	at com.liferay.captcha.simplecaptcha.SimpleCaptchaImpl._getInstance(SimpleCaptchaImpl.java:461)
      	at com.liferay.captcha.simplecaptcha.SimpleCaptchaImpl.initGimpyRenderers(SimpleCaptchaImpl.java:311)
      	at com.liferay.captcha.simplecaptcha.SimpleCaptchaImpl.activate(SimpleCaptchaImpl.java:170)
      	at com.liferay.captcha.simplecaptcha.SimpleCaptchaImpl.activate(SimpleCaptchaImpl.java:182)
      	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)
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  7 weeks, 3 days ago

                  Packages

                  Version Package
                  7.3.3 CE GA4
                  Master