java.lang.NullPointerException

ZK-Tracker | michaelh | 3 years ago
  1. 0

    We have a ZK project that uses Eclipse and SVN for version control. Our ZULs get checked-in to the SVN repository. When I select (right-click) the file in my project and select Team > Show History. It lists the revisions made to the zul file. When I choose to open a previous revision to see its contents (not replaceing the current version, just open to view), the following exception occurs: ("Could not open the editor: An unexpected exception was thrown." java.lang.NullPointerException at org.zkoss.eclipse.editor.core.model.ZulContext.reconcileProjectContext(ZulContext.java:382) at org.zkoss.eclipse.editor.core.model.ZulContext.inputDocumentChanged(ZulContext.java:320) at org.eclipse.jface.text.TextViewer.fireInputDocumentChanged(TextViewer.java:2888) at org.eclipse.jface.text.TextViewer.setDocument(TextViewer.java:2937) at org.eclipse.jface.text.source.SourceViewer.setDocument(SourceViewer.java:640) at org.eclipse.jface.text.source.projection.ProjectionViewer.setDocument(ProjectionViewer.java:376) at org.eclipse.wst.sse.ui.internal.StructuredTextViewer.setDocument(StructuredTextViewer.java:805) at org.eclipse.jface.text.source.SourceViewer.setDocument(SourceViewer.java:588) at org.eclipse.ui.texteditor.AbstractTextEditor.initializeSourceViewer(AbstractTextEditor.java:4030) at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:3558) at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:54) at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:440) at org.eclipse.wst.sse.ui.StructuredTextEditor.createPartControl(StructuredTextEditor.java:1508) at org.zkoss.eclipse.editor.wst.ZulTextEditor.createPartControl(ZulTextEditor.java:258) at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670) at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465) at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595) at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2945) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850) at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842) at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2756) at org.tigris.subversion.subclipse.ui.actions.OpenLogEntryAction$1.run(OpenLogEntryAction.java:56) at org.tigris.subversion.subclipse.ui.repository.RepositoryManager.run(RepositoryManager.java:375) at org.tigris.subversion.subclipse.ui.actions.SVNAction$1.run(SVNAction.java:226) at org.tigris.subversion.subclipse.ui.actions.SVNAction$2.run(SVNAction.java:235) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.tigris.subversion.subclipse.ui.actions.SVNAction.run(SVNAction.java:232) at org.tigris.subversion.subclipse.ui.actions.OpenLogEntryAction.execute(OpenLogEntryAction.java:35) at org.tigris.subversion.subclipse.ui.actions.SVNAction.run(SVNAction.java:56) at org.eclipse.ui.actions.ActionDelegate.runWithEvent(ActionDelegate.java:70) at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:241) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501) 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:1053) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123) 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:344) 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:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) at org.eclipse.equinox.launcher.Main.run(Main.java:1410) at org.eclipse.equinox.launcher.Main.main(Main.java:1386) 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 com.genuitec.pulse.eclipse.launcher.Main.main(Main.java:110)

    ZK-Tracker | 3 years ago | michaelh
    java.lang.NullPointerException
  2. 0

    We have a ZK project that uses Eclipse and SVN for version control. Our ZULs get checked-in to the SVN repository. When I select (right-click) the file in my project and select Team > Show History. It lists the revisions made to the zul file. When I choose to open a previous revision to see its contents (not replaceing the current version, just open to view), the following exception occurs: ("Could not open the editor: An unexpected exception was thrown." java.lang.NullPointerException at org.zkoss.eclipse.editor.core.model.ZulContext.reconcileProjectContext(ZulContext.java:382) at org.zkoss.eclipse.editor.core.model.ZulContext.inputDocumentChanged(ZulContext.java:320) at org.eclipse.jface.text.TextViewer.fireInputDocumentChanged(TextViewer.java:2888) at org.eclipse.jface.text.TextViewer.setDocument(TextViewer.java:2937) at org.eclipse.jface.text.source.SourceViewer.setDocument(SourceViewer.java:640) at org.eclipse.jface.text.source.projection.ProjectionViewer.setDocument(ProjectionViewer.java:376) at org.eclipse.wst.sse.ui.internal.StructuredTextViewer.setDocument(StructuredTextViewer.java:805) at org.eclipse.jface.text.source.SourceViewer.setDocument(SourceViewer.java:588) at org.eclipse.ui.texteditor.AbstractTextEditor.initializeSourceViewer(AbstractTextEditor.java:4030) at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:3558) at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:54) at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:440) at org.eclipse.wst.sse.ui.StructuredTextEditor.createPartControl(StructuredTextEditor.java:1508) at org.zkoss.eclipse.editor.wst.ZulTextEditor.createPartControl(ZulTextEditor.java:258) at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670) at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465) at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595) at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2945) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850) at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842) at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2756) at org.tigris.subversion.subclipse.ui.actions.OpenLogEntryAction$1.run(OpenLogEntryAction.java:56) at org.tigris.subversion.subclipse.ui.repository.RepositoryManager.run(RepositoryManager.java:375) at org.tigris.subversion.subclipse.ui.actions.SVNAction$1.run(SVNAction.java:226) at org.tigris.subversion.subclipse.ui.actions.SVNAction$2.run(SVNAction.java:235) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.tigris.subversion.subclipse.ui.actions.SVNAction.run(SVNAction.java:232) at org.tigris.subversion.subclipse.ui.actions.OpenLogEntryAction.execute(OpenLogEntryAction.java:35) at org.tigris.subversion.subclipse.ui.actions.SVNAction.run(SVNAction.java:56) at org.eclipse.ui.actions.ActionDelegate.runWithEvent(ActionDelegate.java:70) at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:241) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501) 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:1053) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123) 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:344) 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:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) at org.eclipse.equinox.launcher.Main.run(Main.java:1410) at org.eclipse.equinox.launcher.Main.main(Main.java:1386) 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 com.genuitec.pulse.eclipse.launcher.Main.main(Main.java:110)

    ZK-Tracker | 3 years ago | michaelh
    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.zkoss.eclipse.editor.core.model.ZulContext.reconcileProjectContext()
    2. org.zkoss.eclipse
      ZulContext.inputDocumentChanged
      1. org.zkoss.eclipse.editor.core.model.ZulContext.reconcileProjectContext(ZulContext.java:382)
      2. org.zkoss.eclipse.editor.core.model.ZulContext.inputDocumentChanged(ZulContext.java:320)
      2 frames
    3. JFace Text
      ProjectionViewer.setDocument
      1. org.eclipse.jface.text.TextViewer.fireInputDocumentChanged(TextViewer.java:2888)
      2. org.eclipse.jface.text.TextViewer.setDocument(TextViewer.java:2937)
      3. org.eclipse.jface.text.source.SourceViewer.setDocument(SourceViewer.java:640)
      4. org.eclipse.jface.text.source.projection.ProjectionViewer.setDocument(ProjectionViewer.java:376)
      4 frames
    4. Structured Source Editor
      StructuredTextViewer.setDocument
      1. org.eclipse.wst.sse.ui.internal.StructuredTextViewer.setDocument(StructuredTextViewer.java:805)
      1 frame
    5. JFace Text
      SourceViewer.setDocument
      1. org.eclipse.jface.text.source.SourceViewer.setDocument(SourceViewer.java:588)
      1 frame
    6. Text Editor Framework
      AbstractDecoratedTextEditor.createPartControl
      1. org.eclipse.ui.texteditor.AbstractTextEditor.initializeSourceViewer(AbstractTextEditor.java:4030)
      2. org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:3558)
      3. org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:54)
      4. org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:440)
      4 frames
    7. Structured Source Editor
      StructuredTextEditor.createPartControl
      1. org.eclipse.wst.sse.ui.StructuredTextEditor.createPartControl(StructuredTextEditor.java:1508)
      1 frame
    8. org.zkoss.eclipse
      ZulTextEditor.createPartControl
      1. org.zkoss.eclipse.editor.wst.ZulTextEditor.createPartControl(ZulTextEditor.java:258)
      1 frame
    9. Eclipse UI
      WorkbenchPage$10.run
      1. org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670)
      2. org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
      3. org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
      4. org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289)
      5. org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2945)
      6. org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850)
      7. org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842)
      8. org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793)
      8 frames
    10. RWT
      BusyIndicator.showWhile
      1. org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
      1 frame
    11. Eclipse UI
      WorkbenchPage.openEditor
      1. org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789)
      2. org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773)
      3. org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2756)
      3 frames
    12. org.tigris.subversion
      SVNAction$2.run
      1. org.tigris.subversion.subclipse.ui.actions.OpenLogEntryAction$1.run(OpenLogEntryAction.java:56)
      2. org.tigris.subversion.subclipse.ui.repository.RepositoryManager.run(RepositoryManager.java:375)
      3. org.tigris.subversion.subclipse.ui.actions.SVNAction$1.run(SVNAction.java:226)
      4. org.tigris.subversion.subclipse.ui.actions.SVNAction$2.run(SVNAction.java:235)
      4 frames
    13. RWT
      BusyIndicator.showWhile
      1. org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
      1 frame
    14. org.tigris.subversion
      SVNAction.run
      1. org.tigris.subversion.subclipse.ui.actions.SVNAction.run(SVNAction.java:232)
      2. org.tigris.subversion.subclipse.ui.actions.OpenLogEntryAction.execute(OpenLogEntryAction.java:35)
      3. org.tigris.subversion.subclipse.ui.actions.SVNAction.run(SVNAction.java:56)
      3 frames
    15. Eclipse UI
      ActionDelegate.runWithEvent
      1. org.eclipse.ui.actions.ActionDelegate.runWithEvent(ActionDelegate.java:70)
      1 frame
    16. Eclipse UI
      PluginAction.runWithEvent
      1. org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:241)
      1 frame
    17. JFace
      ActionContributionItem$5.handleEvent
      1. org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
      2. org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
      3. org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
      3 frames
    18. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      2. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
      3. org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
      4. org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
      4 frames
    19. Eclipse UI
      Workbench$7.run
      1. org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
      2. org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
      3. org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
      4. org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
      4 frames
    20. Databinding
      Realm.runWithDefault
      1. org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      1 frame
    21. Eclipse UI
      Workbench.createAndRunWorkbench
      1. org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
      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:123)
      1 frame
    24. Equinox Container
      EclipseAppHandle.run
      1. org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      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:344)
      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:597)
      4 frames
    27. Equinox
      Main.main
      1. org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
      2. org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
      3. org.eclipse.equinox.launcher.Main.run(Main.java:1410)
      4. org.eclipse.equinox.launcher.Main.main(Main.java:1386)
      4 frames
    28. 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:597)
      4 frames
    29. com.genuitec.pulse
      Main.main
      1. com.genuitec.pulse.eclipse.launcher.Main.main(Main.java:110)
      1 frame