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 246390 - IllegalArgumentException at org.netbeans.api.java.classpath.ClassPath.<init>
Summary: IllegalArgumentException at org.netbeans.api.java.classpath.ClassPath.<init>
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
: 251936 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-08-11 11:59 UTC by Exceptions Reporter
Modified: 2016-08-02 09:47 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 211179


Attachments
stacktrace (3.73 KB, text/plain)
2014-08-11 11:59 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2014-08-11 11:59:03 UTC
This bug was originally marked as duplicate of bug 202858, 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 201408050001)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.65-b04, Java(TM) SE Runtime Environment, 1.7.0_67-b01
OS: Mac OS X

User Comments:
GUEST: Samba share to Netbeans Project PHP running on Macbook Pro. Application left idle for 30 mins.




Stacktrace: 
java.lang.IllegalArgumentException
   at org.netbeans.api.java.classpath.ClassPath.<init>(ClassPath.java:409)
   at org.netbeans.api.java.classpath.ClassPath.<init>(ClassPath.java:115)
   at org.netbeans.api.java.classpath.ClassPath$1.createClassPath(ClassPath.java:120)
   at org.netbeans.spi.java.classpath.ClassPathFactory.createClassPath(ClassPathFactory.java:69)
   at org.netbeans.spi.java.classpath.support.ClassPathSupport.createProxyClassPath(ClassPathSupport.java:197)
   at org.netbeans.modules.php.project.classpath.ClassPathProviderImpl.getSourcePath(ClassPathProviderImpl.java:242)
Comment 1 Exceptions Reporter 2014-08-11 11:59:05 UTC
Created attachment 148640 [details]
stacktrace
Comment 2 Tomas Zezula 2014-08-19 09:06:34 UTC
Caused: java.lang.IllegalArgumentException: file:/Users/chima.ijeoma/NetBeansProjects/lewa/../../../../Volumes/lewa/system/app/tests/ is not a valid classpath entry; it cannot contain current or parent dir reference. From: org.netbeans.modules.php.project.classpath.SourcePathImplementation$FilteringPathResource
Comment 3 Tomas Mysik 2015-04-02 08:10:30 UTC
(In reply to Tomas Zezula from comment #2)
> it cannot contain current or parent dir reference.

Please, Tome, what does this mean exactly? That the classpath cannot contain "../"? Or something else?

Thanks.
Comment 4 Tomas Zezula 2015-04-02 08:44:36 UTC
Yes, CP root has to be normalized. (No .. or .)
Comment 5 Tomas Mysik 2015-04-02 09:58:29 UTC
Should be fixed now I guess. Thanks.

http://hg.netbeans.org/web-main/rev/ab02163d9d66
Comment 6 Tomas Mysik 2015-04-02 11:24:56 UTC
Likely better fix.

http://hg.netbeans.org/web-main/rev/2220dbec564c
Comment 7 Quality Engineering 2015-04-03 03:07:59 UTC
Integrated into 'main-silver', will be available in build *201504030001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/ab02163d9d66
User: Tomas Mysik <tmysik@netbeans.org>
Log: #246390 - IllegalArgumentException at org.netbeans.api.java.classpath.ClassPath.<init>
Comment 8 Tomas Mysik 2016-08-02 09:47:42 UTC
*** Bug 251936 has been marked as a duplicate of this bug. ***