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

Portlet deployment fails on Java 8 with java.lang.IllegalArgumentException - Update jodd.jar from 3.4.8 to 3.6.4-snapshot based on LPS-52076 with dependency: LPS-49633

    Details

      Description

      Original Title
      Updata jodd to newer version (3.6.6) for Java 8 support

      Original Description
      The current version of jodd (3.4.8) used in liferay does not support classes compiled with java 8.

      The following exception is thrown in my environment (with ext environment). New versions (e.g. 3.6.6) support java 8 classes.

      2015-10-01 19:22:30,433 ERROR [localhost-startStop-1][MethodParametersResolverImpl:59] java.lang.IllegalArgumentException
      java.lang.IllegalArgumentException
      	at jodd.asm4.ClassReader.<init>(ClassReader.java:170)
      	at jodd.asm4.ClassReader.<init>(ClassReader.java:153)
      	at jodd.asm4.ClassReader.<init>(ClassReader.java:424)
      	at jodd.paramo.Paramo.resolveParameters(Paramo.java:59)
      	at com.liferay.portal.util.MethodParametersResolverImpl.resolveMethodParameters(MethodParametersResolverImpl.java:47)
      	at com.liferay.portal.kernel.util.MethodParametersResolverUtil.resolveMethodParameters(MethodParametersResolverUtil.java:34)
      	at com.liferay.portal.jsonwebservice.JSONWebServiceActionConfig.<init>(JSONWebServiceActionConfig.java:44)
      	at com.liferay.portal.jsonwebservice.JSONWebServiceActionConfig.<init>(JSONWebServiceActionConfig.java:66)
      	at com.liferay.portal.jsonwebservice.JSONWebServiceActionsManagerImpl.registerJSONWebServiceAction(JSONWebServiceActionsManagerImpl.java:275)
      	at com.liferay.portal.kernel.jsonwebservice.JSONWebServiceActionsManagerUtil.registerJSONWebServiceAction(JSONWebServiceActionsManagerUtil.java:92)
      	at com.liferay.portal.jsonwebservice.JSONWebServiceRegistrator.registerJSONWebServiceAction(JSONWebServiceRegistrator.java:261)
      	at com.liferay.portal.jsonwebservice.JSONWebServiceRegistrator.onJSONWebServiceBean(JSONWebServiceRegistrator.java:195)
      	at com.liferay.portal.jsonwebservice.JSONWebServiceRegistrator.processBean(JSONWebServiceRegistrator.java:93)
      	at com.liferay.portal.jsonwebservice.JSONWebServiceRegistrator.processAllBeans(JSONWebServiceRegistrator.java:68)
      	at com.liferay.portal.jsonwebservice.JSONWebServiceActionsManagerImpl.registerServletContext(JSONWebServiceActionsManagerImpl.java:337)
      	at com.liferay.portal.kernel.jsonwebservice.JSONWebServiceActionsManagerUtil.registerServletContext(JSONWebServiceActionsManagerUtil.java:102)
      	at com.liferay.portal.events.GlobalStartupAction.run(GlobalStartupAction.java:317)
      	at com.liferay.portal.events.EventsProcessorImpl.processEvent(EventsProcessorImpl.java:108)
      	at com.liferay.portal.events.EventsProcessorImpl.process(EventsProcessorImpl.java:59)
      	at com.liferay.portal.events.EventsProcessorUtil.process(EventsProcessorUtil.java:32)
      	at com.liferay.portal.servlet.MainServlet.processGlobalStartupEvents(MainServlet.java:1045)
      	at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:317)
      	at javax.servlet.GenericServlet.init(GenericServlet.java:160)
      

      Steps to Reproduce
      1. Start a new Liferay 6.2
      2. Deploy the portlet referenced in a comment below (the portlet was built with 1.8 as ant.build.javac.source and ant.build.javac.target)
      3. Watch the console log for error messages

      Expected results:
      The portlet should be deployed without errors

      Actual Results:
      The error above occurs


      Fixed in master/7.0 by LPS-49633 and LPS-52076

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ian.song Ian Song (Inactive)
                Reporter:
                sascha.gross Sascha Groß
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 28 weeks, 6 days ago

                  Packages

                  Version Package
                  6.2.X EE