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 161904 - [67cat] IllegalArgumentException: C:\Dokumente und Einstellungen\pna\Eigene Dateien\NetBeansProjects\VomHofeAnalysis-job00046\attic is not inside C:\Dokumente und Einstellungen\pna\Eigene Dateien\NetBeansProj
Summary: [67cat] IllegalArgumentException: C:\Dokumente und Einstellungen\pna\Eigene D...
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@versioncontrol
URL: http://statistics.netbeans.org/except...
Keywords:
: 161760 163389 (view as bug list)
Depends on: 204271
Blocks:
  Show dependency tree
 
Reported: 2009-04-03 15:32 UTC by Peter Nabbefeld
Modified: 2011-11-08 20:36 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 37441


Attachments
stacktrace (3.33 KB, text/plain)
2009-04-03 15:32 UTC, Peter Nabbefeld
Details
stacktrace (3.11 KB, text/plain)
2009-04-05 16:55 UTC, glarian
Details
stacktrace (3.17 KB, text/plain)
2009-04-06 19:08 UTC, abajja
Details
stacktrace (3.26 KB, text/plain)
2009-04-07 17:57 UTC, giorgio42
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Nabbefeld 2009-04-03 15:32:07 UTC
Build: NetBeans IDE Dev (Build 200904030200)
VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_05-b13
OS: Windows XP, 5.1, x86

User Comments:
GUEST: - Open a project group (A).
- Immediatly, try to switch to another project group (B) (like if the first attempt was a mistake).
- Netbeans scans, scans, scans the project group (A) for a while (it's a pity but that's another story)...
- After that long and useless time, project group B opens but there is a problem...

Netbeans seem to display the project group B. But it contains a mix betwen both project groups. Some project names and settings are those of project group (A) but contains files of the project group B (the expected one).

epdv: The attic folder is created by my own module. As You can see, the folder hierarchy is correct, and the folder should not be used as a source folder (which has been handled correctly, at least up to build 200903310200).



Stacktrace: 
java.lang.IllegalArgumentException: C:\Dokumente und Einstellungen\pna\Eigene Dateien\NetBeansProjects\VomHofeAnalysis-job00046\attic is not inside C:\Dokumente und Einstellungen\pna\Eigene Dateien\NetBeansProjects\VomHofeAnalysis-job00046
        at org.netbeans.spi.project.support.ant.SourcesHelper$SourceRoot$Group.contains(SourcesHelper.java:180)
        at org.netbeans.modules.versioning.spi.VCSContext.addProjectFiles(VCSContext.java:291)
        at org.netbeans.modules.versioning.spi.VCSContext.forNodes(VCSContext.java:142)
        at org.netbeans.modules.versioning.ProjectMenuItem.getOwners(ProjectMenuItem.java:135)
        at org.netbeans.modules.versioning.ProjectMenuItem.createItems(ProjectMenuItem.java:79)
        at org.netbeans.modules.versioning.ProjectMenuItem.access$100(ProjectMenuItem.java:66)
Comment 1 Peter Nabbefeld 2009-04-03 15:32:14 UTC
Created attachment 79402 [details]
stacktrace
Comment 2 glarian 2009-04-05 16:55:38 UTC
Build: NetBeans IDE Dev (Build 200904030200)
VM: Java HotSpot(TM) Client VM, 1.5.0_17-b04, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_17-b04
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.IllegalArgumentException: D:\Java\NetBeans\LRTS_V2\CVS is not inside D:\Java\NetBeans\LRTS_V2
        at org.netbeans.spi.project.support.ant.SourcesHelper$SourceRoot$Group.contains(SourcesHelper.java:180)
        at org.netbeans.modules.versioning.spi.VCSContext.addProjectFiles(VCSContext.java:291)
        at org.netbeans.modules.versioning.spi.VCSContext.forNodes(VCSContext.java:142)
        at org.netbeans.modules.versioning.ProjectMenuItem.getOwners(ProjectMenuItem.java:135)
        at org.netbeans.modules.versioning.ProjectMenuItem.createItems(ProjectMenuItem.java:79)
        at org.netbeans.modules.versioning.ProjectMenuItem.access$100(ProjectMenuItem.java:66)
Comment 3 glarian 2009-04-05 16:55:42 UTC
Created attachment 79470 [details]
stacktrace
Comment 4 abajja 2009-04-06 19:08:30 UTC
Build: NetBeans IDE Dev (Build 200904051400)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Windows Vista, 6.0, x86

