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 114442 - DocumentEditor example has exception when saving
Summary: DocumentEditor example has exception when saving
Status: RESOLVED WORKSFORME
Alias: None
Product: usersguide
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomas Pavek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-01 16:44 UTC by Patrick Keegan
Modified: 2007-11-05 08:15 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 Patrick Keegan 2007-09-01 16:44:46 UTC
This seems to happen when the file that is being saved already has a backup (.bak) file.

Sep 1, 2007 5:38:28 PM documenteditor.DocumentEditorView$SaveFileTask failed
WARNING: couldn't save G:\templinkcheck23aug.txt
java.io.IOException: file rename failed: G:\templinkcheck23aug.txt => G:\templinkcheck23aug.txt.bak
        at documenteditor.DocumentEditorApp$SaveTextFileTask.renameFile(DocumentEditorApp.java:175)
        at documenteditor.DocumentEditorApp$SaveTextFileTask.doInBackground(DocumentEditorApp.java:225)
        at documenteditor.DocumentEditorApp$SaveTextFileTask.doInBackground(DocumentEditorApp.java:135)
        at org.jdesktop.swingworker.SwingWorker$1.call(Unknown Source)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at org.jdesktop.swingworker.SwingWorker.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
        at java.lang.Thread.run(Thread.java:619)
Comment 1 Patrick Keegan 2007-10-29 22:40:17 UTC
Tomas, can you evaluate this one this week?
Comment 2 Patrick Keegan 2007-11-05 08:15:09 UTC
can no longer reproduce this