RE: Liferay 7 and OpenJ9 fail to load themes

thumbnail
William Gosse, modified 6 Years ago. Liferay Master Posts: 533 Join Date: 7/4/10 Recent Posts
In the advent of free support for Oracle JDK 8 ending in January I'm starting to look for alternatives. I thought I'd try running Liferay on Eclipse OpenJ9, specifically version jdk8u192-b12.  I'm seeing an issue with the themes not loading. My Liferay log having messages like:
2018-10-30 19:43:53.572 WARN  [http-nio-8080-exec-5][ThemeLocalServiceImpl:230] No theme found for specified theme id maintheme_WAR_signintheme. Returning the default theme.

In the osgi/state folder get a log file containing the following message:
!SESSION 2018-10-30 19:43:05.495 -----------------------------------------------
eclipse.buildId=unknown
java.fullversion=1.8.0_192-b12
JRE 1.8.0 Windows 10 amd64-64-Bit Compressed References 20181019_105 (JIT enabled, AOT enabled)
OpenJ9   - 090ff9dc
OMR      - ea548a66
JCL      - 51609250b5 based on jdk8u192-b12
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US

!ENTRY org.apache.felix.fileinstall 4 0 2018-10-30 19:43:05.495
!MESSAGE Failed to install artifact: C:\Dev\aim_project_repos\liferay-ce-portal-7.0-ga7\osgi\war\sign-in-theme.war
!STACK 0
java.lang.NullPointerException
at com.liferay.portal.util.FileImpl.deltree(FileImpl.java:342)
at com.liferay.portal.util.FileImpl.deltree(FileImpl.java:344)
at com.liferay.portal.util.FileImpl.deltree(FileImpl.java:344)
at com.liferay.portal.util.FileImpl.deltree(FileImpl.java:344)
at com.liferay.portal.kernel.util.FileUtil.deltree(FileUtil.java:176)
at com.liferay.portal.osgi.web.wab.generator.internal.connection.WabURLConnection$1.close(WabURLConnection.java:113)
at java.io.BufferedInputStream.close(BufferedInputStream.java:483)
at org.eclipse.osgi.storage.StorageUtil.readFile(StorageUtil.java:74)
at org.eclipse.osgi.storage.Storage.stageContent0(Storage.java:838)
at org.eclipse.osgi.storage.Storage.stageContent(Storage.java:801)
at org.eclipse.osgi.storage.Storage.install(Storage.java:503)
at org.eclipse.osgi.internal.framework.BundleContextImpl.installBundle(BundleContextImpl.java:146)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.installOrUpdateBundle(DirectoryWatcher.java:1036)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:952)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:871)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:485)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:361)
at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:312)


I have several other Java based web apps and restful services that seem to run fine. I'd like to know if this an issue with OpenJdk in general or OpenJ9 specifically. 

​​​​​​​Any help or information will be greatly appreciated. 

I should also speicifically mention the the default sigin porlet fields would not allow data entry on OpenJ9 as well. 

I went ahead and installed the latest Oracle JDK,  jdk1.8.0_192, and it works fine with Liferay 7. So the problem seems to be with OpenJ9 itself
thumbnail
William Gosse, modified 6 Years ago. Liferay Master Posts: 533 Join Date: 7/4/10 Recent Posts
I just try these guys: https://www.azul.com/downloads/zulu/Specifically zulu8.31.0.1-jdk8.0.181-win_x64 server version. Everything works fine on it.
I also tried their zulu11.2.3-jdk11.0.1-win_x64 server as well. The BPM engine I'm using seemed to have issue with it so it never started. I nerver got araound to trying Liferay with it.