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 197069 - java.io.SyncFailedException: C:\Users\Ed\Documents\NetBeansProjects\trunk\Library\javaws.jar
Summary: java.io.SyncFailedException: C:\Users\Ed\Documents\NetBeansProjects\trunk\Lib...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-24 22:48 UTC by devilsevilhair
Modified: 2011-03-31 08:48 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 177902


Attachments
stacktrace (2.65 KB, text/plain)
2011-03-24 22:48 UTC, devilsevilhair
Details

Note You need to log in before you can comment on or make changes to this bug.
Description devilsevilhair 2011-03-24 22:48:26 UTC
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)
Comment 1 devilsevilhair 2011-03-24 22:48:30 UTC
Created attachment 107263 [details]
stacktrace
Comment 2 Jaroslav Tulach 2011-03-25 07:08:37 UTC
SyncFailedException is IOException, the code at
 org.netbeans.spi.java.project.support.ui.SharableLibrariesUtils$CopyJars.updateReference(
should be ready for IOExceptions.
Comment 3 Tomas Zezula 2011-03-29 17:13:40 UTC
Wow SyncFailedException I've never seen it before.
Comment 4 Tomas Zezula 2011-03-30 13:49:58 UTC
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
Comment 5 Quality Engineering 2011-03-31 08:48:56 UTC
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