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 48345 - [40cat] exception while saving XML file
Summary: [40cat] exception while saving XML file
Status: CLOSED DUPLICATE of bug 49112
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2004-09-02 08:15 UTC by _ leonchiver
Modified: 2006-03-24 09:46 UTC (History)
0 users

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 _ leonchiver 2004-09-02 08:15:44 UTC
[ BUILD # : 200408311800 ]
[ JDK VERSION : J2SE 1.5.0 ]

from time to time i'm getting following exception when trying to save a xml file:

Annotation: There were some problems while saving build.xml [Up-to-date; 1.4].
org.openide.filesystems.FileAlreadyLockedException: build.xml
	at org.openide.filesystems.StreamPool$2.write(StreamPool.java:100)
	at java.io.OutputStream.write(OutputStream.java:99)
	at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
	at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
	at sun.nio.cs.StreamEncoder$CharsetSE.implFlush(StreamEncoder.java:410)
	at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:152)
	at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:213)
	at org.netbeans.editor.BaseDocument.write(BaseDocument.java:1020)
	at org.netbeans.editor.BaseKit.write(BaseKit.java:442)
	at org.netbeans.modules.xml.text.syntax.UniKit.write(UniKit.java:70)
	at org.openide.text.CloneableEditorSupport.saveFromKitToStream(CloneableEditorSupport.java:1122)
	at org.openide.text.CloneableEditorSupport$4.run(CloneableEditorSupport.java:714)
	at org.netbeans.editor.BaseDocument.render(BaseDocument.java:941)
	at org.openide.text.CloneableEditorSupport.saveDocument(CloneableEditorSupport.java:704)
	at org.openide.text.DataEditorSupport.saveDocument(DataEditorSupport.java:250)
	at org.apache.tools.ant.module.loader.AntProjectDataEditor$AntEnv.save(AntProjectDataEditor.java:109)
	at org.openide.actions.SaveAction.performAction(SaveAction.java:43)
	at org.openide.util.actions.NodeAction$3.run(NodeAction.java:440)
	at org.openide.util.actions.CallableSystemAction.doPerformAction(CallableSystemAction.java:116)
	at org.openide.util.actions.NodeAction$DelegateAction.actionPerformed(NodeAction.java:438)
	at org.openide.windows.TopComponent.processKeyBinding(TopComponent.java:690)
	at javax.swing.JComponent.processKeyBindings(JComponent.java:2776)
	at javax.swing.JComponent.processKeyEvent(JComponent.java:2693)
	at java.awt.Component.processEvent(Component.java:5265)
	at java.awt.Container.processEvent(Container.java:1966)
	at java.awt.Component.dispatchEventImpl(Component.java:3955)
	at java.awt.Container.dispatchEventImpl(Container.java:2024)
	at java.awt.Component.dispatchEvent(Component.java:3803)
	at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1810)
	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:668)
	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:916)
	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:794)
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:632)
	at java.awt.Component.dispatchEventImpl(Component.java:3841)
	at java.awt.Container.dispatchEventImpl(Container.java:2024)
	at java.awt.Window.dispatchEventImpl(Window.java:1766)
	at java.awt.Component.dispatchEvent(Component.java:3803)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)


i can reproduce it relative easily using a fast succesion of edit and save sequences (hit space, press CTRL+S and so on)
Comment 1 dmladek 2004-09-17 14:41:25 UTC
Let me mark it as duplicate of issue 49112
If you have some valuable info, then put it in the mentioned bug.
Thanks

*** This issue has been marked as a duplicate of 49112 ***
Comment 2 dmladek 2004-09-17 15:53:48 UTC
it's a dup