-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.1.2 CE GA3, 7.1.X, 7.2.0 GA1, 7.2.X, 7.2.1 CE GA2, 7.3.0 CE GA1, Master
-
Fix Version/s: 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
-
Component/s: Core Infrastructure > Servlet JSP Compiler
-
Branch Version/s:7.3.x, 7.2.x, 7.1.x, 7.0.x
-
Backported to Branch:Committed
-
Fix Priority:5
-
JDK:Oracle OpenJDK 11
-
Git Pull Request:
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.
- causes
-
LPS-108250 Javac compilation when starting portal on Windows system
- Closed
- is duplicated by
-
LPS-110836 OpenJDK 11.0.6 compatibility problem
- Closed
- links to