User Comments: 


Stacktrace: 
java.lang.IllegalArgumentException: C:\projects\sadifa is not inside C:\projects
        at org.netbeans.spi.project.support.ant.SourcesHelper$SourceRoot$Group.contains(SourcesHelper.java:181)
        at org.netbeans.modules.versioning.spi.VCSContext.addProjectFiles(VCSContext.java:291)
        at org.netbeans.modules.versioning.spi.VCSContext.forNodes(VCSContext.java:142)
        at org.netbeans.modules.versioning.ProjectMenuItem.getOwners(ProjectMenuItem.java:135)
        at org.netbeans.modules.versioning.ProjectMenuItem.createItems(ProjectMenuItem.java:79)
        at org.netbeans.modules.versioning.ProjectMenuItem.access$100(ProjectMenuItem.java:66)
Comment 5 abajja 2009-04-06 19:08:39 UTC
Created attachment 79553 [details]
stacktrace
Comment 6 giorgio42 2009-04-07 17:57:11 UTC
Build: NetBeans IDE Dev (Build 090404)
VM: Java HotSpot(TM) Client VM, 14.0-b11, Java(TM) SE Runtime Environment, 1.6.0_14-ea-b02
OS: Windows XP, 5.1, x86

User Comments: 
Opened web application.
IAE is obviously wrong (C:\home\a0796942\projects\ffabmit\apps\ee\pmsystem\webapp\setup is inside C:\home\a0796942\projects\ffabmit\apps\ee\pmsystem\webapp).



Stacktrace: 
java.lang.IllegalArgumentException: C:\home\a0796942\projects\ffabmit\apps\ee\pmsystem\webapp\setup is not inside C:\home\a0796942\projects\ffabmit\apps\ee\pmsystem\webapp
        at org.netbeans.spi.project.support.ant.SourcesHelper$SourceRoot$Group.contains(SourcesHelper.java:181)
        at org.netbeans.modules.versioning.spi.VCSContext.addProjectFiles(VCSContext.java:291)
        at org.netbeans.modules.versioning.spi.VCSContext.forNodes(VCSContext.java:142)
        at org.netbeans.modules.versioning.ProjectMenuItem.getOwners(ProjectMenuItem.java:135)
        at org.netbeans.modules.versioning.ProjectMenuItem.createItems(ProjectMenuItem.java:79)
        at org.netbeans.modules.versioning.ProjectMenuItem.access$100(ProjectMenuItem.java:66)
Comment 7 giorgio42 2009-04-07 17:57:15 UTC
Created attachment 79673 [details]
stacktrace
Comment 8 Jiri Skrivanek 2009-04-09 15:39:06 UTC
Recent exceptions might be related to issue 161960. The fix is in build 200904081400, so I would wait if there is a new
report from newer builds.
Comment 9 Ondrej Vrabec 2009-04-09 15:45:29 UTC
*** Issue 161760 has been marked as a duplicate of this issue. ***
Comment 10 Ondrej Vrabec 2009-04-17 08:04:54 UTC
So far there have been no reports in latest builds. I'll leave this open for a little longer.
Comment 11 Ondrej Vrabec 2009-04-27 10:10:31 UTC
*** Issue 163389 has been marked as a duplicate of this issue. ***
Comment 12 Ondrej Vrabec 2009-04-27 10:50:27 UTC
I've added some logging and isValid test before calling sourceGroup.contains
cdev #9b18fc8ac689
Comment 13 Quality Engineering 2009-04-28 18:56:28 UTC
Integrated into 'main-golden', will be available in build *200904281401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/9b18fc8ac689
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #161904 - IAE in VCSContext
added logging and isValid condition before calling sourceGroup.contains
Comment 14 Ondrej Vrabec 2009-08-11 15:19:10 UTC
A report from 6.7.1 implies that a situation can happen when a project root file can be invalid (FileObject.isValid
returns false) while it's children are still valid. I do not know how we can deal with this in another way than skip
such root file.

fixing this scenario in cdev #1f51e1d53c25
- skipping an invalid root file
- skipping the sharebility test of it's children
- adding some more loggings

marking this as fixed for the time being
Comment 15 Quality Engineering 2009-08-13 17:58:51 UTC
Integrated into 'main-golden', will be available in build *200908131401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/1f51e1d53c25
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #161904 - [67cat] IllegalArgumentException in VCSContext
do not add an invalid root file to the context and do not test it's children for being excluded