Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-3214

NullPointerException thrown on re-deploy of development mode portlet to Liferay 7.0

    Details

      Description

      Steps to reproduce:

      1. Deploy the jsf-applicant-portlet to Liferay 7.0 (GA 4 or higher):

      (cd demo/jsf-applicant-portlet/ && deploy.sh liferay,development)
      

      2. Wait for the portlet to fully deploy and then re-deploy the jsf-applicant-portlet to Liferay 7.0 (GA 4 or higher):

      (cd demo/jsf-applicant-portlet/ && deploy.sh liferay,development)
      

      If the bug still exists, the following stacktrace will appear:

      java.lang.NullPointerException
              at java.util.ArrayList.<init>(ArrayList.java:177)
              at com.sun.faces.application.WebappLifecycleListener.getActiveSessions(WebappLifecycleListener.java:395)
              at com.sun.faces.config.ConfigureListener.reload(ConfigureListener.java:544)
              at com.sun.faces.config.ConfigureListener.access$700(ConfigureListener.java:122)
              at com.sun.faces.config.ConfigureListener$WebConfigResourceMonitor.run(ConfigureListener.java:1101)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
              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)
      

      If the bug is fixed, the stacktrace will not appear.

      Workaround

      Use "Production" mode when deploying JSF portlets.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: