Uploaded image for project: 'PUBLIC - Liferay IDE'
  1. PUBLIC - Liferay IDE
  2. IDE-3083

Improve validation for plugins sdk or maen project root location

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1 M2
    • Fix Version/s: 3.1 M2
    • Component/s: Upgrade Planner
    • Labels:
      None

      Description

      1. launch liferay code upgrade tool
      2. go to "configure project" page
      3. enter an existing file location
      for example: D:/test.xml

      Error in error log:
      1. RuntimeException: LiferayUpgradeDataModel.SdkLocation: ProjectLocationValidationService.compute() has failed
      java.lang.RuntimeException: LiferayUpgradeDataModel.SdkLocation: ProjectLocationValidationService.compute() has failed
      com.liferay.ide.project.ui.upgrade.animated.LiferayUpgradeDataModel$Impl.setSdkLocation(Unknown Source)
      at com.liferay.ide.project.ui.upgrade.animated.InitConfigureProjectPage$1.modifyText(InitConfigureProjectPage.java:260)

      2.NullPointerException
      java.lang.NullPointerException
      at com.liferay.ide.gradle.core.GradleModuleProjectImporter.findFile(GradleModuleProjectImporter.java:105)
      at com.liferay.ide.gradle.core.GradleModuleProjectImporter.findGradleFile(GradleModuleProjectImporter.java:119)
      at com.liferay.ide.gradle.core.GradleModuleProjectImporter.canImport(GradleModuleProjectImporter.java:48)
      at com.liferay.ide.project.core.modules.ImportLiferayModuleProjectOpMethods.getBuildType(ImportLiferayModuleProjectOpMethods.java:69)
      at com.liferay.ide.project.ui.upgrade.animated.ProjectLocationValidationService.compute(ProjectLocationValidationService.java:84)
      at com.liferay.ide.project.ui.upgrade.animated.InitConfigureProjectPage$LiferayUpgradeValidationListener.handle(InitConfigureProjectPage.java:146)
      at com.liferay.ide.project.ui.upgrade.animated.LiferayUpgradeDataModel$Impl.setSdkLocation(Unknown Source)
      at com.liferay.ide.project.ui.upgrade.animated.InitConfigureProjectPage$1.modifyText(InitConfigureProjectPage.java:260)

        Attachments

          Activity

            People

            Assignee:
            joye.luo Joye Luo (Inactive)
            Reporter:
            yanan.yuan Yanan Yuan(Ashley Yuan)
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              5 years, 1 week, 5 days ago

                Packages

                Version Package
                3.1 M2