-
Bug
-
Resolution: Fixed
-
P3
-
1.1.4, 1.1.6, 1.2.0
-
swing1.1
-
x86
-
windows_95, windows_nt
==========================================================================
carlos.lucasius@canada 1998-03-19:
Bug reported by Corel (licensee) for JFC1.1 using JDK1.1.4 on WINNT4.0.
Corel: "Very critical bug for our product - requires immediate attention."
a. Open a new document for editing in a JEditorPane (for HTML content)
b. Start typing some text
c. Move the cursor to the start of the document (position 0)
d. Start typing
e. The following error occurs:
Exception occurred during event dispatching:
com.sun.java.swing.text.StateInvariantError: infinite loop in formatting
at com.sun.java.swing.text.ParagraphView.rebuildRows(ParagraphView.java:163)
at com.sun.java.swing.text.ParagraphView.layout(ParagraphView.java:127)
at com.sun.java.swing.text.ParagraphView.removeUpdate(ParagraphView.java:661)
at com.sun.java.swing.text.BoxView.removeUpdate(BoxView.java:358)
at com.sun.java.swing.text.DefaultTextUI$RootView.removeUpdate(DefaultTextUI.java: 848)
at com.sun.java.swing.text.DefaultTextUI$UpdateHandler.removeUpdate(DefaultTextUI.java:1065)
at com.sun.java.swing.text.AbstractDocument.fireRemoveUpdate(AbstractDocument.java:185)
at com.sun.java.swing.text.AbstractDocument.remove(AbstractDocument.java :371)
at com.sun.java.swing.text.JTextComponent.replaceSelection(JTextComponent.java:758)
at com.sun.java.swing.text.DefaultEditorKit$DefaultKeyTypedAction.actionPerformed(DefaultEditorKit.java:650)
at com.sun.java.swing.text.JTextComponent.processComponentKeyEvent(JTextComponent.java:1026)
at com.sun.java.swing.JComponent.processKeyEvent(JComponent.java:1256)
at java.awt.Component.processEvent(Component.java:2138)
at java.awt.Container.processEvent(Container.java:890)
at java.awt.Component.dispatchEventImpl(Component.java:1764)
at java.awt.Container.dispatchEventImpl(Container.java:935)
at java.awt.Component.dispatchEvent(Component.java:1704)
at java.awt.LightweightDispatcher.processKeyEvent(Container.java:1407)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:1393)
at java.awt.Container.dispatchEventImpl(Container.java:922)
at java.awt.Window.dispatchEventImpl(Window.java:441)
at java.awt.Component.dispatchEvent(Component.java:1704)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:63)
NOTE: The same also occurs if you open an already existing document, move to the start and start typing.
carlos.lucasius@canada 1998-03-19:
Bug reported by Corel (licensee) for JFC1.1 using JDK1.1.4 on WINNT4.0.
Corel: "Very critical bug for our product - requires immediate attention."
a. Open a new document for editing in a JEditorPane (for HTML content)
b. Start typing some text
c. Move the cursor to the start of the document (position 0)
d. Start typing
e. The following error occurs:
Exception occurred during event dispatching:
com.sun.java.swing.text.StateInvariantError: infinite loop in formatting
at com.sun.java.swing.text.ParagraphView.rebuildRows(ParagraphView.java:163)
at com.sun.java.swing.text.ParagraphView.layout(ParagraphView.java:127)
at com.sun.java.swing.text.ParagraphView.removeUpdate(ParagraphView.java:661)
at com.sun.java.swing.text.BoxView.removeUpdate(BoxView.java:358)
at com.sun.java.swing.text.DefaultTextUI$RootView.removeUpdate(DefaultTextUI.java: 848)
at com.sun.java.swing.text.DefaultTextUI$UpdateHandler.removeUpdate(DefaultTextUI.java:1065)
at com.sun.java.swing.text.AbstractDocument.fireRemoveUpdate(AbstractDocument.java:185)
at com.sun.java.swing.text.AbstractDocument.remove(AbstractDocument.java :371)
at com.sun.java.swing.text.JTextComponent.replaceSelection(JTextComponent.java:758)
at com.sun.java.swing.text.DefaultEditorKit$DefaultKeyTypedAction.actionPerformed(DefaultEditorKit.java:650)
at com.sun.java.swing.text.JTextComponent.processComponentKeyEvent(JTextComponent.java:1026)
at com.sun.java.swing.JComponent.processKeyEvent(JComponent.java:1256)
at java.awt.Component.processEvent(Component.java:2138)
at java.awt.Container.processEvent(Container.java:890)
at java.awt.Component.dispatchEventImpl(Component.java:1764)
at java.awt.Container.dispatchEventImpl(Container.java:935)
at java.awt.Component.dispatchEvent(Component.java:1704)
at java.awt.LightweightDispatcher.processKeyEvent(Container.java:1407)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:1393)
at java.awt.Container.dispatchEventImpl(Container.java:922)
at java.awt.Window.dispatchEventImpl(Window.java:441)
at java.awt.Component.dispatchEvent(Component.java:1704)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:63)
NOTE: The same also occurs if you open an already existing document, move to the start and start typing.
- duplicates
-
JDK-4220240 Many HTML documents crash JEditorPane
- Closed
- relates to
-
JDK-4102050 exception in JEditorPane by typeing deleting and typeing again.
- Resolved