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 152366, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE Dev (Build 201103080000) VM: Java HotSpot(TM) 64-Bit Server VM, 19.1-b02, Java(TM) SE Runtime Environment, 1.6.0_24-b07 OS: Windows 7 User Comments: devilsevilhair: adding a libary dir Stacktrace: java.io.SyncFailedException: C:\Users\Ed\Documents\NetBeansProjects\trunk\Library\javaws.jar at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.createData(FolderObj.java:350) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.createDataImpl(FolderObj.java:297) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj$1.call(FolderObj.java:264) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj$1.call(FolderObj.java:262) at org.netbeans.modules.masterfs.filebasedfs.FileBasedFileSystem.runAsInconsistent(FileBasedFileSystem.java:118) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.createData(FolderObj.java:267)
Created attachment 107263 [details] stacktrace
SyncFailedException is IOException, the code at org.netbeans.spi.java.project.support.ui.SharableLibrariesUtils$CopyJars.updateReference( should be ready for IOExceptions.
Wow SyncFailedException I've never seen it before.
Caused by an existing file. Ideally should ask user what to do (replace, use existing, rename?). Unfortunately it's not possible as the code was posted into non AWT thread and user interaction will require SwingUtilities.invokeAndWait. The invokeAndWait cannot be used as the non AWT thread also hods the global project's mutex in write mode. Any UI refresh needs it in read access => deadlock. So I at least notify user about it in SU.invokeLater and use the original file. If time permits I will put the verification part into MakeShareableVisualPanel. The problem is that the action does not know the destination folder, it's set later on. But there is a single report of this problem, it's probably not needed. Fixed jet-main e7540fc90cdc
Integrated into 'main-golden', will be available in build *201103310400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/e7540fc90cdc User: Tomas Zezula <tzezula@netbeans.org> Log: #197069:java.io.SyncFailedException: C:\Users\Ed\Documents\NetBeansProjects\trunk\Library\javaws.jar