This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 81825 - Exception on undoing changes in Source
Summary: Exception on undoing changes in Source
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 5.x
Hardware: All Solaris
: P1 blocker (vote)
Assignee: Nathan Fiedler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-03 16:14 UTC by kozlov
Modified: 2006-08-23 16:29 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kozlov 2006-08-03 16:14:25 UTC
Reproduced in build 060802.

To reproduce the bug:

- create a 'loanApplication' schema;
- switch to Source;
- add 'id' to annotation;
- switch to Schema;
- make undo; 
- switch to Source;
- make undo.

Exception:

javax.swing.undo.CannotUndoException
	at org.netbeans.editor.BaseDocumentEvent.undo(BaseDocumentEvent.java:246)
	at org.netbeans.editor.GuardedDocumentEvent.undo(GuardedDocumentEvent.java:47)
	at javax.swing.undo.CompoundEdit.undo(CompoundEdit.java:46)
	at org.netbeans.editor.BaseDocument$AtomicCompoundEdit.undo(BaseDocument.java:1681)
	at javax.swing.undo.UndoManager.undoTo(UndoManager.java:313)
	at javax.swing.undo.UndoManager.undo(UndoManager.java:391)
	at
org.openide.text.CloneableEditorSupport$CESUndoRedoManager.access$2401(CloneableEditorSupport.java:2637)
	at
org.openide.text.CloneableEditorSupport$CESUndoRedoManager$RenderUndo.run(CloneableEditorSupport.java:2777)
	at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:226)
	at
org.openide.text.CloneableEditorSupport$CESUndoRedoManager$RenderUndo.<init>(CloneableEditorSupport.java:2757)
	at
org.openide.text.CloneableEditorSupport$CESUndoRedoManager$RenderUndo.<init>(CloneableEditorSupport.java:2749)
	at
org.openide.text.CloneableEditorSupport$CESUndoRedoManager.undo(CloneableEditorSupport.java:2668)
	at org.openide.actions.UndoAction.performAction(UndoAction.java:140)
	at
org.openide.util.actions.CallableSystemAction$1.run(CallableSystemAction.java:100)
	at
org.netbeans.modules.openide.util.ActionsBridge.doPerformAction(ActionsBridge.java:53)
	at
org.openide.util.actions.CallableSystemAction.actionPerformed(CallableSystemAction.java:96)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:377)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:232)
	at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
	at java.awt.Component.processMouseEvent(Component.java:5999)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3240)
	at org.openide.awt.ToolbarButton.processMouseEvent(ToolbarButton.java:39)
	at java.awt.Component.processEvent(Component.java:5764)
	at java.awt.Container.processEvent(Container.java:1984)
	at java.awt.Component.dispatchEventImpl(Component.java:4407)
	at java.awt.Container.dispatchEventImpl(Container.java:2042)
	at java.awt.Component.dispatchEvent(Component.java:4237)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4248)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3912)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3842)
	at java.awt.Container.dispatchEventImpl(Container.java:2028)
	at java.awt.Window.dispatchEventImpl(Window.java:2405)
	at java.awt.Component.dispatchEvent(Component.java:4237)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:600)
	at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Comment 1 Nathan Fiedler 2006-08-03 22:11:02 UTC
Using build 060802 on Windows XP, following the steps given (for step 3, I added
'id="abc"' since just 'id' is not valid), I cannot reproduce this bug. Hao says
she cannot reproduce it either.

Please provide instructions in as explicit a form as you can. Be sure to provide
the file name of the build you downloaded, the version of the JDK you are using,
and the build/locale of Windows XP).
Comment 2 Nathan Fiedler 2006-08-04 19:23:46 UTC
I can now reproduce this, but on Solaris, not Windows.
Comment 3 Nathan Fiedler 2006-08-10 00:10:10 UTC
Fixed on release55 branch (not for beta).

xml/schema/core/src/org/netbeans/modules/xml/schema/core/multiview/SchemaSourceMultiViewElement.java
revision 1.1.2.16
Comment 4 kozlov 2006-08-23 16:29:23 UTC
Verified in build060823.