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

Use S3_PING with Amazon S3 results in nullpointer exception for the bucket

    Details

      Description

      Description
      When you set up S3_PING for cache replication for unicast cluster the Liferay communicates through a special file(s) in the Amazon S3 storage.

      When this happens it seems that the bucket becomes unavailable and no other documents and media files are available.

      The bucket (a top level folder in the Amazon S3) has a null value

      14:08:49,119 ERROR [http-bio-8880-exec-2][status_jsp:665] java.lang.NullPointerException
      java.lang.NullPointerException
              at com.liferay.portlet.documentlibrary.store.S3Store.getFileAsStream(S3Store.java:206)
              at com.liferay.portlet.documentlibrary.store.StoreProxyImpl.getFileAsStream(StoreProxyImpl.java:178)
              at com.liferay.portlet.documentlibrary.store.SafeFileNameStoreWrapper.getFileAsStream(SafeFileNameStoreWrapper.java:264)
              at com.liferay.portlet.documentlibrary.store.DLStoreImpl.getFileAsStream(DLStoreImpl.java:297)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess

      Reproduction
      1. Set up Amazon S3 for document library

      dl.store.s3.access.key=xxxxx
      dl.store.s3.secret.key=yyyyy
      dl.store.s3.bucket.name=liferay-support-hu
      dl.store.impl=com.liferay.portlet.documentlibrary.store.S3Store

      2. Start up portal and create a page with a web content, which embeds an image which you previously uploaded
      3. Go to the page verify the content is correctly shown
      4. Enable clustering (you don't have to set up 2 nodes, just one is enough)
      5. Set up S3_PING for the unicast cluster replication for TRANSPORT.0 and CONTROL channels.
      6. Restart portal, go to the page.
      7. The image is not appearing and there is a NPE in the logs.

      Expected result
      The image shows up. Cache replication works okay.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                zsolt.szabo Zsolt Szabo (Inactive)
                Reporter:
                laszlo.csontos Laszlo Csontos (Inactive)
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 11 weeks, 3 days ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 M3