java.lang.NullPointerException

Hibernate JIRA | Barthel Steckemetz | 1 decade ago
  1. 0

    When editing hibernate-mapping files (*.hbm.xml) in the eclipse XML Source Page editor, I get wrong and sticky highlighting of errors in the editor view. When I close the editor and reopen the file, the wrong highlighting is gone. The eclipse log contains the following text: !ENTRY org.eclipse.wst.sse.core 4 4 2005-11-25 16:53:23.930 !MESSAGE A structured model client, org.hibernate.eclipse.mapper.views.contentoutline.JFaceNodeAdapterForXML@185477d threw following exception during adapter notification (CHANGE ) !STACK 0 java.lang.NullPointerException at org.hibernate.eclipse.mapper.views.contentoutline.JFaceNodeAdapterFactoryForXML.getListeners(Unknown Source) at org.eclipse.wst.xml.ui.internal.contentoutline.JFaceNodeAdapter.notifyChanged(JFaceNodeAdapter.java:326) at org.eclipse.wst.sse.core.internal.provisional.AbstractNotifier.notify(AbstractNotifier.java:202) at org.eclipse.wst.xml.core.internal.document.XMLModelNotifierImpl.notify(XMLModelNotifierImpl.java:238) at org.eclipse.wst.xml.core.internal.document.XMLModelNotifierImpl.notifyDeferred(XMLModelNotifierImpl.java:326) at org.eclipse.wst.xml.core.internal.document.XMLModelNotifierImpl.endChanging(XMLModelNotifierImpl.java:178) at org.eclipse.wst.xml.core.internal.document.DOMModelImpl.changedModel(DOMModelImpl.java:161) at org.eclipse.wst.sse.core.internal.model.AbstractStructuredModel$DocumentToModelNotifier.regionChanged(AbstractStructuredModel.java:163) at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument._fireEvent(BasicStructuredDocument.java:550) at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.fireStructuredDocumentEvent(BasicStructuredDocument.java:1214) at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.internalReplaceText(BasicStructuredDocument.java:1903) at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:2349) at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.access$0(JobSafeStructuredDocument.java:1) at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument$1.run(JobSafeStructuredDocument.java:100) at org.eclipse.wst.sse.ui.internal.editor.EditorExecutionContext.execute(EditorExecutionContext.java:43) at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.replaceText(JobSafeStructuredDocument.java:110) at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:2345) at org.eclipse.wst.sse.ui.internal.StructuredDocumentToTextAdapter.replaceTextRange(StructuredDocumentToTextAdapter.java:1187) at org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:5787) at org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:6625) at org.eclipse.swt.custom.StyledText.doBackspace(StyledText.java:2544) at org.eclipse.swt.custom.StyledText.invokeAction(StyledText.java:5668) at org.eclipse.swt.custom.StyledText.handleKey(StyledText.java:5102) at org.eclipse.swt.custom.StyledText.handleKeyDown(StyledText.java:5124) at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:4857) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:867) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:852) at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:880) at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:876) at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1190) at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3135) at org.eclipse.swt.widgets.Control.windowProc(Control.java:3038) at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1656) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2711) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334) at org.eclipse.core.launcher.Main.basicRun(Main.java:278) at org.eclipse.core.launcher.Main.run(Main.java:973) at org.eclipse.core.launcher.Main.main(Main.java:948) I tried to manually debug this in eclipse plugin mode, I could attach the tools source code, but I can not set breakpoints and find the reason myself. If you can not reproduce this I can sent you the mapping file and describe the steps to reproduce this. Many thanks in advance.

    Hibernate JIRA | 1 decade ago | Barthel Steckemetz
    java.lang.NullPointerException
  2. 0

    When editing hibernate-mapping files (*.hbm.xml) in the eclipse XML Source Page editor, I get wrong and sticky highlighting of errors in the editor view. When I close the editor and reopen the file, the wrong highlighting is gone. The eclipse log contains the following text: !ENTRY org.eclipse.wst.sse.core 4 4 2005-11-25 16:53:23.930 !MESSAGE A structured model client, org.hibernate.eclipse.mapper.views.contentoutline.JFaceNodeAdapterForXML@185477d threw following exception during adapter notification (CHANGE ) !STACK 0 java.lang.NullPointerException at org.hibernate.eclipse.mapper.views.contentoutline.JFaceNodeAdapterFactoryForXML.getListeners(Unknown Source) at org.eclipse.wst.xml.ui.internal.contentoutline.JFaceNodeAdapter.notifyChanged(JFaceNodeAdapter.java:326) at org.eclipse.wst.sse.core.internal.provisional.AbstractNotifier.notify(AbstractNotifier.java:202) at org.eclipse.wst.xml.core.internal.document.XMLModelNotifierImpl.notify(XMLModelNotifierImpl.java:238) at org.eclipse.wst.xml.core.internal.document.XMLModelNotifierImpl.notifyDeferred(XMLModelNotifierImpl.java:326) at org.eclipse.wst.xml.core.internal.document.XMLModelNotifierImpl.endChanging(XMLModelNotifierImpl.java:178) at org.eclipse.wst.xml.core.internal.document.DOMModelImpl.changedModel(DOMModelImpl.java:161) at org.eclipse.wst.sse.core.internal.model.AbstractStructuredModel$DocumentToModelNotifier.regionChanged(AbstractStructuredModel.java:163) at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument._fireEvent(BasicStructuredDocument.java:550) at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.fireStructuredDocumentEvent(BasicStructuredDocument.java:1214) at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.internalReplaceText(BasicStructuredDocument.java:1903) at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:2349) at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.access$0(JobSafeStructuredDocument.java:1) at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument$1.run(JobSafeStructuredDocument.java:100) at org.eclipse.wst.sse.ui.internal.editor.EditorExecutionContext.execute(EditorExecutionContext.java:43) at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.replaceText(JobSafeStructuredDocument.java:110) at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:2345) at org.eclipse.wst.sse.ui.internal.StructuredDocumentToTextAdapter.replaceTextRange(StructuredDocumentToTextAdapter.java:1187) at org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:5787) at org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:6625) at org.eclipse.swt.custom.StyledText.doBackspace(StyledText.java:2544) at org.eclipse.swt.custom.StyledText.invokeAction(StyledText.java:5668) at org.eclipse.swt.custom.StyledText.handleKey(StyledText.java:5102) at org.eclipse.swt.custom.StyledText.handleKeyDown(StyledText.java:5124) at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:4857) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:867) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:852) at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:880) at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:876) at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1190) at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3135) at org.eclipse.swt.widgets.Control.windowProc(Control.java:3038) at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1656) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2711) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334) at org.eclipse.core.launcher.Main.basicRun(Main.java:278) at org.eclipse.core.launcher.Main.run(Main.java:973) at org.eclipse.core.launcher.Main.main(Main.java:948) I tried to manually debug this in eclipse plugin mode, I could attach the tools source code, but I can not set breakpoints and find the reason myself. If you can not reproduce this I can sent you the mapping file and describe the steps to reproduce this. Many thanks in advance.

    Hibernate JIRA | 1 decade ago | Barthel Steckemetz
    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.hibernate.eclipse.mapper.views.contentoutline.JFaceNodeAdapterFactoryForXML.getListeners()
    2. org.hibernate.eclipse
      JFaceNodeAdapterFactoryForXML.getListeners
      1. org.hibernate.eclipse.mapper.views.contentoutline.JFaceNodeAdapterFactoryForXML.getListeners(Unknown Source)
      1 frame
    3. org.eclipse.wst
      JFaceNodeAdapter.notifyChanged
      1. org.eclipse.wst.xml.ui.internal.contentoutline.JFaceNodeAdapter.notifyChanged(JFaceNodeAdapter.java:326)
      1 frame
    4. Structured Text Model
      AbstractNotifier.notify
      1. org.eclipse.wst.sse.core.internal.provisional.AbstractNotifier.notify(AbstractNotifier.java:202)
      1 frame
    5. Structured Source XML Model
      DOMModelImpl.changedModel
      1. org.eclipse.wst.xml.core.internal.document.XMLModelNotifierImpl.notify(XMLModelNotifierImpl.java:238)
      2. org.eclipse.wst.xml.core.internal.document.XMLModelNotifierImpl.notifyDeferred(XMLModelNotifierImpl.java:326)
      3. org.eclipse.wst.xml.core.internal.document.XMLModelNotifierImpl.endChanging(XMLModelNotifierImpl.java:178)
      4. org.eclipse.wst.xml.core.internal.document.DOMModelImpl.changedModel(DOMModelImpl.java:161)
      4 frames
    6. Structured Text Model
      JobSafeStructuredDocument$1.run
      1. org.eclipse.wst.sse.core.internal.model.AbstractStructuredModel$DocumentToModelNotifier.regionChanged(AbstractStructuredModel.java:163)
      2. org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument._fireEvent(BasicStructuredDocument.java:550)
      3. org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.fireStructuredDocumentEvent(BasicStructuredDocument.java:1214)
      4. org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.internalReplaceText(BasicStructuredDocument.java:1903)
      5. org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:2349)
      6. org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.access$0(JobSafeStructuredDocument.java:1)
      7. org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument$1.run(JobSafeStructuredDocument.java:100)
      7 frames
    7. Structured Source Editor
      EditorExecutionContext.execute
      1. org.eclipse.wst.sse.ui.internal.editor.EditorExecutionContext.execute(EditorExecutionContext.java:43)
      1 frame
    8. Structured Text Model
      BasicStructuredDocument.replaceText
      1. org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.replaceText(JobSafeStructuredDocument.java:110)
      2. org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:2345)
      2 frames
    9. Structured Source Editor
      StructuredDocumentToTextAdapter.replaceTextRange
      1. org.eclipse.wst.sse.ui.internal.StructuredDocumentToTextAdapter.replaceTextRange(StructuredDocumentToTextAdapter.java:1187)
      1 frame
    10. RWT
      Display.windowProc
      1. org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:5787)
      2. org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:6625)
      3. org.eclipse.swt.custom.StyledText.doBackspace(StyledText.java:2544)
      4. org.eclipse.swt.custom.StyledText.invokeAction(StyledText.java:5668)
      5. org.eclipse.swt.custom.StyledText.handleKey(StyledText.java:5102)
      6. org.eclipse.swt.custom.StyledText.handleKeyDown(StyledText.java:5124)
      7. org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:4857)
      8. org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
      9. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
      10. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:867)
      11. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:852)
      12. org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:880)
      13. org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:876)
      14. org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1190)
      15. org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3135)
      16. org.eclipse.swt.widgets.Control.windowProc(Control.java:3038)
      17. org.eclipse.swt.widgets.Display.windowProc(Display.java:3706)
      17 frames
    11. org.eclipse.swt
      OS.DispatchMessage
      1. org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
      2. org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1656)
      2 frames
    12. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2711)
      1 frame
    13. Eclipse UI
      Workbench.createAndRunWorkbench
      1. org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
      2. org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
      3. org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
      3 frames
    14. Eclipse UI
      IDEApplication.run
      1. org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
      2. org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
      2 frames
    15. Eclipse Core
      PlatformActivator$1.run
      1. org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
      1 frame
    16. Eclipse OSGi
      EclipseStarter.run
      1. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
      2. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
      2 frames
    17. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    18. Equinox
      Main.main
      1. org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
      2. org.eclipse.core.launcher.Main.basicRun(Main.java:278)
      3. org.eclipse.core.launcher.Main.run(Main.java:973)
      4. org.eclipse.core.launcher.Main.main(Main.java:948)
      4 frames