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 204242 - [71cat] IllegalArgumentException: Invalid ClassPath root: file:/C:/Users/Mark/Documents/NetBeansProjects/JavaApplication47/build/classes/. The root must be a folder.(exists: true file: false directory: true r
Summary: [71cat] IllegalArgumentException: Invalid ClassPath root: file:/C:/Users/Mark...
Status: RESOLVED FIXED
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:
: 207498 214418 214582 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-10-26 00:34 UTC by MackSix
Modified: 2012-11-02 09:52 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 182308


Attachments
stacktrace (4.47 KB, text/plain)
2011-10-26 00:34 UTC, MackSix
Details
stacktrace (4.47 KB, text/plain)
2011-11-08 03:48 UTC, MackSix
Details
Three tests to show that fo.refresh() does not detect change of file<->directory status (3.11 KB, patch)
2011-11-21 12:39 UTC, Jaroslav Tulach
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2011-10-26 00:34:16 UTC
This bug was originally marked as duplicate of bug 192088, 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 201110240600)
VM: Java HotSpot(TM) Client VM, 21.1-b02, Java(TM) SE Runtime Environment, 1.7.0_01-b08
OS: Windows Vista

User Comments:
MackSix: I renamed a Project with renaming of project folder. I renamed the package (with refactoring) and tried to run the Project. I first recieved an exception just like Exception #528030 and cancelled the Exception Reporter and tried to run the project again and then recieved this Exception.

MackSix: Renamed a package with refactoring and then tried to run the project.




Stacktrace: 
java.lang.IllegalArgumentException: Invalid ClassPath root: file:/C:/Users/Mark/Documents/NetBeansProjects/JavaApplication47/build/classes/. The root must be a folder.(exists: true file: false directory: true read: true write: true root: null _root: C:\Users\Mark\Documents\NetBeansProjects\JavaApplication47\build\classes@255f59da:1961c59)
   at org.netbeans.api.java.classpath.ClassPath$Entry.getRoot(ClassPath.java:806)
   at org.netbeans.api.java.classpath.ClassPath.createRoots(ClassPath.java:284)
   at org.netbeans.api.java.classpath.ClassPath.getRoots(ClassPath.java:268)
   at org.netbeans.modules.java.source.ant.ProjectRunnerImpl.computeProperties(ProjectRunnerImpl.java:232)
   at org.netbeans.modules.java.source.ant.ProjectRunnerImpl.execute(ProjectRunnerImpl.java:121)
   at org.netbeans.api.java.project.runner.JavaRunner.execute(JavaRunner.java:273)
Comment 1 MackSix 2011-10-26 00:34:21 UTC
Created attachment 112433 [details]
stacktrace
Comment 2 Tomas Zezula 2011-10-26 08:32:22 UTC
Duplicate of some issue Jarda has fixed in NB 7.1
Comment 3 MackSix 2011-11-08 03:48:46 UTC
Created attachment 112970 [details]
stacktrace

Renamed project with directory. Renamed package and then project would not run. Renamed project and directory again. Renamed package again and then ran project. Project ran and exception http://netbeans.org/bugzilla/show_bug.cgi?id=204243 was thrown. Closed running project and tried to run again and this exception was thrown.
Comment 4 Exceptions Reporter 2011-11-08 03:48:54 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=182308
Comment 5 MackSix 2011-11-08 18:32:49 UTC
Video of bug. It is the 2nd exception at point 3:58 on the video.

http://youtu.be/lSIlBwTd8_E

The 1st exception is bug id #204243. the 3rd exception is similar to #204809 and the 4th exception is bug id #204810
Comment 6 MackSix 2011-11-18 13:02:07 UTC
Regression - P1
Comment 7 Jaroslav Tulach 2011-11-21 12:39:20 UTC
Created attachment 113366 [details]
Three tests to show that fo.refresh() does not detect change of file<->directory status

The third test passes. Means if one refreshes initialized parent, the fileobject is really refreshed. I use that as a workaround in classpath.
Comment 8 Jaroslav Tulach 2011-11-21 12:45:43 UTC
Workaround in ergonomics#a9cda0531644
The real cause tracked as bug 205353
Comment 9 Quality Engineering 2011-11-24 16:00:47 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/b65791964193
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #204242: Refresh parent of a folder to refresh its folder/data status
Comment 10 Jaroslav Tulach 2012-03-19 14:50:06 UTC
*** Bug 207498 has been marked as a duplicate of this bug. ***
Comment 11 Martin Fousek 2012-11-02 08:58:42 UTC
*** Bug 214582 has been marked as a duplicate of this bug. ***
Comment 12 Martin Fousek 2012-11-02 09:52:38 UTC
*** Bug 214418 has been marked as a duplicate of this bug. ***