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.
Summary: | java.io.SyncFailedException: C:\Users\Ed\Documents\NetBeansProjects\trunk\Library\javaws.jar | ||
---|---|---|---|
Product: | java | Reporter: | devilsevilhair <devilsevilhair> |
Component: | Project | Assignee: | Tomas Zezula <tzezula> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 177902 |
Attachments: | stacktrace |
Description
devilsevilhair
2011-03-24 22:48:26 UTC
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 |