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: | .../src/java/jpa,valid=true is not inside .../src/java,valid=false | ||
---|---|---|---|
Product: | java | Reporter: | mols <mols> |
Component: | Project | Assignee: | Tomas Zezula <tzezula> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | alcmontejo, felixkirathe, gorrus, jglick, jtulach, MackSix, muellermi, veskojl |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://statistics.netbeans.org/exceptions/detail.do?id=145505 | ||
Issue Type: | DEFECT | Exception Reporter: | 145505 |
Bug Depends on: | 204271 | ||
Bug Blocks: | |||
Attachments: |
stacktrace
stacktrace stacktrace |
Description
mols
2009-01-23 14:02:13 UTC
Created attachment 76182 [details]
stacktrace
This issue has already 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=145505 Build: NetBeans IDE Dev (Build 200904070200) VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33 OS: Windows XP, 5.1, x86 User Comments: Stacktrace: java.lang.IllegalArgumentException: C:\Documents and Settings\Egor\My Documents\NetBeansProjects\DesktopApplication1\src\META-INF is not inside C:\Documents and Settings\Egor\My Documents\NetBeansProjects\DesktopApplication1\src at org.netbeans.spi.project.support.ant.SourcesHelper$SourceRoot$Group.contains(SourcesHelper.java:181) at org.netbeans.spi.java.project.support.ui.TreeRootNode$GroupDataFilter.acceptFileObject(TreeRootNode.java:246) at org.openide.loaders.FolderChildren$1R.run(FolderChildren.java:155) at org.openide.util.Mutex$1Exec.run(Mutex.java:1239) at org.openide.nodes.Children$ProjectManagerDeadlockDetector.execute(Children.java:1810) at org.openide.util.Mutex.postRequest(Mutex.java:1245) Created attachment 79849 [details]
stacktrace
*** Issue 156096 has been marked as a duplicate of this issue. *** *** Issue 158617 has been marked as a duplicate of this issue. *** *** Issue 174037 has been marked as a duplicate of this issue. *** *** Issue 175815 has been marked as a duplicate of this issue. *** Created attachment 95621 [details]
stacktrace
occure upon creation of java web project on sample file jsfJpaCrud.
Looks like FileUtil.getRelativePath is returning null for invalid reasons? The report 357787 says: MasterFileObject[/Users/allenmontejo/NetBeansProjects/JsfJpaCrud/src/java/jpa@73ca8fa4:137a76ce,valid=true] is not inside MasterFileObject[/Users/allenmontejo/NetBeansProjects/JsfJpaCrud/src/java@7867a787:447f292a,valid=false] obviously a valid file object cannot be a child of a not valid file object. Fix org.netbeans.spi.project.support.ant.SourcesHelper$SourceRoot$Group.contains(SourcesHelper.java:198) to always use just valid file objects. Probably for TreeRootNode to check. Fixed jet-main 78199517f170 Integrated into 'main-golden', will be available in build *201004170515* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/78199517f170 User: Tomas Zezula <tzezula@netbeans.org> Log: #157361:MasterFileObject[/Users/allenmontejo/NetBeansProjects/JsfJpaCrud/src/java/jpa@73ca8fa4:137a76ce,valid=true] is not inside MasterFileObject[/Users/allenmontejo/NetBeansProjects/JsfJpaCrud/src/java@7867a787:447f292a,valid=false] *** Bug 203189 has been marked as a duplicate of this bug. *** Not fixed; see more recent dupe. Seems like it is the _parent_ which is invalid, while the _child_ is valid, so checking fo.isValid() has no effect. Probably a masterfs bug at root. Would be nice to just suppress the exception and return false from the standard impls (GenericSources.Group, SourcesHelper.SourceRoot). Not obvious whether this would be a compatible change; the interface method is documented to throw IllegalArgumentException, but surely no caller is relying on this. Having the parent fo invalid while children are valid is quite strange. Changing the sources impl to return false makes sense. For now I can catch the IAE in the TreeRootNode and handle it as false. Fixed jet-main fad23e53083c Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/fad23e53083c User: Tomas Zezula <tzezula@netbeans.org> Log: #157361:.../src/java/jpa,valid=true is not inside .../src/java,valid=false *** Bug 204810 has been marked as a duplicate of this bug. *** |