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

[Ctrlflow bug] NullPointerException in SDK.getVersion

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 3.1.2
    • Fix Version/s: None
    • Component/s: Projects > PluginsSDK
    • Labels:
      None

      Description

      Bundle: com.liferay.ide.sdk.core 3.1.2.qualifier
      Message: Could not detect the sdk version.
      Exception:
      java.lang.NullPointerException: null
          at com.liferay.ide.sdk.core.SDK.getVersion(SDK.java:932)
          at com.liferay.ide.sdk.core.SDK.saveToMemento(SDK.java:1096)
          at com.liferay.ide.sdk.core.SDKManager.saveSDKs(SDKManager.java:292)
          at com.liferay.ide.sdk.core.SDKManager.addSDK(SDKManager.java:94)
          at com.liferay.ide.sdk.core.SDKUtil.getSDK(SDKUtil.java:119)
          at com.liferay.ide.sdk.core.SDKUtil.isSDKProject(SDKUtil.java:210)
          at com.liferay.ide.project.core.PluginsSDKProjectProvider.provide(PluginsSDKProjectProvider.java:124)
          at com.liferay.ide.core.LiferayCore.create(LiferayCore.java:69)
          at com.liferay.ide.server.util.ServerUtil.getPortalDir(ServerUtil.java:728)
          at com.liferay.ide.server.util.ServerUtil.getPortalDir(ServerUtil.java:721)
          at com.liferay.ide.project.core.PluginClasspathContainerInitializer.initialize(PluginClasspathContainerInitializer.java:74)
          at org.eclipse.jdt.internal.core.JavaModelManager.initializeContainer(JavaModelManager.java:3071)
          at org.eclipse.jdt.internal.core.JavaModelManager$10.run(JavaModelManager.java:2977)
          at org.eclipse.jdt.internal.core.JavaModelManager.initializeAllContainers(JavaModelManager.java:3015)
          at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathContainer(JavaModelManager.java:2038)
          at org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore.java:3497)
          at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2687)
          at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2851)
          at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:1956)
          at org.eclipse.jdt.internal.core.ExternalFoldersManager.refreshReferences(ExternalFoldersManager.java:393)
          at org.eclipse.jdt.internal.core.DeltaProcessor.resourceChanged(DeltaProcessor.java:2037)
          at org.eclipse.jdt.internal.core.DeltaProcessingState.resourceChanged(DeltaProcessingState.java:473)
          at org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.java:299)
          at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
          at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:289)
          at org.eclipse.core.internal.events.NotificationManager.handleEvent(NotificationManager.java:271)
          at org.eclipse.core.internal.resources.Workspace.broadcastEvent(Workspace.java:369)
          at org.eclipse.core.internal.resources.Resource.refreshLocal(Resource.java:1559)
          at org.eclipse.core.internal.resources.Project.open(Project.java:1083)
          at com.liferay.ide.project.core.util.ProjectUtil.createExistingProject(ProjectUtil.java:740)
          at com.liferay.ide.project.core.util.ProjectImportUtil.importProject(ProjectImportUtil.java:361)
          at com.liferay.ide.project.core.model.SDKImportProjectsOpMethods$1.runInWorkspace(SDKImportProjectsOpMethods.java:73)
          at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:39)
          at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lr_ide LR IDE
                Reporter:
                ying.xu Ying Xu (Inactive)
                Participants of an Issue:
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 38 weeks, 2 days ago

                  Packages

                  Version Package