-
Bug
-
Resolution: Fixed
-
P3
-
1.1.3
-
None
-
1.1.5
-
generic, sparc
-
solaris_2.5, solaris_2.5.1
-
Not verified
steps that produced the problem:
1) launched the demo example Notepad
2) type in any charactor
3) result in NullPointerException thrown.
The problem happens intermitently in swing-0.2 with JDK1.1.3(or sparkle). Wished that I could find a consistant way to reproduced it.
Here is the Stack Trace:
Exception occurred during event dispatching:
java.lang.NullPointerException
at com.sun.java.swing.text.JDocument.positionToLine(JDocument.java:303)
at com.sun.java.swing.text.JPlainView.modelToView(JPlainView.java:103)
at com.sun.java.swing.text.JTextUI$JViewFactory.modelToView(JTextUI.java:379)
at com.sun.java.swing.text.JTextUI$JTextView.modelToView(JTextUI.java:621)
at com.sun.java.swing.text.JTextUI.modelToView(JTextUI.java:217)
at com.sun.java.swing.text.JInsertPosition.changeCaretPosition(JInsertPosition.java:351)
at com.sun.java.swing.text.JInsertPosition.setDot(JInsertPosition.java:304)
at com.sun.java.swing.text.JInsertPosition.removeUpdate(JInsertPosition.java:182)
at com.sun.java.swing.text.JDocument.externalNotifyRemove(JDocument.java:506)
at com.sun.java.swing.text.JDocument.remove(JDocument.java:135)
at com.sun.java.swing.text.JDocument.remove(JDocument.java:116)
at com.sun.java.swing.text.JTextComponent.replaceSelection(JTextComponent.java:161)
at
com.sun.java.swing.text.JTextComponent$InsertContentAction.actionPerformed(JTextComponent.java:570)
at com.sun.java.swing.text.JTextController.mapEventToAction(JTextController.java:216)
at com.sun.java.swing.text.JTextController.keyPressed(JTextController.java:332)
at java.awt.Component.processKeyEvent(Component.java:2239)
at com.sun.java.swing.JComponent.processKeyEvent(JComponent.java:531)
at java.awt.Component.processEvent(Component.java:2130)
at java.awt.Container.processEvent(Container.java:852)
at java.awt.Component.dispatchEventImpl(Component.java:1756)
at java.awt.Container.dispatchEventImpl(Container.java:897)
at java.awt.Component.dispatchEvent(Component.java:1693)
at java.awt.LightweightDispatcher.processKeyEvent(Container.java:1362)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:1348)
at java.awt.Container.dispatchEventImpl(Container.java:884)
at java.awt.Window.dispatchEventImpl(Window.java:443)
at java.awt.Component.dispatchEvent(Component.java:1693)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:63
1) launched the demo example Notepad
2) type in any charactor
3) result in NullPointerException thrown.
The problem happens intermitently in swing-0.2 with JDK1.1.3(or sparkle). Wished that I could find a consistant way to reproduced it.
Here is the Stack Trace:
Exception occurred during event dispatching:
java.lang.NullPointerException
at com.sun.java.swing.text.JDocument.positionToLine(JDocument.java:303)
at com.sun.java.swing.text.JPlainView.modelToView(JPlainView.java:103)
at com.sun.java.swing.text.JTextUI$JViewFactory.modelToView(JTextUI.java:379)
at com.sun.java.swing.text.JTextUI$JTextView.modelToView(JTextUI.java:621)
at com.sun.java.swing.text.JTextUI.modelToView(JTextUI.java:217)
at com.sun.java.swing.text.JInsertPosition.changeCaretPosition(JInsertPosition.java:351)
at com.sun.java.swing.text.JInsertPosition.setDot(JInsertPosition.java:304)
at com.sun.java.swing.text.JInsertPosition.removeUpdate(JInsertPosition.java:182)
at com.sun.java.swing.text.JDocument.externalNotifyRemove(JDocument.java:506)
at com.sun.java.swing.text.JDocument.remove(JDocument.java:135)
at com.sun.java.swing.text.JDocument.remove(JDocument.java:116)
at com.sun.java.swing.text.JTextComponent.replaceSelection(JTextComponent.java:161)
at
com.sun.java.swing.text.JTextComponent$InsertContentAction.actionPerformed(JTextComponent.java:570)
at com.sun.java.swing.text.JTextController.mapEventToAction(JTextController.java:216)
at com.sun.java.swing.text.JTextController.keyPressed(JTextController.java:332)
at java.awt.Component.processKeyEvent(Component.java:2239)
at com.sun.java.swing.JComponent.processKeyEvent(JComponent.java:531)
at java.awt.Component.processEvent(Component.java:2130)
at java.awt.Container.processEvent(Container.java:852)
at java.awt.Component.dispatchEventImpl(Component.java:1756)
at java.awt.Container.dispatchEventImpl(Container.java:897)
at java.awt.Component.dispatchEvent(Component.java:1693)
at java.awt.LightweightDispatcher.processKeyEvent(Container.java:1362)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:1348)
at java.awt.Container.dispatchEventImpl(Container.java:884)
at java.awt.Window.dispatchEventImpl(Window.java:443)
at java.awt.Component.dispatchEvent(Component.java:1693)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:63
- duplicates
-
JDK-4063193 Exception at JDocument.positionToLine() with JDK1.1.3 + Swing-0.2
-
- Closed
-