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.
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)
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).
I can now reproduce this, but on Solaris, not Windows.
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
Verified in build060823.