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

Marketplace clustering environment doesn't properly recognize single server license

    Details

    • Fix Priority:
      5

      Description

      1. Create a CE only Marketplace App
      2. Add a single server license for the app
      3. Build a liferay bundle off of the src.zip
      4. Start up a clustered environment of two nodes
      5. Assert both nodes have clustered successfully
      6. Deploy the app in the first node
      7. Deploy the app in the second node

      Expected results: Assert that the consoles of both nodes display the following "This application does not have a valid license".

      Actual results: Console throws an error on the second node when deploying app and app is registered on the second node, when it should be invalidated.

      Starting Liferay Portal Community Edition 6.2.0 CE RC2 (Newton / Build 6200 / September 27, 2013)
      23:53:48,849 INFO  [localhost-startStop-1][BaseDB:117] Database does not support case sensitive queries
      23:53:50,107 INFO  [Incoming-2,LIFERAY-CONTROL-CHANNEL,localhost-35334][DebuggingClusterEventListenerImpl:117] Cluster event JOIN_Cluster node {clusterNodeId=476264bf-4cf3-463d-923f-3ab0b0acfcc3, inetAddress=/172.16.14.134, port=8080} [Sanitized]
      23:53:51,782 INFO  [localhost-startStop-1][ServerDetector:117] Server supports hot deploy
      23:53:51,787 INFO  [localhost-startStop-1][PluginPackageUtil:117] Reading plugin package for the root context
      23:54:07,464 INFO  [localhost-startStop-1][AutoDeployDir:117] Creating missing directory /root/Desktop/home/deploy
      23:54:07,466 INFO  [localhost-startStop-1][AutoDeployDir:117] Auto deploy scanner started for /root/Desktop/home/deploy
      23:54:10,454 INFO  [Incoming-2,LIFERAY-CONTROL-CHANNEL,localhost-35334][ClusterRequestReceiver:117] Unable to find response container for 377a96d9-72fc-4d8d-9758-880c7a49ec81
      Sep 30, 2013 11:54:14 PM org.apache.catalina.core.ApplicationContext log
      INFO: Initializing Spring FrameworkServlet 'Remoting Servlet'
      Sep 30, 2013 11:54:16 PM org.apache.catalina.startup.HostConfig deployDirectory
      INFO: Deploying web application directory /root/Desktop/bundles/tomcat-7.0.40/webapps/docs
      Sep 30, 2013 11:54:16 PM org.apache.catalina.startup.HostConfig deployDirectory
      INFO: Deploying web application directory /root/Desktop/bundles/tomcat-7.0.40/webapps/marketplace-portlet
      23:54:18,493 INFO  [localhost-startStop-1][HotDeployImpl:117] Deploying marketplace-portlet from queue
      23:54:18,500 INFO  [localhost-startStop-1][PluginPackageUtil:117] Reading plugin package for marketplace-portlet
      Loading file:/root/Desktop/bundles/tomcat-7.0.40/webapps/marketplace-portlet/WEB-INF/classes/portlet.properties
      Loading file:/root/Desktop/bundles/tomcat-7.0.40/webapps/marketplace-portlet/WEB-INF/classes/service.properties
      Loading file:/root/Desktop/bundles/tomcat-7.0.40/webapps/marketplace-portlet/WEB-INF/classes/portlet.properties
      Sep 30, 2013 11:54:19 PM org.apache.catalina.core.ApplicationContext log
      INFO: Initializing Spring root WebApplicationContext
      Loading file:/root/Desktop/bundles/tomcat-7.0.40/webapps/marketplace-portlet/WEB-INF/classes/service.properties
      Loading file:/root/Desktop/bundles/tomcat-7.0.40/webapps/marketplace-portlet/WEB-INF/classes/service.properties
      23:54:20,875 INFO  [localhost-startStop-1][HookHotDeployListener:117] Registering hook for marketplace-portlet
      Loading file:/root/Desktop/bundles/tomcat-7.0.40/webapps/marketplace-portlet/WEB-INF/classes/portal.properties
      23:54:21,056 INFO  [localhost-startStop-1][HookHotDeployListener:117] Hook for marketplace-portlet is available for use
      23:54:21,196 INFO  [localhost-startStop-1][PortletHotDeployListener:117] Registering portlets for marketplace-portlet
      Loading file:/root/Desktop/bundles/tomcat-7.0.40/webapps/marketplace-portlet/WEB-INF/classes/portlet.properties
      23:54:21,935 INFO  [localhost-startStop-1][PortletHotDeployListener:117] 3 portlets for marketplace-portlet are available for use
      Sep 30, 2013 11:54:22 PM org.apache.catalina.startup.HostConfig deployDirectory
      INFO: Deploying web application directory /root/Desktop/bundles/tomcat-7.0.40/webapps/manager
      Sep 30, 2013 11:54:22 PM org.apache.catalina.startup.HostConfig deployDirectory
      INFO: Deploying web application directory /root/Desktop/bundles/tomcat-7.0.40/webapps/examples
      Sep 30, 2013 11:54:22 PM org.apache.catalina.startup.HostConfig deployDirectory
      INFO: Deploying web application directory /root/Desktop/bundles/tomcat-7.0.40/webapps/host-manager
      Sep 30, 2013 11:54:22 PM org.apache.coyote.AbstractProtocol start
      INFO: Starting ProtocolHandler ["http-bio-8080"]
      Sep 30, 2013 11:54:22 PM org.apache.coyote.AbstractProtocol start
      INFO: Starting ProtocolHandler ["ajp-bio-8009"]
      Sep 30, 2013 11:54:22 PM org.apache.catalina.startup.Catalina start
      INFO: Server startup in 135102 ms
      23:56:29,502 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:117] Processing 29713448_29713449_29713460 (2).lpkg
      23:56:29,505 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][LiferayPackageAutoDeployListener:117] Extracting Liferay package for /root/Desktop/home/deploy/29713448_29713449_29713460 (2).lpkg
      23:56:29,509 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][LiferayPackageAutoDeployer:117] Extracting schoi2_wiki-navigation-portlet-6.2.0.1.war from 29713448_29713449_29713460 (2).lpkg
      23:56:29,514 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][LiferayPackageAutoDeployer:117] Extracting liferay-marketplace.properties from 29713448_29713449_29713460 (2).lpkg
      23:56:29,519 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][LiferayPackageAutoDeployListener:117] Liferay package for /root/Desktop/home/deploy/29713448_29713449_29713460 (2).lpkg extracted successfully. Deployment will start in a few seconds.
      23:56:29,611 ERROR [liferay/marketplace-1][SerialDestination:92] Unable to process message {destinationName=liferay/marketplace, response=null, responseDestinationName=null, responseId=null, payload=null, values={fileNames=[schoi2_wiki-navigation-portlet-6.2.0.1.war], command=deploy, companyId=0, properties=context-names=schoi2_wiki-navigation-portlet_remote-app-id=29713448_version=1_category=Communication_description=schoi_src_app_title=schoi_src_app_icon-url=http://www-staging.liferay.com/web/guest/marketplace/-/mp/asset/icon/29713450}} [Sanitized]
      com.liferay.portal.kernel.messaging.MessageListenerException: com.liferay.marketplace.DuplicateAppException
      	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:32)
      	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
      	at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:65)
      	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)
      Caused by: com.liferay.marketplace.DuplicateAppException
      	at com.liferay.marketplace.service.impl.AppLocalServiceImpl.validate(AppLocalServiceImpl.java:525)
      	at com.liferay.marketplace.service.impl.AppLocalServiceImpl.updateApp(AppLocalServiceImpl.java:384)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:601)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
      	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.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      	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 $Proxy749.updateApp(Unknown Source)
      	at com.liferay.marketplace.service.AppLocalServiceUtil.updateApp(AppLocalServiceUtil.java:358)
      	at com.liferay.marketplace.messaging.MarketplaceMessageListener.doReceive(MarketplaceMessageListener.java:58)
      	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
      	... 5 more
      23:56:32,523 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:117] Processing schoi2_wiki-navigation-portlet-6.2.0.1.war
      23:56:32,527 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][PortletAutoDeployListener:117] Copying portlets for /root/Desktop/home/deploy/schoi2_wiki-navigation-portlet-6.2.0.1.war
      23:56:32,574 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:117] Deploying schoi2_wiki-navigation-portlet-6.2.0.1.war
        Expanding: /root/Desktop/home/deploy/schoi2_wiki-navigation-portlet-6.2.0.1.war into /root/Desktop/bundles/tomcat-7.0.40/temp/20130930235632577
        Copying 1 file to /root/Desktop/bundles/tomcat-7.0.40/temp/20130930235632577/WEB-INF
        Copying 1 file to /root/Desktop/bundles/tomcat-7.0.40/temp/20130930235632577/WEB-INF/classes
        Copying 1 file to /root/Desktop/bundles/tomcat-7.0.40/temp/20130930235632577/WEB-INF/classes
        Copying 1 file to /root/Desktop/bundles/tomcat-7.0.40/temp/20130930235632577/WEB-INF/jsp
      23:56:32,902 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:117] Modifying Servlet 2.4 /root/Desktop/bundles/tomcat-7.0.40/temp/20130930235632577/WEB-INF/web.xml
        Copying 152 files to /root/Desktop/bundles/tomcat-7.0.40/webapps/schoi2_wiki-navigation-portlet
        Copying 1 file to /root/Desktop/bundles/tomcat-7.0.40/webapps/schoi2_wiki-navigation-portlet
        Deleting directory /root/Desktop/bundles/tomcat-7.0.40/temp/20130930235632577
      23:56:33,177 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][PortletAutoDeployListener:117] Portlets for /root/Desktop/home/deploy/schoi2_wiki-navigation-portlet-6.2.0.1.war copied successfully. Deployment will start in a few seconds.
      Sep 30, 2013 11:56:42 PM org.apache.catalina.startup.HostConfig deployDirectory
      INFO: Deploying web application directory /root/Desktop/bundles/tomcat-7.0.40/webapps/schoi2_wiki-navigation-portlet
      23:56:43,464 INFO  [localhost-startStop-2][HotDeployEvent:117] Plugin schoi2_wiki-navigation-portlet requires marketplace-portlet
      23:56:43,514 INFO  [localhost-startStop-2][HotDeployImpl:117] Deploying schoi2_wiki-navigation-portlet from queue
      23:56:43,515 INFO  [localhost-startStop-2][PluginPackageUtil:117] Reading plugin package for schoi2_wiki-navigation-portlet
      Sep 30, 2013 11:56:43 PM org.apache.catalina.core.ApplicationContext log
      INFO: Initializing Spring root WebApplicationContext
      23:56:43,706 INFO  [localhost-startStop-2][HookHotDeployListener:117] Registering hook for schoi2_wiki-navigation-portlet
      Loading file:/root/Desktop/bundles/tomcat-7.0.40/webapps/schoi2_wiki-navigation-portlet/WEB-INF/classes/portal.properties
      23:56:43,729 INFO  [localhost-startStop-2][HookHotDeployListener:117] Hook for schoi2_wiki-navigation-portlet is available for use
      23:56:43,731 INFO  [localhost-startStop-2][PortletHotDeployListener:117] Registering portlets for schoi2_wiki-navigation-portlet
      23:56:43,947 INFO  [localhost-startStop-2][PortletHotDeployListener:117] 2 portlets for schoi2_wiki-navigation-portlet are available for use
      

        Attachments

          Activity

            People

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

              Dates

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

                Packages

                Version Package
                7.0.0 M3