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 270263 - IllegalArgumentException: Invalid ClassPath root: file:/C:/Users/alexsch/Documents/NetBeansProjects/test/Test/JavaSamples/build/classes/. The root must be a folder.(exists: false file: false directory
Summary: IllegalArgumentException: Invalid ClassPath root: file:/C:/Users/alexsch/Docu...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-31 13:34 UTC by Alexandr Scherbatiy
Modified: 2017-04-12 02:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 228620


Attachments
stacktrace (4.97 KB, text/plain)
2017-03-31 13:34 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2017-03-31 13:34:28 UTC
Build: NetBeans IDE Dev (Build 201703100002)
VM: Java HotSpot(TM) Client VM, 25.131-b04, Java(TM) SE Runtime Environment, 1.8.0_131-ea-b04
OS: Windows 8.1

User Comments:
sunflower: Exception




Stacktrace: 
java.lang.IllegalArgumentException: Invalid ClassPath root: file:/C:/Users/alexsch/Documents/NetBeansProjects/test/Test/JavaSamples/build/classes/. The root must be a folder.(exists: false file: false directory: false read: false write: false root: null newRoot: C:\Users\alexsch\Documents\NetBeansProjects\test\Test\JavaSamples\build\classes@5fb585d7:9ac91b)
   at org.netbeans.api.java.classpath.ClassPath$Entry.getRoot(ClassPath.java:957)
   at org.netbeans.api.java.classpath.ClassPath.createRoots(ClassPath.java:296)
   at org.netbeans.api.java.classpath.ClassPath.getRoots(ClassPath.java:280)
   at org.netbeans.modules.java.project.ui.ProfileProblemsProviderImpl.listenenOnProjectMetadata(ProfileProblemsProviderImpl.java:252)
   at org.netbeans.modules.java.project.ui.ProfileProblemsProviderImpl.access$000(ProfileProblemsProviderImpl.java:111)
   at org.netbeans.modules.java.project.ui.ProfileProblemsProviderImpl$1$1.run(ProfileProblemsProviderImpl.java:187)
Comment 1 Alexandr Scherbatiy 2017-03-31 13:34:31 UTC
Created attachment 163988 [details]
stacktrace
Comment 2 Tomas Zezula 2017-04-06 13:06:52 UTC
Happens when Master FileSystem is in inconsistent state and returns a FileObject for non existing File. Ignoring such FileObjects, now exception is thrown only in case when Master FileSystem returns existing FileObject claiming that is no a folder for existing folder.

jet-main 72e1e451d376
Comment 3 Quality Engineering 2017-04-12 02:03:59 UTC
Integrated into 'main-silver', will be available in build *201704120002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/72e1e451d376
User: Tomas Zezula <tzezula@netbeans.org>
Log: #270263:IllegalArgumentException: Invalid ClassPath root: file:/C:/Users/alexsch/Documents/NetBeansProjects/test/Test/JavaSamples/build/classes/. The root must be a folder.(exists: false file: false directory