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

sun.misc.Unsafe is not compatible with IBM JDK

    Details

      Description

      Jodd is utilizing sun.misc.Unsafe, but this is not compatible with IBM's latest JDK.

      Steps to reproduce:

      0. Download and install the latest IBM JDK (Java 8)
      https://developer.ibm.com/javasdk/downloads/sdk8/
      Set the JAVA_HOME variable to this JDK.

      1. Start the bundle and place a Blogs portlet on the welcome page.
      2. Click "Add Blog Entry", then click "Select File".
      Result: On the UI you get error "Portlet is temporarily unavailable. " and in console, the following stack trace:

      12:20:58,498 ERROR [http-nio-8080-exec-8][render_portlet_jsp:131] null
      jodd.json.JsonException: Syntax error! End of JSON_offset: 0 near: "" [Sanitized]
              at jodd.json.JsonParser.syntaxError(JsonParser.java:951)
              at jodd.json.JsonParser._parse(JsonParser.java:236)
              at jodd.json.JsonParser.parse(JsonParser.java:194)
              at com.liferay.portal.json.JSONDeserializerImpl.deserialize(JSONDeserializerImpl.java:39)
              at com.liferay.item.selector.web.internal.util.ItemSelectorCriterionSerializerImpl.deserialize(ItemSelectorCriterionSerializerImpl.java:75)
              at com.liferay.item.selector.web.internal.ItemSelectorImpl.getItemSelectorCriteria(ItemSelectorImpl.java:100)
              at com.liferay.item.selector.web.internal.ItemSelectorImpl.getItemSelectorRendering(ItemSelectorImpl.java:145)
              at com.liferay.item.selector.web.internal.portlet.ItemSelectorPortlet.render(ItemSelectorPortlet.java:71)
              at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:103)
              at com.liferay.portlet.ScriptDataPortletFilter.doFilter(ScriptDataPortletFilter.java:57)
              at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:100)
              at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:64)
              at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:108)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
              at org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration.service(EndpointRegistration.java:153)
              at org.eclipse.equinox.http.servlet.internal.servlet.ResponseStateHandler.processRequest(ResponseStateHandler.java:62)
              at org.eclipse.equinox.http.servlet.internal.context.DispatchTargets.doDispatch(DispatchTargets.java:117)
              at org.eclipse.equinox.http.servlet.internal.servlet.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:48)
              at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:531)
              at com.liferay.portlet.InvokerPortletImpl.invokeRender(InvokerPortletImpl.java:606)
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 45 weeks, 6 days ago

                Packages

                Version Package
                7.0.0 DXP FP46
                7.0.6 CE GA7
                7.0.0 DXP SP8
                7.0.X
                7.1.0 M2
                7.1.X
                Master