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 106614

Summary: PROP: Severe exception when one icon is import into project for more then once
Product: guibuilder Reporter: Jana Maleckova <janie>
Component: CodeAssignee: issues@guibuilder <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: 106614

Description Jana Maleckova 2007-06-14 09:49:27 UTC
Product Version: NetBeans IDE Dev (Build 200706140604) Java: 1.6.0_02-ea; Java HotSpot(TM) Client VM 1.6.0_02-ea-b02
System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb) Userdir: D:\userdir60

Description:
============
Try to import one icon in project for more then once. Dialog with warning will be opened - that's right but severe
exception occurs in cmd as well. Should be treated.

StactTrace:
===========
ALL [null]: Cannot create file Apple.gif in folder
D:/testing_NB/6.0/1.6/DesktopApplication1/src/desktopapplication1/resources. This file already exists.
SEVERE:  Cannot create file Apple.gif in folder
D:/testing_NB/6.0/1.6/DesktopApplication1/src/desktopapplication1/resources. This file already exists.

msg
Caused: org.netbeans.modules.masterfs.filebasedfs.utils.FSException: Cannot create file Apple.gif in folder
D:/testing_NB/6.0/1.6/DesktopApplication1/src/desktopapplication1/resources. This file alrea
dy exists.
        at org.netbeans.modules.masterfs.filebasedfs.utils.FSException.io(FSException.java:109)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.createData(FolderObj.java:224)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.createData(FolderObj.java:193)
        at org.openide.filesystems.FileObject.createData(FileObject.java:665)
        at org.netbeans.modules.masterfs.MasterFileObject$AtomicAction.createData(MasterFileObject.java:1116)
        at org.netbeans.modules.masterfs.MasterFileObject$AtomicAction.run(MasterFileObject.java:1061)
Comment 1 Jana Maleckova 2007-06-14 09:50:33 UTC
Created attachment 43671 [details]
106614
Comment 2 Tomas Pavek 2007-08-22 15:09:13 UTC
Should be fixed by issue 110609 - explicitly checking the existing file.

*** This issue has been marked as a duplicate of 110609 ***