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 37783 - Failed to create text file with default options.
Summary: Failed to create text file with default options.
Status: VERIFIED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC All
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-05 12:20 UTC by pzajac
Modified: 2004-08-13 12:11 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 pzajac 2003-12-05 12:20:58 UTC
Description: 


Name: amR10106			Date: 10/29/2003


Build: M4 on Win2K
Attempt to create text file with default options generate exception if file
text.txt already exists.

Steps to reproduce:
1. Mount empty local filesystem.
2. Invoke New->All Templates..
3. Select Other->Text File and press Next.
4. Press Finish.
5. Repeat steps from 2 to 4.
Result:
Annotation: Creation of the object from template failed.
Annotation: File text.txt already exists in H:\TestOrion.
java.io.SyncFailedException: File text.txt already exists in H:\TestOrion.
	at
org.openide.filesystems.LocalFileSystem.createData(LocalFileSystem.java:211)
	at
org.openide.filesystems.LocalFileSystem$Impl.createData(LocalFileSystem.java
:458)
	at
org.openide.filesystems.AbstractFileObject.createData(AbstractFileObject.jav
a:388)
	at
org.netbeans.modules.text.TXTWizardIterator.instantiate(TXTWizardIterator.ja
va:111)
	at
org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:517
)
	at
org.openide.loaders.TemplateWizard.instantiateImpl(TemplateWizard.java:442)
	at org.openide.loaders.TemplateWizard.instantiate(TemplateWizard.java:358)
	at
org.openide.actions.NewTemplateAction.doShowWizard(NewTemplateAction.java:32
8)
	at
org.openide.actions.NewTemplateAction.access$300(NewTemplateAction.java:49)
	at
org.openide.actions.NewTemplateAction$MenuWithRecent$Item.actionPerformed(Ne
wTemplateAction.java:285)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
	at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButto
n.java:1817)
	at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:4
19)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
	at
javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
	at
javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Basic
MenuItemUI.java:943)
	at java.awt.Component.processMouseEvent(Component.java:5134)
	at java.awt.Component.processEvent(Component.java:4931)
	at java.awt.Container.processEvent(Container.java:1566)
	at java.awt.Component.dispatchEventImpl(Component.java:3639)
	at java.awt.Container.dispatchEventImpl(Container.java:1623)
	at java.awt.Component.dispatchEvent(Component.java:3480)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
	at java.awt.Container.dispatchEventImpl(Container.java:1609)
	at java.awt.Window.dispatchEventImpl(Window.java:1590)
	at java.awt.Component.dispatchEvent(Component.java:3480)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:197)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:150)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

======================================================================

A comment.
Comment 1 Jiri Rechtacek 2003-12-16 13:39:02 UTC
Minor problem, who is responsible for TXTWizard should solve it. Not
problem is wizard's framework. I'll look on it if time resource allows.
Comment 2 psuk 2004-06-09 09:05:46 UTC
Closing as WONTFIX. The functionality of text module was replaced by new build
system and changes in the core and text module was removed from dev build.
Comment 3 pzajac 2004-06-22 10:24:49 UTC
v