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

Licensing check fails with UnsupportedOperationException error



      When deploying a license, an UnsupportedOperationException is thrown.
      This does not occur with testing/developer licenses.
      This occurs with licenses that involve checking for specific IP addresses / mac addresses when deployed.

      This issue occurs with portal-109 is installed, but not with portal-108.
      This issue was not reproduced in DXP - 7.0.0-ga1.

      This issue is caused by LPS-64373.
      The licensing code in 6.2 throws an exception with the changes.
      The licensing code in DXP however works properly with the changes.

      Steps to Reproduce

      1. Installed patching-tool 1.0.23
      2. Installed portal-109
      3. Start up a 6.2 bundle
      4. Deploy a license that involves checks for specific IP addresses / mac addresses
      5. Receive Licensing errors
      23:16:47,859 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][LicenseAutoDeployListener:?] Copying license for C:\Users\liferay\Downloads\liferay-portal-6.2-ee-sp14(1)\deploy\nonproduction-production-6.2ee.xml
      23:16:47,939 ERROR [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][LicenseManager:?] Portal Non-Production license validation failed
              at java.util.Collections$UnmodifiableCollection.retainAll(Collections.java:1091)
              at com.liferay.portal.license.a.f.c(Unknown Source)
              at com.liferay.portal.license.a.f.e(Unknown Source)
              at com.liferay.portal.license.a.i.c(Unknown Source)
              at com.liferay.portal.license.a.f.d(Unknown Source)
              at com.liferay.portal.license.a.f.d(Unknown Source)
              at com.liferay.portal.license.a.f.d(Unknown Source)
              at com.liferay.portal.license.LicenseManager.c(Unknown Source)
              at com.liferay.portal.license.LicenseManager.checkBinaryLicense(Unknown Source)
              at com.liferay.portal.license.tools.deploy.LicenseDeployer.deploy(Unknown Source)
              at com.liferay.portal.license.deploy.auto.LicenseAutoDeployer.autoDeploy(Unknown Source)
              at com.liferay.portal.license.deploy.auto.LicenseAutoDeployListener.deploy(Unknown Source)
              at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.deploy(AutoDeployDir.java:50)
              at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.processFile(AutoDeployDir.java:211)
              at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.scanDirectory(AutoDeployDir.java:275)
              at com.liferay.portal.kernel.deploy.auto.AutoDeployScanner.run(AutoDeployScanner.java:58)
      23:16:47,979 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][LicenseDeployer:?] License registered

      Results of Testing:
      Expected Results: License works when deployed.
      Actual Results: License has errors when deployed.

      Reproduced in?
      Branch? - Can't be tested because licenses not required for branch.
      Master? - Can't be tested because licenses not required for master.
      6.2 sp13 w/ portal-108 - Not Reproduced
      6.2 sp13 w/ portal-109 - Reproduced
      7.0.0-ga1 - Not Reproduced


          Issue Links



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


                • Created:
                  Days since last comment:
                  4 years, 11 weeks, 4 days ago


                  Version Package
                  6.2.X EE