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

Staging Remote Live - SSL Connection - Console error and "Fail" Message when remote publishing

    Details

      Description

      This bug was found while running this manual cert:
      https://github.com/liferay/liferay-qa-ee/blob/master/liferay-portal/6.1.x/staging/6.1%20-%20LP%20-%20Staging%20-%20Remote%20%20Live%20-%20SSL%20Connection.markdown#SaveTheCertificateFromRemoteMachineOnLocalMachine

      Steps to reproduce:

      1. Set up portal-ext on remote and local machine
      2. Modify the hosts file on remote machine
      3. Generate certificate keystore with keytool in remote machine
      4. Configure tomcat server.xml
      5. Start remote instance
      6. Create Site
      7. Copy certificate into publisher-cert.txt and send it to the local machine
      8. Modify the hosts file on local machine
      9. Generate certificate keystore with keytool in local machine
      10. Configure tomcat server.xml
      11. Import the certificate
      12. Start local machine
      13. Activate Remote Staging
      14. Add Web Content Display portlet and add a Web Content Article
      15. Mark as ready for publication and publish to remote live

      Expected result:
      The portlet and content should publish successfully

      Actual result:
      The portlet and content are published, but the Staging process says Fail and there is a console error:

      17:27:54,711 ERROR [liferay/background_task-1][LayoutStagingHandler:92] java.lang.NullPointerException
      java.lang.NullPointerException
      	at com.liferay.portal.model.LayoutStagingHandler._getLayoutRevision(LayoutStagingHandler.java:150)
      	at com.liferay.portal.model.LayoutStagingHandler.<init>(LayoutStagingHandler.java:124)
      	at com.liferay.portal.model.LayoutStagingHandler.<init>(LayoutStagingHandler.java:55)
      	at com.liferay.portal.service.impl.LayoutLocalServiceStagingAdvice.getProxiedLayout(LayoutLocalServiceStagingAdvice.java:539)
      	at com.liferay.portal.service.impl.LayoutLocalServiceStagingAdvice.wrapLayout(LayoutLocalServiceStagingAdvice.java:569)
      	at com.liferay.portal.service.impl.LayoutLocalServiceStagingAdvice.wrapReturnValue(LayoutLocalServiceStagingAdvice.java:626)
      	at com.liferay.portal.service.impl.LayoutLocalServiceStagingAdvice.invoke(LayoutLocalServiceStagingAdvice.java:141)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      	at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
      	at com.liferay.portal.security.pacl.PACLInvocationHandler.doInvoke(PACLInvocationHandler.java:62)
      	at com.liferay.portal.security.pacl.PACLInvocationHandler.invoke(PACLInvocationHandler.java:51)
      	at $Proxy134.getLayout(Unknown Source)
      	at com.liferay.portal.service.LayoutLocalServiceUtil.getLayout(LayoutLocalServiceUtil.java:227)
      	at com.liferay.portal.lar.backgroundtask.LayoutRemoteStagingBackgroundTaskExecutor.exportLayoutsAsFile(LayoutRemoteStagingBackgroundTaskExecutor.java:156)
      	at com.liferay.portal.lar.backgroundtask.LayoutRemoteStagingBackgroundTaskExecutor.execute(LayoutRemoteStagingBackgroundTaskExecutor.java:78)
      	at com.liferay.portal.kernel.backgroundtask.SerialBackgroundTaskExecutor.execute(SerialBackgroundTaskExecutor.java:56)
      	at com.liferay.portal.backgroundtask.messaging.BackgroundTaskMessageListener.doReceive(BackgroundTaskMessageListener.java:108)
      	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
      	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
      	at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:69)
      	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:722)
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  6 years, 7 weeks, 6 days ago

                  Packages

                  Version Package
                  6.1.X EE
                  6.2.0 CE RC1
                  6.2.0 CE RC2
                  6.2.0 CE RC3