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 183590 - [69cat] java.io.SyncFailedException: C:\Users\Administrador\Documents\NetBeansProjects\sunflower\sunflower.orig\janino.jar
Summary: [69cat] java.io.SyncFailedException: C:\Users\Administrador\Documents\NetBean...
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: 2010-04-06 16:15 UTC by alied
Modified: 2010-04-20 05:19 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 133211


Attachments
stacktrace (2.57 KB, text/plain)
2010-04-06 16:15 UTC, alied
Details
stacktrace (2.57 KB, text/plain)
2010-04-06 16:31 UTC, alied
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alied 2010-04-06 16:15:07 UTC
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)
Comment 1 alied 2010-04-06 16:15:10 UTC
Created attachment 96791 [details]
stacktrace
Comment 2 alied 2010-04-06 16:31:15 UTC
Created attachment 96797 [details]
stacktrace
Comment 3 Jesse Glick 2010-04-06 16:40:52 UTC
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.
Comment 4 Jaroslav Tulach 2010-04-16 21:24:46 UTC
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.
Comment 5 Tomas Zezula 2010-04-19 10:15:32 UTC
Using FU.createFolder as it's safer.
Fixed in jet-main: 4a5f1968ace8
Comment 6 Quality Engineering 2010-04-20 05:19:26 UTC
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