- This topic has 2 replies, 2 voices, and was last updated 20 years ago by
Scott Anderson.
-
AuthorPosts
-
bkaplanMemberThis was running on eclipse 3.1 final.
Selected some text, did a ctrl-X and got the first exception below. Undo worked
after the cut. A subsequent paste did paste the text, but also triggered anNEP
(second exception below).After closing and reopening the file the exceptions were no long thrown.
— Cut excception —
java.lang.NullPointerException
at
org.eclipse.jface.text.reconciler.AbstractReconciler$Listener.documentChanged(AbstractReconciler.java:236)
at
com.ibm.sse.model.internal.text.BasicStructuredDocument._fireDocumentChanged(BasicStructuredDocument.java:264)
at
com.ibm.sse.model.internal.text.BasicStructuredDocument.fireStructuredDocumentEvent(BasicStructuredDocument.java:940)
at
com.ibm.sse.model.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:1702)
at
com.ibm.sse.editor.StructuredDocumentToTextAdapter.replaceTextRange(StructuredDocumentToTextAdapter.java:952)
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.doDelete(StyledText.java:2672)
at org.eclipse.swt.custom.StyledText.cut(StyledText.java:2416)
at org.eclipse.jface.text.TextViewer.doOperation(TextViewer.java:3501)
at org.eclipse.jface.text.source.SourceViewer.doOperation(SourceViewer.java:801)
at
com.ibm.sse.editor.StructuredTextViewer.doOperation(StructuredTextViewer.java:509)
at
org.eclipse.ui.texteditor.TextOperationAction$1.run(TextOperationAction.java:122)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.texteditor.TextOperationAction.run(TextOperationAction.java:120)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:996)
at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:182)
at
org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:108)
at org.eclipse.core.commands.Command.execute(Command.java:311)
at
org.eclipse.core.commands.ParameterizedCommand.execute(ParameterizedCommand.java:396)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:459)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:781)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:828)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:550)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:493)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:117)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:917)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:842)
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)— Paste exception —
java.lang.NullPointerException
at
org.eclipse.jface.text.reconciler.AbstractReconciler$Listener.documentChanged(AbstractReconciler.java:236)
at
com.ibm.sse.model.internal.text.BasicStructuredDocument._fireDocumentChanged(BasicStructuredDocument.java:264)
at
com.ibm.sse.model.internal.text.BasicStructuredDocument.fireStructuredDocumentEvent(BasicStructuredDocument.java:940)
at
com.ibm.sse.model.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:1702)
at
com.ibm.sse.editor.StructuredDocumentToTextAdapter.replaceTextRange(StructuredDocumentToTextAdapter.java:952)
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.paste(StyledText.java:5823)
at org.eclipse.jface.text.TextViewer.doOperation(TextViewer.java:3515)
at org.eclipse.jface.text.source.SourceViewer.doOperation(SourceViewer.java:801)
at
com.ibm.sse.editor.StructuredTextViewer.doOperation(StructuredTextViewer.java:518)
at
org.eclipse.ui.texteditor.TextOperationAction$1.run(TextOperationAction.java:122)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.texteditor.TextOperationAction.run(TextOperationAction.java:120)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:996)
at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:182)
at
org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:108)
at org.eclipse.core.commands.Command.execute(Command.java:311)
at
org.eclipse.core.commands.ParameterizedCommand.execute(ParameterizedCommand.java:396)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:459)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:781)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:828)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:550)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:493)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:117)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:917)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:842)
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)July 2, 2005 at 6:44 pm #232217
bkaplanMemberI originally posted this an eclipse bug 102547. You might be interested in this part of their response:
FYI … I can see the BasicStructuredDocument is from our SSE code in WTP, but
… the “com.ibm.sse.model.internal.text” package indicates its something pretty
old. (that is, not sure its valid to be running it with Eclipse 3.1).July 3, 2005 at 6:19 pm #232230
Scott AndersonParticipantDoes this NPE happen on every cut, or just a particular one. Can you provide us with a small example file that shows the issue so we can address it?
-
AuthorPosts