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

New user is lost after upgrading from 72 SP1

    Details

    • Fix Priority:
      5

      Description

      Steps to reproduce:

      1. Startup 7.2.10.1 SP1
      2. Add a new user
      3. Shutdown SP1
      4. Upgrade to master(I use DXP for my testing)
      5. Assert NPE error throws during the upgrade process
      6. Start master
      7. Go to Users and Organizations to assert the added user shows

      Expected results: No error throws during the upgrade process, the added user shows in the Users and Organizations
      Actual results: NPE error throws during the upgrade process, and the added user is lost after upgraded.

           [java] 2020-01-04 13:53:35.414 INFO  [main][VerifyProcess:80] Completed verification process com.liferay.portal.verify.VerifyProcessSuite in 36 ms
           [java] 2020-01-04 13:53:35.435 INFO  [main][BaseDB:85] Adding indexes
           [java] 2020-01-04 13:53:40.559 ERROR [main][SynonymSetIndexCreationBundleActivator:93] bundle com.liferay.portal.search.tuning.synonyms.web:2.0.0 (269)[com.liferay.portal.search.tuning.synonyms.web.internal.index.creation.activator.SynonymSetIndexCreationBundleActivator(3564)] : The activate method has thrown an exception 
           [java] java.lang.NullPointerException
           [java] 	at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:46)
           [java] 	at org.elasticsearch.action.ActionRequestBuilder.get(ActionRequestBuilder.java:53)
           [java] 	at com.liferay.portal.search.elasticsearch6.internal.search.engine.adapter.index.IndicesExistsIndexRequestExecutorImpl.execute(IndicesExistsIndexRequestExecutorImpl.java:43)
           [java] 	at com.liferay.portal.search.elasticsearch6.internal.search.engine.adapter.index.ElasticsearchIndexRequestExecutor.executeIndexRequest(ElasticsearchIndexRequestExecutor.java:118)
           [java] 	at com.liferay.portal.search.engine.adapter.index.IndicesExistsIndexRequest.accept(IndicesExistsIndexRequest.java:34)
           [java] 	at com.liferay.portal.search.engine.adapter.index.IndicesExistsIndexRequest.accept(IndicesExistsIndexRequest.java:22)
           [java] 	at com.liferay.portal.search.elasticsearch6.internal.search.engine.adapter.ElasticsearchSearchEngineAdapterImpl.execute(ElasticsearchSearchEngineAdapterImpl.java:78)
           [java] 	at com.liferay.portal.search.tuning.synonyms.web.internal.index.SynonymSetIndexCreatorImpl.isExists(SynonymSetIndexCreatorImpl.java:58)
           [java] 	at com.liferay.portal.search.tuning.synonyms.web.internal.index.creation.activator.SynonymSetIndexCreationBundleActivator.hasNoSynonymSetIndex(SynonymSetIndexCreationBundleActivator.java:67)
           [java] 	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174)
           [java] 	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
           [java] 	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
           [java] 	at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)
           [java] 	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
           [java] 	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
           [java] 	at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
           [java] 	at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
           [java] 	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
           [java] 	at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
           [java] 	at com.liferay.portal.search.tuning.synonyms.web.internal.index.creation.activator.SynonymSetIndexCreationBundleActivator.activate(SynonymSetIndexCreationBundleActivator.java:53)
           [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           [java] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [java] 	at java.lang.reflect.Method.invoke(Method.java:498)
           [java] 	at org.apache.felix.scr.impl.inject.methods.BaseMethod.invokeMethod(BaseMethod.java:228)
           [java] 	at org.apache.felix.scr.impl.inject.methods.BaseMethod.access$500(BaseMethod.java:41)
           [java] 	at org.apache.felix.scr.impl.inject.methods.BaseMethod$Resolved.invoke(BaseMethod.java:664)
           [java] 	at org.apache.felix.scr.impl.inject.methods.BaseMethod.invoke(BaseMethod.java:510)
           [java] 	at org.apache.felix.scr.impl.inject.methods.ActivateMethod.invoke(ActivateMethod.java:317)
           [java] 	at org.apache.felix.scr.impl.inject.methods.ActivateMethod.invoke(ActivateMethod.java:307)
           [java] 	at org.apache.felix.scr.impl.manager.SingleComponentManager.createImplementationObject(SingleComponentManager.java:341)
           [java] 	at org.apache.felix.scr.impl.manager.SingleComponentManager.createComponent(SingleComponentManager.java:114)
           [java] 	at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:983)
           [java] 	at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:956)
           [java] 	at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:756)
           [java] 	at org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.addedService(DependencyManager.java:1053)
           [java] 	at org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.addedService(DependencyManager.java:1007)
           [java] 	at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1216)
           [java] 	at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1137)
           [java] 	at org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.trackAdding(ServiceTracker.java:944)
           [java] 	at org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.track(ServiceTracker.java:880)
           [java] 	at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:1168)
           [java] 	at org.apache.felix.scr.impl.BundleComponentActivator$ListenerInfo.serviceChanged(BundleComponentActivator.java:125)
           [java] 	at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:109)
           [java] 	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:891)
           [java] 	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:804)
           [java] 	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:127)
           [java] 	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:228)
           [java] 	at org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:469)
           [java] 	at com.liferay.portal.bootstrap.ModuleFrameworkImpl._registerService(ModuleFrameworkImpl.java:1452)
           [java] 	at com.liferay.portal.bootstrap.ModuleFrameworkImpl.lambda$_registerApplicationContext$3(ModuleFrameworkImpl.java:1405)
           [java] 	at java.util.Iterator.forEachRemaining(Iterator.java:116)
           [java] 	at com.liferay.portal.bootstrap.ModuleFrameworkImpl._registerApplicationContext(ModuleFrameworkImpl.java:1390)
           [java] 	at com.liferay.portal.bootstrap.ModuleFrameworkImpl.registerContext(ModuleFrameworkImpl.java:321)
           [java] 	at com.liferay.portal.module.framework.ModuleFrameworkUtilAdapter.registerContext(ModuleFrameworkUtilAdapter.java:72)
           [java] 	at com.liferay.portal.util.InitUtil.registerContext(InitUtil.java:295)
           [java] 	at com.liferay.portal.tools.DBUpgrader.main(DBUpgrader.java:126)
           [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           [java] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [java] 	at java.lang.reflect.Method.invoke(Method.java:498)
           [java] 	at com.liferay.portal.tools.db.upgrade.client.DBUpgraderLauncher.main(DBUpgraderLauncher.java:55)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                support-lep@liferay.com SE Support
                Reporter:
                yvonne.han Yvonne Han
                Participants of an Issue:
                Recent user:
                Yvonne Han
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

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

                  Packages

                  Version Package