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.
This bug was originally marked as duplicate of bug 159188, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE 6.8 (Build 200912091457) VM: Java HotSpot(TM) Client VM, 16.2-b04, Java(TM) SE Runtime Environment, 1.6.0_19-b04 OS: Windows Vista User Comments: alied: after changing the default directory for a jar dependency Stacktrace: java.io.SyncFailedException: C:\Users\Administrador\Documents\NetBeansProjects\sunflower\sunflower.orig\janino.jar at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.createData(FolderObj.java:282) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.createDataImpl(FolderObj.java:240) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj$1.call(FolderObj.java:210) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj$1.call(FolderObj.java:208) at org.netbeans.modules.masterfs.filebasedfs.FileBasedFileSystem.runAsInconsistent(FileBasedFileSystem.java:112) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.createData(FolderObj.java:213)
Created attachment 96791 [details] stacktrace
Created attachment 96797 [details] stacktrace
Not sure what this exception means. If the caller is somehow to blame, please improve the exception message to explain how, and reassign to java/project.
Well, looking at boolean isSupported = new FileInfo(file2Create).isSupportedFile(); ProvidedExtensions extensions = getProvidedExtensions(); extensions.beforeCreate(this, file2Create.getName(), false); if (!isSupported) { extensions.createFailure(this, file2Create.getName(), false); FSException.io("EXC_CannotCreateData", file2Create.getName(), getPath());// NOI18N } else if (FileChangedManager.getInstance().exists(file2Create)) { extensions.createFailure(this, file2Create.getName(), false); throw new SyncFailedException(file2Create.getAbsolutePath());// NOI18N } else if (!file2Create.createNewFile()) { I guess that the file already exists on the disk, but the masterfs does not know about that. Maybe do refresh before calling createData. If my hypothesis is confirmed, I can improve the exception message later.
Using FU.createFolder as it's safer. Fixed in jet-main: 4a5f1968ace8
Integrated into 'main-golden', will be available in build *201004200200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/4a5f1968ace8 User: Tomas Zezula <tzezula@netbeans.org> Log: #183590:[69cat] java.io.SyncFailedException: C:\Users\Administrador\Documents\NetBeansProjects\sunflower\sunflower.orig\janino.jar