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 190137 - IllegalArgumentException: Invalid ClassPath root: file:/home/comul/nb69/idari2/mhs-ejb/build/classes/. The root must be a folder.
Summary: IllegalArgumentException: Invalid ClassPath root: file:/home/comul/nb69/idari...
Status: RESOLVED INVALID
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-03 14:45 UTC by comul
Modified: 2010-10-06 10:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 172340


Attachments
stacktrace (5.69 KB, text/plain)
2010-09-03 14:45 UTC, comul
Details

Note You need to log in before you can comment on or make changes to this bug.
Description comul 2010-09-03 14:45:51 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 6.9.1 (Build 201007282301)
VM: Java HotSpot(TM) Client VM, 17.0-b16, Java(TM) SE Runtime Environment, 1.6.0_21-b06
OS: Linux

User Comments:
comul: Closing enterprise application module before closing enterprise application.
This error also occured while renaming enum classes as warning




Stacktrace: 
java.lang.IllegalArgumentException: Invalid ClassPath root: file:/home/comul/nb69/idari2/mhs-ejb/build/classes/. 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.findResource(ClassPath.java:409)
   at org.netbeans.modules.j2ee.persistence.action.UseEntityManagerAction.enable(UseEntityManagerAction.java:125)
   at org.openide.util.actions.NodeAction$DelegateAction.resultChanged(NodeAction.java:615)
Comment 1 comul 2010-09-03 14:45:55 UTC
Created attachment 101858 [details]
stacktrace
Comment 2 Sergey Petrov 2010-10-06 08:39:58 UTC
do you have any specific steps  or it happens from time to time?
Comment 3 Sergey Petrov 2010-10-06 10:31:31 UTC
There is one more check in 6.10 now which may prevent this exception I hope. Anyway this class was rewritten and old stack trace do not match, I'm closing as invalid (because of last reason), feel free to reopen with some additional details and also reopen if will see the issue in newer nb version.