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 218677 - java.io.SyncFailedException: /home/gapon/NetBeansProjects/HTML5Application1/public_html/js
Summary: java.io.SyncFailedException: /home/gapon/NetBeansProjects/HTML5Application1/p...
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Project (show other bugs)
Version: 7.3
Hardware: All All
: P1 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-20 10:05 UTC by Kenneth Ganfield
Modified: 2012-09-24 11:27 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 192600


Attachments
stacktrace (1.80 KB, text/plain)
2012-09-20 10:05 UTC, Kenneth Ganfield
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth Ganfield 2012-09-20 10:05:45 UTC
This issue was reported manually by pjiricka.
It already has 1 duplicates 


Build: NetBeans IDE Dev (Build 201209190001)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.4-b01, Java(TM) SE Runtime Environment, 1.7.0_10-ea-b06
OS: Mac OS X

User Comments:
kganfield: creating a new html/javascript project. occurs when I select a js library to add to a project which is using a template. wizard never finishes though if i look in the directory the project is already created. The exception does not occur if i do not select a js library




Stacktrace: 
java.lang.IllegalArgumentException: Already a /Users/nb/Documents/nbtemp-project/73-temp2/HTML5Application8/nbproject/project.xml@e7d36c29:418f2cb2
   at org.netbeans.spi.project.support.ant.ProjectGenerator$1.run(ProjectGenerator.java:127)
   at org.netbeans.spi.project.support.ant.ProjectGenerator$1.run(ProjectGenerator.java:122)
   at org.openide.util.Mutex.writeAccess(Mutex.java:438)
   at org.netbeans.spi.project.support.ant.ProjectGenerator.createProject0(ProjectGenerator.java:122)
   at org.netbeans.spi.project.support.ant.ProjectGenerator.createProject(ProjectGenerator.java:103)
   at org.netbeans.modules.web.clientproject.util.ClientSideProjectUtilities.setupProject(ClientSideProjectUtilities.java:110)
Comment 1 Kenneth Ganfield 2012-09-20 10:05:48 UTC
Created attachment 124634 [details]
stacktrace
Comment 2 Petr Jiricka 2012-09-20 12:09:30 UTC
Hi Tomas, can says he is getting this exception and it is blocking his screencast scenario for JavaOne. Can you please investigate? Thanks.
Comment 3 Tomas Mysik 2012-09-20 15:08:02 UTC
Weird. When I try it, wizard does not finish and in the log I can see (otherwise no error anywhere):

INFO [org.openide.WizardDescriptor]
java.io.SyncFailedException: /home/gapon/NetBeansProjects/HTML5Application1/public_html/js

I will investigate and fix tomorrow, sorry for inconveniences. Láďo, this must be backported to the Beta.

Thanks.
Comment 4 Petr Jiricka 2012-09-20 15:20:07 UTC
Thanks Tomas, raising to P1.
Comment 5 Tomas Mysik 2012-09-20 16:32:28 UTC
Fixed. Summary changed to the proper cause (the "project already exists" error occured when one clicked the Finish button once more). Please verify. Thanks.

Once the Beta branch is created, I will backport it. Láďo, do we have any keyword so I will not forget? Thanks.

http://hg.netbeans.org/web-main/rev/3e10703b4e98
Comment 6 Vladimir Riha 2012-09-20 18:04:20 UTC
None that I'm aware of. 

Mariane, is there such a keyword?
Comment 7 David Konecny 2012-09-20 23:48:22 UTC
Tomas, what's the cause of this problem? Why does project creation complains that there already is project.xml??? That does not make sense, no? Unless Ken deleted the project and is recreating it in the same folder and IDE's filesystem is out of sync or something??
Comment 8 Quality Engineering 2012-09-21 02:28:10 UTC
Integrated into 'main-golden', will be available in build *201209210001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/3e10703b4e98
User: Tomas Mysik <tmysik@netbeans.org>
Log: #218677: java.io.SyncFailedException: /home/gapon/NetBeansProjects/HTML5Application1/public_html/js
Comment 9 Tomas Mysik 2012-09-21 03:58:49 UTC
(In reply to comment #7)
> Tomas, what's the cause of this problem? Why does project creation complains
> that there already is project.xml??? That does not make sense, no? Unless Ken
> deleted the project and is recreating it in the same folder and IDE's
> filesystem is out of sync or something??

I already wrote it - see comment #5. Ken just clicked Finish, java.io.SyncFailedException occured (since I was moving a directory but the target already existed - see the fix) and the wizard stayed opened but no error is visible anywhere (do not ask me why there is no error visible; the exception is logged as INFO); so Ken clicked the Finish button again (now, the IllegalArgumentException is thrown).

Ken, can you confirm? Thanks.
Comment 10 Vladimir Riha 2012-09-21 06:42:17 UTC
seems to work in 201209210001. Kenneth can you please confirm this?


Product Version: NetBeans IDE Dev (Build 201209210001)
Java: 1.7.0_07; Java HotSpot(TM) Client VM 23.3-b01
System: Linux version 3.2.0-30-generic-pae running on i386; UTF-8; en_US (nb)
Comment 11 Marian Mirilovic 2012-09-21 07:14:08 UTC
Please integrate into releases/release73_beta branch ASAP, thanks in advance.
Comment 12 David Konecny 2012-09-21 07:34:06 UTC
I see, got it. Thanks Tomas.
Comment 13 Tomas Mysik 2012-09-21 07:47:17 UTC
Done.

http://hg.netbeans.org/releases/rev/e82c0b7a6f44
Comment 14 Tomas Mysik 2012-09-21 07:48:07 UTC
(In reply to comment #13)
> Done.
> 
> http://hg.netbeans.org/releases/rev/e82c0b7a6f44

Just to be sure - transplanted to the releases repo to the branch.
Comment 15 Kenneth Ganfield 2012-09-21 08:31:05 UTC
(In reply to comment #10)
> seems to work in 201209210001. Kenneth can you please confirm this?
> 
> 
> Product Version: NetBeans IDE Dev (Build 201209210001)
> Java: 1.7.0_07; Java HotSpot(TM) Client VM 23.3-b01
> System: Linux version 3.2.0-30-generic-pae running on i386; UTF-8; en_US (nb)

Works for me in build 201209210001
Comment 16 Vladimir Riha 2012-09-21 13:36:08 UTC
so verifying
Comment 17 Vladimir Riha 2012-09-24 11:27:07 UTC
verified in Beta

Product Version: NetBeans IDE 7.3 Beta (Build 201209232010)
Java: 1.7.0_07; Java HotSpot(TM) Client VM 23.3-b01
System: Linux version 3.2.0-30-generic-pae running on i386; UTF-8; en_US (nb)