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

Liferay 6.2 does not work with Oracle Java 8u261

    Details

      Description

      Liferay 6.2 starts up successfully with Java 8u251, but with 261, an ArrayIndexOutOfBoundsException will occur and you will be unable to access Liferay.

      Since Liferay 6.2 is still under some support, I am creating this ticket, see https://help.liferay.com/hc/en-us/articles/360016295852-Liferay-Portal-End-of-Life-Policy.

      I was only able to reproduce on Ubuntu and not on Windows.

      Steps to reproduce
      1. Install Java 8u261 on Linux.
      2. Start up Liferay 6.2
      Result: You will see this error:

      00:43:34,246 ERROR [localhost-startStop-1][MainServlet:397] java.lang.ArrayIndexOutOfBoundsException: 0
      java.lang.ArrayIndexOutOfBoundsException: 0
      	at com.liferay.portal.util.PortalInstances._getDefaultCompanyId(PortalInstances.java:344)
      	at com.liferay.portal.util.PortalInstances.getDefaultCompanyId(PortalInstances.java:83)
      	at com.liferay.portal.servlet.MainServlet.initCompanies(MainServlet.java:807)
      	at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:394)
      	at javax.servlet.GenericServlet.init(GenericServlet.java:160)
      	at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)
      	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193)
      	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088)
      	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5176)
      	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5460)
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
      	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
      	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
      	at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:656)
      	at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1635)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      00:43:34,279 INFO  [liferay/scheduler_dispatch-4][PluginPackageUtil:1280] Reloading repositories
      Exception in thread "liferay/scheduler_dispatch-4" java.lang.NoClassDefFoundError: Could not initialize class com.liferay.ibm.icu.impl.ICUResourceBundle
      	at com.liferay.ibm.icu.impl.ZoneMeta.getSystemTimeZone(ZoneMeta.java:585)
      	at com.liferay.ibm.icu.util.TimeZone.getTimeZone(TimeZone.java:675)
      	at com.liferay.ibm.icu.util.TimeZone.getTimeZone(TimeZone.java:644)
      	at com.liferay.ibm.icu.util.TimeZone.getDefault(TimeZone.java:807)
      	at com.liferay.ibm.icu.util.Calendar.getInstanceInternal(Calendar.java:1630)
      	at com.liferay.ibm.icu.util.Calendar.getInstance(Calendar.java:1561)
      	at com.liferay.portlet.blogs.util.LinkbackProducerUtil.sendQueuedPingbacks(LinkbackProducerUtil.java:62)
      	at com.liferay.portlet.blogs.messaging.LinkbackMessageListener.doReceive(LinkbackMessageListener.java:31)
      	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:67)
      	at com.sun.proxy.$Proxy301.receive(Unknown Source)
      	at com.liferay.portal.kernel.scheduler.messaging.SchedulerEventMessageListenerWrapper.receive(SchedulerEventMessageListenerWrapper.java:77)
      	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
      	at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:71)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:682)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:593)
      	at java.lang.Thread.run(Thread.java:748)
      

      This was reproduced on LIferay 6.2 Portal-172.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              christopher.lui Christopher Lui
              Participants of an Issue:
              Recent user:
              Jorge Diaz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                19 weeks, 1 day ago

                  Packages

                  Version Package