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

NoSuchEntryException occurs when publish blog entry to remote site

    Details

      Description

      Steps to reproduce:

      1. Create a site named as Staging Site with a public page Test Page.
      2. Create a site named as Remote Site in second bundle.
      3. Enable remote staging with all contents and page versioning between the above two sites.
      4. Navigate to Test Page in staging site.
      5. Add a site pages variation Test Site Pages Variation.
      6. Add a WCD in Test Page.
      7. Add a web content entry through WCD.
      8. Add a public page named as Test Variation Page under Test Site Pages Variation.
      9. Navigate to Test Variation Page.
      10. Add a page variation named as Test Page Variation.
      11. Add a blog portlet in Test Variation Page.
      12. Add a blog entry through blog portlet.
      13. Navigate to Test Page.
      14. Assert page is under Main Variation of Page Variations and Test Site Pages Variation of Site Pages Variations.
      15. Mark as Ready for Publication.
      16. Navigate to Test Variation Page.
      17. Assert page is under Test Page Variation of Page Variations and Test Site Pages Variation of Site Pages Variations.
      18. Click on Publish to Live button.
      19. Click on Publish to Remote Live with default setting.

      Expected Results:
      Publication should be successful without errors.

      Actual Results:
      NoSuchEntryException occurs in the console:

      2020-08-25 06:21:47.881 ERROR [liferay/background_task-11][StagingServiceHttp:246] com.liferay.portal.kernel.exception.SystemException: java.lang.ClassNotFoundException: com.liferay.blogs.exception.NoSuchEntryException
      com.liferay.portal.kernel.exception.SystemException: java.lang.ClassNotFoundException: com.liferay.blogs.exception.NoSuchEntryException
              at com.liferay.portlet.exportimport.service.http.StagingServiceHttp.publishStagingRequest(StagingServiceHttp.java:236)
              at com.liferay.exportimport.internal.background.task.LayoutRemoteStagingBackgroundTaskExecutor.execute(LayoutRemoteStagingBackgroundTaskExecutor.java:143)
              at com.liferay.portal.background.task.internal.SerialBackgroundTaskExecutor.execute(SerialBackgroundTaskExecutor.java:62)
              at com.liferay.portal.kernel.backgroundtask.DelegatingBackgroundTaskExecutor.execute(DelegatingBackgroundTaskExecutor.java:41)
              at com.liferay.portal.background.task.internal.ThreadLocalAwareBackgroundTaskExecutor.execute(ThreadLocalAwareBackgroundTaskExecutor.java:72)
              at com.liferay.portal.background.task.internal.messaging.BackgroundTaskMessageListener.doReceive(BackgroundTaskMessageListener.java:136)
              at com.liferay.portal.kernel.messaging.BaseMessageListener.doReceive(BaseMessageListener.java:48)
              at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:34)
              at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
              at com.liferay.portal.messaging.internal.ParallelDestination$1.run(ParallelDestination.java:56)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.ClassNotFoundException: com.liferay.blogs.exception.NoSuchEntryException
              at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
              at com.liferay.portal.kernel.util.AggregateClassLoader._loadClass(AggregateClassLoader.java:304)
              at com.liferay.portal.kernel.util.AggregateClassLoader.loadClass(AggregateClassLoader.java:258)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
              at java.lang.Class.forName0(Native Method)
              at java.lang.Class.forName(Class.java:348)
              at com.liferay.petra.lang.ClassResolverUtil.resolve(ClassResolverUtil.java:29)
              at com.liferay.portal.kernel.util.ProtectedClassLoaderObjectInputStream.doResolveClass(ProtectedClassLoaderObjectInputStream.java:43)
              at com.liferay.portal.kernel.io.ProtectedObjectInputStream.resolveClass(ProtectedObjectInputStream.java:65)
              at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1620)
              at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1521)
              at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1781)
              at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1353)
              at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2018)
              at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:503)
              at java.lang.Throwable.readObject(Throwable.java:914)
              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 java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1058)
              at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1909)
              at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1808)
              at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1353)
              at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2018)
              at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:503)
              at java.lang.Throwable.readObject(Throwable.java:914)
              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 java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1058)
              at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1909)
              at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1808)
              at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1353)
              at java.io.ObjectInputStream.readObject(ObjectInputStream.java:373)
              at com.liferay.portal.kernel.service.http.TunnelUtil.invoke(TunnelUtil.java:84)
              at com.liferay.portlet.exportimport.service.http.StagingServiceHttp.publishStagingRequest(StagingServiceHttp.java:226)
              ... 12 more
      2020-08-25 06:21:48.079 ERROR [liferay/background_task-11][BackgroundTaskMessageListener:182] Unable to execute background task
      com.liferay.portal.kernel.exception.SystemException: java.lang.ClassNotFoundException: com.liferay.blogs.exception.NoSuchEntryException
              at com.liferay.portlet.exportimport.service.http.StagingServiceHttp.publishStagingRequest(StagingServiceHttp.java:236)
              at com.liferay.exportimport.internal.background.task.LayoutRemoteStagingBackgroundTaskExecutor.execute(LayoutRemoteStagingBackgroundTaskExecutor.java:143)
              at com.liferay.portal.background.task.internal.SerialBackgroundTaskExecutor.execute(SerialBackgroundTaskExecutor.java:62)
              at com.liferay.portal.kernel.backgroundtask.DelegatingBackgroundTaskExecutor.execute(DelegatingBackgroundTaskExecutor.java:41)
              at com.liferay.portal.background.task.internal.ThreadLocalAwareBackgroundTaskExecutor.execute(ThreadLocalAwareBackgroundTaskExecutor.java:72)
              at com.liferay.portal.background.task.internal.messaging.BackgroundTaskMessageListener.doReceive(BackgroundTaskMessageListener.java:136)
              at com.liferay.portal.kernel.messaging.BaseMessageListener.doReceive(BaseMessageListener.java:48)
              at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:34)
              at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
              at com.liferay.portal.messaging.internal.ParallelDestination$1.run(ParallelDestination.java:56)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.ClassNotFoundException: com.liferay.blogs.exception.NoSuchEntryException
              at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
              at com.liferay.portal.kernel.util.AggregateClassLoader._loadClass(AggregateClassLoader.java:304)
              at com.liferay.portal.kernel.util.AggregateClassLoader.loadClass(AggregateClassLoader.java:258)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
              at java.lang.Class.forName0(Native Method)
              at java.lang.Class.forName(Class.java:348)
              at com.liferay.petra.lang.ClassResolverUtil.resolve(ClassResolverUtil.java:29)
              at com.liferay.portal.kernel.util.ProtectedClassLoaderObjectInputStream.doResolveClass(ProtectedClassLoaderObjectInputStream.java:43)
              at com.liferay.portal.kernel.io.ProtectedObjectInputStream.resolveClass(ProtectedObjectInputStream.java:65)
              at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1620)
              at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1521)
              at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1781)
              at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1353)
              at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2018)
              at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:503)
              at java.lang.Throwable.readObject(Throwable.java:914)
              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 java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1058)
              at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1909)
              at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1808)
              at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1353)
              at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2018)
              at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:503)
              at java.lang.Throwable.readObject(Throwable.java:914)
              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 java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1058)
              at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1909)
              at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1808)
              at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1353)
              at java.io.ObjectInputStream.readObject(ObjectInputStream.java:373)
              at com.liferay.portal.kernel.service.http.TunnelUtil.invoke(TunnelUtil.java:84)
              at com.liferay.portlet.exportimport.service.http.StagingServiceHttp.publishStagingRequest(StagingServiceHttp.java:226)
              ... 12 more
      

        Attachments

          Activity

            People

            Assignee:
            joyce.wang Joyce Wang
            Reporter:
            joyce.wang Joyce Wang
            Participants of an Issue:
            Recent user:
            Enterprise Release HU
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              5 weeks, 3 days ago

                Packages

                Version Package
                7.3.X
                7.3.5 CE GA6
                7.3.10 DXP GA1
                Master