Uploaded image for project: 'PUBLIC - Liferay Portal Web Content Experience'
  1. PUBLIC - Liferay Portal Web Content Experience
  2. WCM-718

report-campaign-content-service fails to compile

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Content Targeting
    • Labels:
      None
    • Fix Priority:
      5

      Description

      Steps to reproduce:

      1. Compile content targeting

      Expected result: Content Targeting can be compiled and deployed successfully
      Actual result: Content Targeting fails to compile:

      :apps:content-targeting:report:report-campaign-content:report-campaign-content-service:compileJavaD:\private\ee-7.0.x-portal\modules\apps\content-targeting\report\report-campaign-content\report-campaign-content-service\src\main\java\com\liferay\content\targeting\report\campaign\content\upgrade\v1_0_2\UpgradeClassNames.java:18: error: package com.liferay.content.targeting.upgrade.classname does not exist
      import com.liferay.content.targeting.upgrade.classname.ClassNameUpgradeProcess;
                                                            ^
      D:\private\ee-7.0.x-portal\modules\apps\content-targeting\report\report-campaign-content\report-campaign-content-service\src\main\java\com\liferay\content\targeting\report\campaign\content\upgrade\v1_0_2\UpgradeClassNames.java:29: error: cannot find symbol
      public class UpgradeClassNames extends ClassNameUpgradeProcess {
                                             ^
        symbol: class ClassNameUpgradeProcess
      D:\private\ee-7.0.x-portal\modules\apps\content-targeting\report\report-campaign-content\report-campaign-content-service\src\main\java\com\liferay\content\targeting\report\campaign\content\upgrade\CampaignContentServiceUpgrade.java:44: error: method register in interface Registry cannot be applied to given types;
                      registry.register(
                              ^
        required: String,String,String,UpgradeStep[]
        found: String,String,String,UpgradeClassNames
        reason: varargs mismatch; UpgradeClassNames cannot be converted to UpgradeStep
      D:\private\ee-7.0.x-portal\modules\apps\content-targeting\report\report-campaign-content\report-campaign-content-service\src\main\java\com\liferay\content\targeting\report\campaign\content\upgrade\v1_0_2\UpgradeClassNames.java:37: error: cannot find symbol
                              try (PreparedStatement ps1 = connection.prepareStatement(
                                                           ^
        symbol:   variable connection
        location: class UpgradeClassNames
      D:\private\ee-7.0.x-portal\modules\apps\content-targeting\report\report-campaign-content\report-campaign-content-service\src\main\java\com\liferay\content\targeting\report\campaign\content\upgrade\v1_0_2\UpgradeClassNames.java:42: error: cannot find symbol
                                      try (PreparedStatement ps2 = connection.prepareStatement(
                                                                   ^
        symbol:   variable connection
        location: class UpgradeClassNames
      D:\private\ee-7.0.x-portal\modules\apps\content-targeting\report\report-campaign-content\report-campaign-content-service\src\main\java\com\liferay\content\targeting\report\campaign\content\upgrade\v1_0_2\UpgradeClassNames.java:49: error: cannot find symbol
                                                      ps2.setLong(1, getClassNameId(className));
                                                                     ^
        symbol:   method getClassNameId(String)
        location: class UpgradeClassNames
      D:\private\ee-7.0.x-portal\modules\apps\content-targeting\report\report-campaign-content\report-campaign-content-service\src\main\java\com\liferay\content\targeting\report\campaign\content\upgrade\v1_0_2\UpgradeClassNames.java:59: error: cannot find symbol
                                      new AlterTableDropColumn("className"));
                                          ^
        symbol:   class AlterTableDropColumn
        location: class UpgradeClassNames
      D:\private\ee-7.0.x-portal\modules\apps\content-targeting\report\report-campaign-content\report-campaign-content-service\src\main\java\com\liferay\content\targeting\report\campaign\content\upgrade\v1_0_2\UpgradeClassNames.java:63: error: method does not override or implement a method from a supertype
              @Override
              ^
      D:\private\ee-7.0.x-portal\modules\apps\content-targeting\report\report-campaign-content\report-campaign-content-service\src\main\java\com\liferay\content\targeting\report\campaign\content\upgrade\v1_0_2\UpgradeClassNames.java:68: error: method does not override or implement a method from a supertype
              @Override
              ^
      D:\private\ee-7.0.x-portal\modules\apps\content-targeting\report\report-campaign-content\report-campaign-content-service\src\main\java\com\liferay\content\targeting\report\campaign\content\upgrade\v1_0_2\UpgradeClassNames.java:71: error: cannot find symbol
                              "CT_CCR_CampaignContent", "className", getClassNames(),
                                                                     ^
        symbol:   method getClassNames()
        location: class UpgradeClassNames
      Note: Some input files use unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.
      10 errors
       FAILED
      
      FAILURE: Build failed with an exception.
      
      * What went wrong:
      Execution failed for task ':apps:content-targeting:report:report-campaign-content:report-campaign-content-service:compileJava'.

      Reproduced on:
      Portal ee-7.0.x GIT ID: 8061cb9fa8795f59a55c1027fe2880474f6e50c2
      Content Targeting GIT ID: 2bfad92c66daa91685e8f929dcbe7d63b5877ec8

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package
                  2.0