java.lang.NullPointerException

SpringSource Issue Tracker | Andy Clement | 5 years ago
  1. 0

    When doing this I did get told to go and configure one (but the formatting wasnt great, no newline after the project name and the P/ is a bit confusing for those not intimate with eclipse). java.lang.IllegalArgumentException: Could not find a grails install for 'P/site'Please configure an install from the Grails preferences page. at com.springsource.sts.grails.commands.GrailsCommandUtils.deleteOutOfSynchPlugins(GrailsCommandUtils.java:392) at com.springsource.sts.grails.commands.GrailsCommandUtils.refreshDependencies(GrailsCommandUtils.java:324) at com.springsource.sts.grails.core.internal.classpath.GrailsClasspathContainerUpdateJob.runInWorkspace(GrailsClasspathContainerUpdateJob.java:77) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) but this also appeared in the log: java.lang.NullPointerException at com.springsource.sts.grails.core.model.GrailsVersion.compareNoQualifier(GrailsVersion.java:116) at com.springsource.sts.grails.core.model.GrailsVersion.compareTo(GrailsVersion.java:89) at com.springsource.sts.grails.ui.internal.importfixes.GrailsProjectVersionFixer$ProjectChangeHandler.handleMismatchingVersions(GrailsProjectVersionFixer.java:329) at com.springsource.sts.grails.ui.internal.importfixes.GrailsProjectVersionFixer$ProjectChangeHandler.handleUnknownEclipseVersion(GrailsProjectVersionFixer.java:354) at com.springsource.sts.grails.ui.internal.importfixes.GrailsProjectVersionFixer$ProjectChangeHandler.fix(GrailsProjectVersionFixer.java:271) at com.springsource.sts.grails.ui.internal.importfixes.GrailsProjectVersionFixer$ProjectChangeHandler.projectsChanged(GrailsProjectVersionFixer.java:244) at com.springsource.sts.grails.ui.internal.importfixes.GrailsProjectVersionFixer$ProjectChangeHandler.access$1(GrailsProjectVersionFixer.java:230) at com.springsource.sts.grails.ui.internal.importfixes.GrailsProjectVersionFixer$1.resourceChanged(GrailsProjectVersionFixer.java:99) at org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.java:291) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:285) at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:149) at org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:327) at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:1181) at org.eclipse.core.internal.resources.Resource.refreshLocal(Resource.java:1676) at org.eclipse.core.internal.refresh.RefreshJob.runInWorkspace(RefreshJob.java:166) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

    SpringSource Issue Tracker | 5 years ago | Andy Clement
    java.lang.NullPointerException
  2. 0

    When doing this I did get told to go and configure one (but the formatting wasnt great, no newline after the project name and the P/ is a bit confusing for those not intimate with eclipse). java.lang.IllegalArgumentException: Could not find a grails install for 'P/site'Please configure an install from the Grails preferences page. at com.springsource.sts.grails.commands.GrailsCommandUtils.deleteOutOfSynchPlugins(GrailsCommandUtils.java:392) at com.springsource.sts.grails.commands.GrailsCommandUtils.refreshDependencies(GrailsCommandUtils.java:324) at com.springsource.sts.grails.core.internal.classpath.GrailsClasspathContainerUpdateJob.runInWorkspace(GrailsClasspathContainerUpdateJob.java:77) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) but this also appeared in the log: java.lang.NullPointerException at com.springsource.sts.grails.core.model.GrailsVersion.compareNoQualifier(GrailsVersion.java:116) at com.springsource.sts.grails.core.model.GrailsVersion.compareTo(GrailsVersion.java:89) at com.springsource.sts.grails.ui.internal.importfixes.GrailsProjectVersionFixer$ProjectChangeHandler.handleMismatchingVersions(GrailsProjectVersionFixer.java:329) at com.springsource.sts.grails.ui.internal.importfixes.GrailsProjectVersionFixer$ProjectChangeHandler.handleUnknownEclipseVersion(GrailsProjectVersionFixer.java:354) at com.springsource.sts.grails.ui.internal.importfixes.GrailsProjectVersionFixer$ProjectChangeHandler.fix(GrailsProjectVersionFixer.java:271) at com.springsource.sts.grails.ui.internal.importfixes.GrailsProjectVersionFixer$ProjectChangeHandler.projectsChanged(GrailsProjectVersionFixer.java:244) at com.springsource.sts.grails.ui.internal.importfixes.GrailsProjectVersionFixer$ProjectChangeHandler.access$1(GrailsProjectVersionFixer.java:230) at com.springsource.sts.grails.ui.internal.importfixes.GrailsProjectVersionFixer$1.resourceChanged(GrailsProjectVersionFixer.java:99) at org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.java:291) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:285) at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:149) at org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:327) at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:1181) at org.eclipse.core.internal.resources.Resource.refreshLocal(Resource.java:1676) at org.eclipse.core.internal.refresh.RefreshJob.runInWorkspace(RefreshJob.java:166) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

    SpringSource Issue Tracker | 5 years ago | Andy Clement
    java.lang.NullPointerException
  3. 0

    To reproduce we need project setup to use project specific Grails install, pointing to a Grails name that is not known to the GrailsInstallManager. This causes an NPE here: {noformat} !ENTRY org.eclipse.core.resources 4 2 2011-06-07 16:20:25.830 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources". !STACK 0 java.lang.NullPointerException at com.springsource.sts.grails.ui.internal.importfixes.GrailsProjectVersionFixer$ProjectChangeHandler.askToUpgradeFromSupportedInstalled(GrailsProjectVersionFixer.java:438) at com.springsource.sts.grails.ui.internal.importfixes.GrailsProjectVersionFixer$ProjectChangeHandler.handleMismatchingVersions(GrailsProjectVersionFixer.java:315) at com.springsource.sts.grails.ui.internal.importfixes.GrailsProjectVersionFixer$ProjectChangeHandler.fix(GrailsProjectVersionFixer.java:274) at com.springsource.sts.grails.ui.internal.importfixes.GrailsProjectVersionFixer$ProjectChangeHandler.projectsChanged(GrailsProjectVersionFixer.java:244) at com.springsource.sts.grails.ui.internal.importfixes.GrailsProjectVersionFixer$ProjectChangeHandler.access$1(GrailsProjectVersionFixer.java:230) at com.springsource.sts.grails.ui.internal.importfixes.GrailsProjectVersionFixer$1.resourceChanged(GrailsProjectVersionFixer.java:99) at org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.java:291) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:285) at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:149) at org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:327) at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:1181) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:45) at com.springsource.sts.grails.commands.test.AbstractCommandTest.importProject(AbstractCommandTest.java:201) at com.springsource.sts.grails.test.GrailsProjectVersionFixerTest.testImportProjectWithUnknownEclipseGrailsVersion(GrailsProjectVersionFixerTest.java:476) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.main(RemotePluginTestRunner.java:62) at org.eclipse.pde.internal.junit.runtime.UITestApplication$1.run(UITestApplication.java:116) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3515) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3164) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115) at org.eclipse.pde.internal.junit.runtime.UITestApplication.start(UITestApplication.java:47) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575) at org.eclipse.equinox.launcher.Main.run(Main.java:1408) at org.eclipse.equinox.launcher.Main.main(Main.java:1384) {noformat}

    SpringSource Issue Tracker | 5 years ago | Kris De Volder (c)
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    To reproduce we need project setup to use project specific Grails install, pointing to a Grails name that is not known to the GrailsInstallManager. This causes an NPE here: {noformat} !ENTRY org.eclipse.core.resources 4 2 2011-06-07 16:20:25.830 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources". !STACK 0 java.lang.NullPointerException at com.springsource.sts.grails.ui.internal.importfixes.GrailsProjectVersionFixer$ProjectChangeHandler.askToUpgradeFromSupportedInstalled(GrailsProjectVersionFixer.java:438) at com.springsource.sts.grails.ui.internal.importfixes.GrailsProjectVersionFixer$ProjectChangeHandler.handleMismatchingVersions(GrailsProjectVersionFixer.java:315) at com.springsource.sts.grails.ui.internal.importfixes.GrailsProjectVersionFixer$ProjectChangeHandler.fix(GrailsProjectVersionFixer.java:274) at com.springsource.sts.grails.ui.internal.importfixes.GrailsProjectVersionFixer$ProjectChangeHandler.projectsChanged(GrailsProjectVersionFixer.java:244) at com.springsource.sts.grails.ui.internal.importfixes.GrailsProjectVersionFixer$ProjectChangeHandler.access$1(GrailsProjectVersionFixer.java:230) at com.springsource.sts.grails.ui.internal.importfixes.GrailsProjectVersionFixer$1.resourceChanged(GrailsProjectVersionFixer.java:99) at org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.java:291) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:285) at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:149) at org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:327) at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:1181) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:45) at com.springsource.sts.grails.commands.test.AbstractCommandTest.importProject(AbstractCommandTest.java:201) at com.springsource.sts.grails.test.GrailsProjectVersionFixerTest.testImportProjectWithUnknownEclipseGrailsVersion(GrailsProjectVersionFixerTest.java:476) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.main(RemotePluginTestRunner.java:62) at org.eclipse.pde.internal.junit.runtime.UITestApplication$1.run(UITestApplication.java:116) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3515) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3164) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115) at org.eclipse.pde.internal.junit.runtime.UITestApplication.start(UITestApplication.java:47) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575) at org.eclipse.equinox.launcher.Main.run(Main.java:1408) at org.eclipse.equinox.launcher.Main.main(Main.java:1384) {noformat}

    SpringSource Issue Tracker | 5 years ago | Kris De Volder (c)
    java.lang.NullPointerException
  6. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.springsource.sts.grails.core.model.GrailsVersion.compareNoQualifier()
    2. com.springsource.sts
      GrailsProjectVersionFixer$1.resourceChanged
      1. com.springsource.sts.grails.core.model.GrailsVersion.compareNoQualifier(GrailsVersion.java:116)
      2. com.springsource.sts.grails.core.model.GrailsVersion.compareTo(GrailsVersion.java:89)
      3. com.springsource.sts.grails.ui.internal.importfixes.GrailsProjectVersionFixer$ProjectChangeHandler.handleMismatchingVersions(GrailsProjectVersionFixer.java:329)
      4. com.springsource.sts.grails.ui.internal.importfixes.GrailsProjectVersionFixer$ProjectChangeHandler.handleUnknownEclipseVersion(GrailsProjectVersionFixer.java:354)
      5. com.springsource.sts.grails.ui.internal.importfixes.GrailsProjectVersionFixer$ProjectChangeHandler.fix(GrailsProjectVersionFixer.java:271)
      6. com.springsource.sts.grails.ui.internal.importfixes.GrailsProjectVersionFixer$ProjectChangeHandler.projectsChanged(GrailsProjectVersionFixer.java:244)
      7. com.springsource.sts.grails.ui.internal.importfixes.GrailsProjectVersionFixer$ProjectChangeHandler.access$1(GrailsProjectVersionFixer.java:230)
      8. com.springsource.sts.grails.ui.internal.importfixes.GrailsProjectVersionFixer$1.resourceChanged(GrailsProjectVersionFixer.java:99)
      8 frames
    3. Core Resource Management
      NotificationManager$2.run
      1. org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.java:291)
      1 frame
    4. Eclipse Core
      SafeRunner.run
      1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      1 frame
    5. Core Resource Management
      InternalWorkspaceJob.run
      1. org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:285)
      2. org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:149)
      3. org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:327)
      4. org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:1181)
      5. org.eclipse.core.internal.resources.Resource.refreshLocal(Resource.java:1676)
      6. org.eclipse.core.internal.refresh.RefreshJob.runInWorkspace(RefreshJob.java:166)
      7. org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
      7 frames
    6. Eclipse Jobs
      Worker.run
      1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      1 frame