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

Invalid values for SDKs entered because of IDE-921 and IDE-922 cause Installed SDKs pref page error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0 M1
    • Component/s: Projects > Common
    • Labels:
      None

      Description

      !ENTRY org.eclipse.jface 4 2 2013-04-23 12:01:13.523
      The problem happens if you try to invoke a "Build WSDD" or a "Build Languages" action on a liferay maven project, it try to automatically create a new SDK based on the location of the project. For maven projects this is invalid, but the worst part is the invalid values are persisted in the SDK settings and causes the Installed SDKs pref page to not be able to load. See error.

      !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
      !STACK 0
      java.lang.NullPointerException
      at com.liferay.ide.sdk.ui.InstalledSDKsCompostite.setSDKs(InstalledSDKsCompostite.java:594)
      at com.liferay.ide.sdk.ui.InstalledSDKsCompostite.createControl(InstalledSDKsCompostite.java:320)
      at com.liferay.ide.sdk.ui.InstalledSDKsCompostite.<init>(InstalledSDKsCompostite.java:157)
      at com.liferay.ide.sdk.ui.SDKsPreferencePage.createContents(SDKsPreferencePage.java:127)
      at org.eclipse.jface.preference.PreferencePage.createControl(PreferencePage.java:232)
      at org.eclipse.jface.preference.PreferenceDialog.createPageControl(PreferenceDialog.java:1502)
      at org.eclipse.jface.preference.PreferenceDialog$14.run(PreferenceDialog.java:1259)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
      at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
      at org.eclipse.jface.preference.PreferenceDialog.showPage(PreferenceDialog.java:1253)
      at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.showPage(FilteredPreferenceDialog.java:675)
      at org.eclipse.jface.preference.PreferenceDialog$10.run(PreferenceDialog.java:709)
      at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)

        Attachments

          Activity

            People

            Assignee:
            gregory.amerson Gregory Amerson
            Reporter:
            gregory.amerson Gregory Amerson
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              7 years, 9 weeks, 6 days ago

                Packages

                Version Package
                2.0.0 M1