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 192088 - IllegalArgumentException: Invalid ClassPath root: file:/media/Tiger/NetBeansProjects/BulkTrafficking/src/java/. The root must be a folder.
Summary: IllegalArgumentException: Invalid ClassPath root: file:/media/Tiger/NetBeansP...
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
: 188320 191710 192349 194818 202274 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-11-18 06:51 UTC by pragalathan
Modified: 2011-09-19 09:09 UTC (History)
8 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 174001


Attachments
stacktrace (4.18 KB, text/plain)
2010-11-18 06:52 UTC, pragalathan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pragalathan 2010-11-18 06:51:57 UTC
This bug was originally marked as duplicate of bug 146359, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.0 M2 (Build 201010151251)
VM: Java HotSpot(TM) Client VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02
OS: Linux

User Comments:
pragalathan: I had created a mount point in linux for src/java directory. When IDE was opened filesystem was not mounted. I mounted and expanded the project and got this exception




Stacktrace: 
java.lang.IllegalArgumentException: Invalid ClassPath root: file:/media/Tiger/NetBeansProjects/BulkTrafficking/src/java/. The root must be a folder.
   at org.netbeans.api.java.classpath.ClassPath$Entry.getRoot(ClassPath.java:734)
   at org.netbeans.api.java.classpath.ClassPath.createRoots(ClassPath.java:283)
   at org.netbeans.api.java.classpath.ClassPath.getRoots(ClassPath.java:266)
   at org.netbeans.api.java.classpath.ClassPath.findOwnerRoot(ClassPath.java:492)
   at org.netbeans.modules.parsing.impl.indexing.errors.TaskCache.computePersistentFile(TaskCache.java:428)
   at org.netbeans.modules.parsing.impl.indexing.errors.TaskCache.getErrors(TaskCache.java:135)
Comment 1 pragalathan 2010-11-18 06:52:00 UTC
Created attachment 103058 [details]
stacktrace
Comment 2 Tomas Zezula 2010-11-18 10:16:37 UTC
*** Bug 188320 has been marked as a duplicate of this bug. ***
Comment 3 Tomas Zezula 2010-11-18 11:42:34 UTC
I've added more info into the exception, jet-main 91e8740dad10.
According to reporter comment seems as a race in filesystems.
The reporter claims that the root was a folder on unmounted volume which was mounted while the IDE was running. The FileObject.isData() returned true. I've added java.io.File status into the exception.
I am not able to reproduce it on Mac, so maybe we will need to wait until new log come.
Comment 4 Quality Engineering 2010-11-19 06:15:58 UTC
Integrated into 'main-golden', will be available in build *201011190001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/91e8740dad10
User: Tomas Zezula <tzezula@netbeans.org>
Log: #192088:IllegalArgumentException: Invalid ClassPath root: file:/media/Tiger/NetBeansProjects/BulkTrafficking/src/java/. The root must be a folder.
Comment 5 Tomas Zezula 2010-11-24 08:55:50 UTC
*** Bug 192349 has been marked as a duplicate of this bug. ***
Comment 6 Jaroslav Tulach 2010-12-07 18:22:50 UTC
Let's wait till the problem re-appears with new java.io.File information.
Comment 7 Tomas Zezula 2010-12-16 19:07:09 UTC
*** Bug 191710 has been marked as a duplicate of this bug. ***
Comment 8 Tomas Zezula 2011-01-28 21:02:59 UTC
*** Bug 194818 has been marked as a duplicate of this bug. ***
Comment 9 Tomas Zezula 2011-01-28 21:05:13 UTC
Still valid in build Build 201101280000, see 194818
Comment 10 Jaroslav Tulach 2011-02-26 17:38:32 UTC
I have no idea what is wrong: ergonomics#ebc69755c056
Comment 11 Quality Engineering 2011-02-28 05:17:34 UTC
Integrated into 'main-golden', will be available in build *201102280001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/ebc69755c056
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #192088: More logging
Comment 12 Tomas Zezula 2011-09-19 09:09:41 UTC
*** Bug 202274 has been marked as a duplicate of this bug. ***