Details

      Description

      OpenJDK 11.0.6 was released a couple of weeks ago and it seems to cause problems with Liferay CE 7.2.0 and 7.2.1 (and possibly also with older releases).

      08:35:58,792 ERROR javax.portlet.PortletException: org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP
      at com.liferay.portlet.internal.PortletRequestDispatcherImpl.dispatch(PortletRequestDispatcherImpl.java:305)
      at com.liferay.portlet.internal.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:123)
      at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.include(MVCPortlet.java:578)
      ...

      Caused by: java.lang.NullPointerException: entry
       at java.base/java.util.Objects.requireNonNull(Objects.java:246)
       at java.base/java.util.zip.ZipFile.getInputStream(ZipFile.java:372)
       at com.liferay.portal.kernel.zip.ZipFileUtil.openInputStream(ZipFileUtil.java:36)
       at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JarJavaFileObject.openInputStream(JarJavaFileObject.java:39)
       at jdk.compiler/com.sun.tools.javac.api.ClientCodeWrapper$WrappedFileObject.openInputStream(ClientCodeWrapper.java:592)
      ...

       

      Looking into ${liferay_home}/work shows that subdirectories are created properly but there are no .java nor .class files.

      An example with OpenJDK 11.0.6:

      $ find work/com.liferay.login.web-4.0.8
      work/com.liferay.login.web-4.0.8
      work/com.liferay.login.web-4.0.8/org
      work/com.liferay.login.web-4.0.8/org/apache
      work/com.liferay.login.web-4.0.8/org/apache/jsp

      same with OpenJDK 11.0.4:

      $ find work/com.liferay.login.web-4.0.8
      work/com.liferay.login.web-4.0.8
      work/com.liferay.login.web-4.0.8/org
      work/com.liferay.login.web-4.0.8/org/apache
      work/com.liferay.login.web-4.0.8/org/apache/jsp
      work/com.liferay.login.web-4.0.8/org/apache/jsp/login_jsp.class
      work/com.liferay.login.web-4.0.8/org/apache/jsp/navigation_jsp.class
      work/com.liferay.login.web-4.0.8/org/apache/jsp/navigation_jsp.java
      work/com.liferay.login.web-4.0.8/org/apache/jsp/login_jsp.java

      This seems to happen with all customized and Liferay's own .jsp files. Possibly an issue with the jsp -> java compiler.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kyle.miho Kyle Miho
              Reporter:
              mikael.andersson@alekstra.com Mikael Andersson
              Participants of an Issue:
              Recent user:
              Joel Garman
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                38 weeks, 5 days ago

                  Packages

                  Version Package
                  7.0.10.13 DXP SP13
                  7.0.X
                  7.1.X
                  7.2.X
                  7.3.1 CE GA2
                  7.3.2 CE GA3
                  7.3.10 DXP GA1
                  Master