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 186186

Summary: [69cat] IllegalArgumentException: MasterFileObject[/Users/alc/NetBeansProjects/converge/modules@6e0f282c:5478a746,valid=true] [isValid=true] is not parent of MasterFileObject[/Users/alc/NetBeansProjects/conve
Product: platform Reporter: big_al <big_al>
Component: FilesystemsAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED DUPLICATE    
Severity: normal CC: ehsavoie
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 169640
Attachments: stacktrace

Description big_al 2010-05-14 21:49:09 UTC
This bug was originally marked as duplicate of bug 161904, 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 201005132200)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.3-b01-101, Java(TM) SE Runtime Environment, 1.6.0_17-b04-248-10M3025
OS: Mac OS X

User Comments:
big_al: Right clicked on a Maven project in the Files view




Stacktrace: 
java.lang.IllegalArgumentException: MasterFileObject[/Users/alc/NetBeansProjects/converge/modules@6e0f282c:5478a746,valid=true] [isValid=true] is not parent of MasterFileObject[/Users/alc/NetBeansProjects/converge/modules/converge-war@1e818d28:19d07e10,valid=true] [isValid=true].
   at org.netbeans.spi.project.support.GenericSources$Group.contains(GenericSources.java:158)
   at org.netbeans.modules.versioning.spi.VCSContext.addProjectFiles(VCSContext.java:306)
   at org.netbeans.modules.versioning.spi.VCSContext.forNodes(VCSContext.java:145)
   at org.netbeans.modules.versioning.Utils.contextForLookup(Utils.java:96)
   at org.netbeans.modules.versioning.VersioningAnnotationProvider$AbstractVersioningSystemActions.createContextAwareInstance(VersioningAnnotationProvider.java:195)
   at org.openide.actions.FileSystemAction.createMenu(FileSystemAction.java:173)
Comment 1 big_al 2010-05-14 21:49:14 UTC
Created attachment 99028 [details]
stacktrace
Comment 2 Jesse Glick 2010-05-14 22:11:51 UTC
FileUtil.isParentOf is reporting false for what I guess should be true.
Comment 3 Jesse Glick 2010-05-14 22:33:39 UTC
*** Bug 186187 has been marked as a duplicate of this bug. ***
Comment 4 Jaroslav Tulach 2010-05-17 04:49:44 UTC
The assert is probably wrong. Try to run without -ea. Things shall somehow work.

*** This bug has been marked as a duplicate of bug 185346 ***
Comment 5 Jesse Glick 2010-05-25 14:02:50 UTC
*** Bug 186667 has been marked as a duplicate of this bug. ***