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 235332 - AssertionError: childName: /Users/beci/source/HTML5Application19/www folderName: /Users/beci/source/HTML5Application19
Summary: AssertionError: childName: /Users/beci/source/HTML5Application19/www folderNa...
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
: 235312 236745 237263 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-08-30 18:28 UTC by Jan Becicka
Modified: 2013-11-22 14:41 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 203472


Attachments
stacktrace (2.80 KB, text/plain)
2013-08-30 18:28 UTC, Jan Becicka
Details
stacktrace (2.80 KB, text/plain)
2013-08-30 18:55 UTC, Jan Becicka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Becicka 2013-08-30 18:28:41 UTC
Build: NetBeans IDE Dev (Build 20130826-1eb074e2b697)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.7-b01, Java(TM) SE Runtime Environment, 1.7.0_17-b02
OS: Mac OS X

User Comments:
jbecicka: While testing cordova projects




Stacktrace: 
java.lang.AssertionError: childName: /Users/beci/source/HTML5Application19/www folderName: /Users/beci/source/HTML5Application19
   at org.netbeans.modules.masterfs.filebasedfs.children.ChildrenSupport.addChild(ChildrenSupport.java:139)
   at org.netbeans.modules.masterfs.filebasedfs.children.ChildrenSupport.rescanChildren(ChildrenSupport.java:298)
   at org.netbeans.modules.masterfs.filebasedfs.children.ChildrenSupport.refresh(ChildrenSupport.java:169)
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj$FolderChildrenCache.refresh(FolderObj.java:710)
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.refreshImpl(FolderObj.java:472)
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj.refresh(BaseFileObj.java:834)
Comment 1 Jan Becicka 2013-08-30 18:28:43 UTC
Created attachment 139512 [details]
stacktrace
Comment 2 Jan Becicka 2013-08-30 18:55:31 UTC
Created attachment 139516 [details]
stacktrace

Ant build script is running. Than it is finished and some dataobjects (which are produced by this build script) are renamed.
Comment 3 Jan Becicka 2013-08-30 21:15:43 UTC
see also issue 235312
Comment 4 Jaroslav Havlin 2013-09-16 16:05:31 UTC
I'm sorry, I cannot reproduce the bug.
Ant task upgrade-to-cordova-project finishes successfully.
Don't you have some steps to reproduce?
Thank you.
Comment 5 Jaroslav Havlin 2013-10-02 08:29:21 UTC
Reproduced using steps in bug 236571
(converting project angularJS-github-contributors to cordova).

The problem is that FileObjectFactory.rename should return list of original files
(before renaming) in the renamed directory, but if the directory is renamed
by some other process concurrently, the list contains also new file names.

Then it breaks construction of new paths, because computing of relative paths
is corrupted.

(In reply to Jan Becicka from bug 236571 comment 4)
>Yes it happen quite often. But I don't have idea what cordova might do wrong.
Maybe CordovaPerformer performs some I/O operations while the Ant task is running.
But it may be correct, I don't know how it should work.


Fixed in http://hg.netbeans.org/core-main/rev/81b450a5adc4
Please, check whether the bug is fixed by this change and reopen this issue if not.
Thank you.
Comment 6 Jaroslav Havlin 2013-10-02 08:30:04 UTC
*** Bug 235312 has been marked as a duplicate of this bug. ***
Comment 7 Jaroslav Havlin 2013-10-04 09:58:47 UTC
*** Bug 236745 has been marked as a duplicate of this bug. ***
Comment 8 Jaroslav Havlin 2013-10-18 08:53:20 UTC
*** Bug 237263 has been marked as a duplicate of this bug. ***
Comment 9 Jaroslav Havlin 2013-11-13 08:50:03 UTC
Have you reproduced this bug since the fix was committed?
If so, please reopen this issue. Otherwise, please mark it as verified
so that it can be included in 74patch1. Thank you.
Comment 10 Vladimir Riha 2013-11-13 09:59:33 UTC
I've tried steps from bug 236571 and also created Cordova resources in other HTML5 project, no luck reproducing. Seems like OK to me, verified

Product Version: NetBeans IDE Dev (Build 201311130002)
Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 11 Jaroslav Havlin 2013-11-13 14:27:34 UTC
(In reply to Vladimir Riha from comment #10)
> I've tried steps from bug 236571 and also created Cordova resources in other
> HTML5 project, no luck reproducing. Seems like OK to me, verified
Thank you very much, Vlada.

Integrated into release74 branch:
http://hg.netbeans.org/releases/rev/1026713ac620 (graft)
http://hg.netbeans.org/releases/rev/fb283cf65fea (spec. version and long desc.)
Comment 12 Vladimir Riha 2013-11-22 14:41:17 UTC
I can create new Cordova project and convert HTML5 to Cordova w/o problems so marking as verified in patch. 


Product Version: NetBeans IDE 7.4 (Build 201310111528)
Updates: NetBeans IDE is updated to version NetBeans 7.4 Patch 1
Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)