java.lang.NullPointerException

Spring JIRA | tongjun | 8 years ago
  1. 0

    Hi: I encounter a bug while using spring project properties. [Bug Content] 1. create a spring project named "testspring" and a bean config file named "applicationContext.xml" 2. open the properties of "testspring",in the Properties dialog, click "spring"->"Web Flow Support"->"Add",in the opened dialog,choose spring bean file "applicationContext.xml", then click "OK". 3. open "testspring"->"Spring Elements"->"Web Flow"->"applicationContext.xml"->"applicationContext", then right click the node of "applicationContext" and choose "Properties". In the Properties dialog, if you click the node "Beans Support",a Null Pointer Exception occured. The NPE Stack Trace is as follows: !ENTRY org.eclipse.jface 4 2 2009-02-16 15:05:10.359 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface". !STACK 0 java.lang.NullPointerException at org.springframework.ide.eclipse.beans.ui.properties.ProjectPropertyPage.applyData(ProjectPropertyPage.java:200) at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.createPage(FilteredPreferenceDialog.java:376) at org.eclipse.jface.preference.PreferenceDialog.showPage(PreferenceDialog.java:1195) at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.showPage(FilteredPreferenceDialog.java:570) at org.eclipse.jface.preference.PreferenceDialog$10.run(PreferenceDialog.java:700) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.jface.preference.PreferenceDialog$9.selectionChanged(PreferenceDialog.java:696) at org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:842) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:880) at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) at org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:840) at org.eclipse.jface.viewers.StructuredViewer.handlePostSelect(StructuredViewer.java:1153) at org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected(StructuredViewer.java:1178) at org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(OpenStrategy.java:250) at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:244) at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java:418) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3800) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3425) at org.eclipse.jface.window.Window.runEventLoop(Window.java:825) at org.eclipse.jface.window.Window.open(Window.java:801) at org.springframework.ide.eclipse.ui.SpringUIUtils$1.run(SpringUIUtils.java:255) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.springframework.ide.eclipse.ui.SpringUIUtils.openPreferenceNode(SpringUIUtils.java:250) at org.springframework.ide.eclipse.ui.SpringUIUtils.showPreferenceDialog(SpringUIUtils.java:225) at org.springframework.ide.eclipse.webflow.ui.navigator.actions.OpenPropertiesAction.run(OpenPropertiesAction.java:84) at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193) 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:382) 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:585) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504) at org.eclipse.equinox.launcher.Main.run(Main.java:1236) at org.eclipse.equinox.launcher.Main.main(Main.java:1212) can you confirm it? Thanks

    Spring JIRA | 8 years ago | tongjun
    java.lang.NullPointerException
  2. 0

    Hi: I encounter a bug while using spring project properties. [Bug Content] 1. create a spring project named "testspring" and a bean config file named "applicationContext.xml" 2. open the properties of "testspring",in the Properties dialog, click "spring"->"Web Flow Support"->"Add",in the opened dialog,choose spring bean file "applicationContext.xml", then click "OK". 3. open "testspring"->"Spring Elements"->"Web Flow"->"applicationContext.xml"->"applicationContext", then right click the node of "applicationContext" and choose "Properties". In the Properties dialog, if you click the node "Beans Support",a Null Pointer Exception occured. The NPE Stack Trace is as follows: !ENTRY org.eclipse.jface 4 2 2009-02-16 15:05:10.359 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface". !STACK 0 java.lang.NullPointerException at org.springframework.ide.eclipse.beans.ui.properties.ProjectPropertyPage.applyData(ProjectPropertyPage.java:200) at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.createPage(FilteredPreferenceDialog.java:376) at org.eclipse.jface.preference.PreferenceDialog.showPage(PreferenceDialog.java:1195) at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.showPage(FilteredPreferenceDialog.java:570) at org.eclipse.jface.preference.PreferenceDialog$10.run(PreferenceDialog.java:700) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.jface.preference.PreferenceDialog$9.selectionChanged(PreferenceDialog.java:696) at org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:842) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:880) at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) at org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:840) at org.eclipse.jface.viewers.StructuredViewer.handlePostSelect(StructuredViewer.java:1153) at org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected(StructuredViewer.java:1178) at org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(OpenStrategy.java:250) at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:244) at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java:418) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3800) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3425) at org.eclipse.jface.window.Window.runEventLoop(Window.java:825) at org.eclipse.jface.window.Window.open(Window.java:801) at org.springframework.ide.eclipse.ui.SpringUIUtils$1.run(SpringUIUtils.java:255) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.springframework.ide.eclipse.ui.SpringUIUtils.openPreferenceNode(SpringUIUtils.java:250) at org.springframework.ide.eclipse.ui.SpringUIUtils.showPreferenceDialog(SpringUIUtils.java:225) at org.springframework.ide.eclipse.webflow.ui.navigator.actions.OpenPropertiesAction.run(OpenPropertiesAction.java:84) at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193) 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:382) 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:585) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504) at org.eclipse.equinox.launcher.Main.run(Main.java:1236) at org.eclipse.equinox.launcher.Main.main(Main.java:1212) can you confirm it? Thanks

    Spring JIRA | 8 years ago | tongjun
    java.lang.NullPointerException
  3. 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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 org.springframework.ide.eclipse.beans.ui.properties.ProjectPropertyPage.applyData()
    2. org.springframework.ide
      ProjectPropertyPage.applyData
      1. org.springframework.ide.eclipse.beans.ui.properties.ProjectPropertyPage.applyData(ProjectPropertyPage.java:200)
      1 frame
    3. Workbench
      FilteredPreferenceDialog.createPage
      1. org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.createPage(FilteredPreferenceDialog.java:376)
      1 frame
    4. JFace
      PreferenceDialog.showPage
      1. org.eclipse.jface.preference.PreferenceDialog.showPage(PreferenceDialog.java:1195)
      1 frame
    5. Workbench
      FilteredPreferenceDialog.showPage
      1. org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.showPage(FilteredPreferenceDialog.java:570)
      1 frame
    6. JFace
      PreferenceDialog$10.run
      1. org.eclipse.jface.preference.PreferenceDialog$10.run(PreferenceDialog.java:700)
      1 frame
    7. RWT
      BusyIndicator.showWhile
      1. org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
      1 frame
    8. JFace
      StructuredViewer$3.run
      1. org.eclipse.jface.preference.PreferenceDialog$9.selectionChanged(PreferenceDialog.java:696)
      2. org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:842)
      2 frames
    9. Eclipse Core
      Platform.run
      1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
      2. org.eclipse.core.runtime.Platform.run(Platform.java:880)
      2 frames
    10. Eclipse UI
      JFaceUtil$1.run
      1. org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
      1 frame
    11. JFace
      OpenStrategy$3.run
      1. org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
      2. org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:840)
      3. org.eclipse.jface.viewers.StructuredViewer.handlePostSelect(StructuredViewer.java:1153)
      4. org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected(StructuredViewer.java:1178)
      5. org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(OpenStrategy.java:250)
      6. org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:244)
      7. org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java:418)
      7 frames
    12. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
      2. org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
      3. org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3800)
      4. org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3425)
      4 frames
    13. JFace
      Window.open
      1. org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
      2. org.eclipse.jface.window.Window.open(Window.java:801)
      2 frames
    14. org.springframework.ide
      SpringUIUtils$1.run
      1. org.springframework.ide.eclipse.ui.SpringUIUtils$1.run(SpringUIUtils.java:255)
      1 frame
    15. RWT
      BusyIndicator.showWhile
      1. org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
      1 frame
    16. org.springframework.ide
      OpenPropertiesAction.run
      1. org.springframework.ide.eclipse.ui.SpringUIUtils.openPreferenceNode(SpringUIUtils.java:250)
      2. org.springframework.ide.eclipse.ui.SpringUIUtils.showPreferenceDialog(SpringUIUtils.java:225)
      3. org.springframework.ide.eclipse.webflow.ui.navigator.actions.OpenPropertiesAction.run(OpenPropertiesAction.java:84)
      3 frames
    17. JFace
      ActionContributionItem$5.handleEvent
      1. org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
      2. org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
      3. org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
      4. org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
      4 frames
    18. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      2. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
      3. org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
      4. org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
      4 frames
    19. Eclipse UI
      Workbench$5.run
      1. org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
      2. org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
      3. org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
      4. org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
      4 frames
    20. Databinding
      Realm.runWithDefault
      1. org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
      1 frame
    21. Eclipse UI
      Workbench.createAndRunWorkbench
      1. org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
      1 frame
    22. Eclipse UI
      PlatformUI.createAndRunWorkbench
      1. org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      1 frame
    23. Eclipse IDE
      IDEApplication.start
      1. org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
      1 frame
    24. Equinox Container
      EclipseAppHandle.run
      1. org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
      1 frame
    25. Eclipse OSGi
      EclipseStarter.run
      1. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
      2. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
      3. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)
      4. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
      4 frames
    26. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    27. Equinox
      Main.main
      1. org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
      2. org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
      3. org.eclipse.equinox.launcher.Main.run(Main.java:1236)
      4. org.eclipse.equinox.launcher.Main.main(Main.java:1212)
      4 frames