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

NullpointerException in SynonymSetIndexCreationBundleActivator when restarting server

Details

    Description

      Steps to reproduce:

      1. Shut down Portal server
      2. Restart Portal server

      Result: Following startup errors appears in the console:

       [junit] 12:59:12,443 ERROR [main][SynonymSetIndexCreationBundleActivator:93] bundle com.liferay.portal.search.tuning.synonyms.web:2.0.0 (1259)[com.liferay.portal.search.tuning.synonyms.web.internal.index.creation.activator.SynonymSetIndexCreationBundleActivator(6029)] : The activate method has thrown an exception 
          [junit] java.lang.NullPointerException
          [junit] 	at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:46)
          [junit] 	at org.elasticsearch.action.ActionRequestBuilder.get(ActionRequestBuilder.java:53)
          [junit] 	at com.liferay.portal.search.elasticsearch6.internal.search.engine.adapter.index.IndicesExistsIndexRequestExecutorImpl.execute(IndicesExistsIndexRequestExecutorImpl.java:43)
          [junit] 	at com.liferay.portal.search.elasticsearch6.internal.search.engine.adapter.index.ElasticsearchIndexRequestExecutor.executeIndexRequest(ElasticsearchIndexRequestExecutor.java:118)
          [junit] 	at com.liferay.portal.search.engine.adapter.index.IndicesExistsIndexRequest.accept(IndicesExistsIndexRequest.java:34)
          [junit] 	at com.liferay.portal.search.engine.adapter.index.IndicesExistsIndexRequest.accept(IndicesExistsIndexRequest.java:22)
          [junit] 	at com.liferay.portal.search.elasticsearch6.internal.search.engine.adapter.ElasticsearchSearchEngineAdapterImpl.execute(ElasticsearchSearchEngineAdapterImpl.java:78)
          [junit] 	at com.liferay.portal.search.tuning.synonyms.web.internal.index.SynonymSetIndexCreatorImpl.isExists(SynonymSetIndexCreatorImpl.java:58)
          [junit] 	at com.liferay.portal.search.tuning.synonyms.web.internal.index.creation.activator.SynonymSetIndexCreationBundleActivator.hasNoSynonymSetIndex(SynonymSetIndexCreationBundleActivator.java:67)
          [junit] 	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174)
          [junit] 	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
          [junit] 	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
          [junit] 	at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)
          [junit] 	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
          [junit] 	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
          [junit] 	at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)

      Example test that is failing because of this:
      https://testray.liferay.com/home/-/testray/case_results/936238152

      Reproduced on:
      Portal master git commit: c8a983065875bcad76254eb125cf75b902a6cde4

      Attachments

        Issue Links

          Activity

            People

              joshua.chong Joshua Chong
              tai.nguyen Tai Nguyen
              Marta Elicegui Marta Elicegui
              Adam Brandizzi Adam Brandizzi
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                3 years, 3 weeks, 2 days ago

                Packages

                  Version Package
                  7.2.10 DXP FP5
                  7.2.10.2 DXP SP2
                  7.2.X
                  7.3.10 DXP GA1
                  Master