Bug 187072 - IllegalArgumentException: file:/c:/ruby/lib/ruby/1.8 is not a valid classpath entry; it must end with a slash.
IllegalArgumentException: file:/c:/ruby/lib/ruby/1.8 is not a valid classpath...
Status: NEW
Product: ruby
Classification: Unclassified
Component: Rails
All All
: P2 with 2 votes (vote)
Assigned To: issues@ruby
Depends on:
  Show dependency treegraph
Reported: 2010-06-02 08:23 UTC by imomoi
Modified: 2016-05-26 13:12 UTC (History)
32 users (show)

See Also:
Issue Type: DEFECT

stacktrace (1.92 KB, text/plain)
2010-06-02 08:23 UTC, imomoi
stacktrace (1.79 KB, text/plain)
2010-07-21 19:18 UTC, Exceptions Reporter
stacktrace (2.97 KB, text/plain)
2010-10-07 20:43 UTC, Exceptions Reporter
stacktrace (4.86 KB, text/plain)
2011-11-08 15:54 UTC, javydreamercsw
stacktrace (4.86 KB, text/plain)
2011-11-08 20:15 UTC, javydreamercsw
stacktrace (1.15 KB, text/plain)
2012-01-24 23:25 UTC, ceklock
stacktrace (1.15 KB, text/plain)
2012-01-25 04:16 UTC, ceklock
stacktrace (1.15 KB, text/plain)
2012-02-10 05:03 UTC, ceklock
stacktrace (2.70 KB, text/plain)
2012-05-25 05:47 UTC, Alexander Simon
stacktrace (1.36 KB, text/plain)
2012-09-26 06:08 UTC, pramoth
stacktrace (2.62 KB, text/plain)
2013-05-17 15:49 UTC, aldobrucale
stacktrace (2.60 KB, text/plain)
2013-07-02 11:39 UTC, aldobrucale
stacktrace (2.60 KB, text/plain)
2013-07-10 15:00 UTC, aldobrucale
stacktrace (2.18 KB, text/plain)
2013-09-09 07:40 UTC, Milos Kleint

Note You need to log in before you can comment on or make changes to this bug.
Description imomoi 2010-06-02 08:23:22 UTC
This bug was originally marked as duplicate of bug 181589, 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 RC1 (Build 201005242201)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Windows XP

User Comments:
imomoi: New project group without any projects was created.

java.lang.IllegalArgumentException: file:/c:/ruby/lib/ruby/1.8 is not a valid classpath entry; it must end with a slash.
   at org.netbeans.modules.java.classpath.SimplePathResourceImplementation.verify(SimplePathResourceImplementation.java:97)
   at org.netbeans.modules.java.classpath.SimplePathResourceImplementation.verify(SimplePathResourceImplementation.java:65)
   at org.netbeans.modules.java.classpath.SimplePathResourceImplementation.<init>(SimplePathResourceImplementation.java:108)
   at org.netbeans.spi.java.classpath.support.ClassPathSupport.createResource(ClassPathSupport.java:78)
   at org.netbeans.modules.ruby.railsprojects.classpath.BootClassPathImplementation.getResources(BootClassPathImplementation.java:161)
   at org.netbeans.api.java.classpath.ClassPath.entries(ClassPath.java:311)
Comment 1 imomoi 2010-06-02 08:23:28 UTC
Created attachment 99744 [details]
Comment 2 imomoi 2010-06-03 05:41:47 UTC
First of all I removed old ruby 1.8.6 p38 from c:/ruby.
After it I installed ruby 1.8.6 p398 to c:/ruby/1.8.6 because we need to test our project under several ruby versions.
After it I reconfigured Ruby Platforms and NetBeans correctly detects new ruby installation.

Platform Name: Ruby 1.8.6 (2010-02-04 patchlevel 398) [i386-mingw32]
Interpreter: C:\Ruby\1.8.6\bin\ruby.exe
Gem Home: C:\Ruby\1.8.6\lib\ruby\gems\1.8
Gem Tool: C:\Ruby\1.8.6\bin\gem (1.3.5)
Debugger Engine: Classic Debugger (I have not installed ruby-debug-ide for now)
Gem Path: C:\Documents and Settings\vmolokov\.gem\ruby\1.8:C:\Ruby\1.8.6\lib\ruby\gems\1.8

I had installed this gems for this Ruby:

actionmailer (2.3.2)
actionpack (2.3.2)
activerecord (2.3.2)
activeresource (2.3.2)
activesupport (2.3.2)
haml (3.0.9)
libxml-ruby (1.1.4)
libxslt-ruby (0.9.6)
mysql (2.8.1)
nokogiri (1.4.2)
rails (2.3.2)
rake (0.8.7)
rtf (0.1.0)
will_paginate (2.3.14)
Comment 3 Tomas Zezula 2010-06-21 11:06:03 UTC
The URL comes from deleted folder and does not end with '/'.
FileUtil.urlForArchiveOrDir may be helpful.
Comment 4 Exceptions Reporter 2010-07-21 19:18:55 UTC
Created attachment 100962 [details]

trying to open a file
Comment 5 Exceptions Reporter 2010-10-07 20:43:11 UTC
Created attachment 102302 [details]
Comment 6 javydreamercsw 2011-11-08 15:54:54 UTC
Created attachment 113006 [details]

Opened the Help about window
Comment 7 javydreamercsw 2011-11-08 20:15:56 UTC
Created attachment 113019 [details]

Clicked to Report an issue.
Comment 8 ceklock 2012-01-24 23:25:02 UTC
Created attachment 115210 [details]
Comment 9 ceklock 2012-01-25 04:16:04 UTC
Created attachment 115214 [details]
Comment 10 ceklock 2012-02-10 05:03:56 UTC
Created attachment 115557 [details]
Comment 11 Alexander Simon 2012-05-25 05:47:31 UTC
Created attachment 119854 [details]

open C/C++ project with existing code
Comment 12 athompson 2012-05-29 13:37:56 UTC
There are two different exceptions being grouped the same bug report.  One claims that the classpath entries can't end with a slash, which is fine.  The other says that classpath entries cannot contain a current or parent dir reference, which is not true and a regression of a bug that was fixed previously.  Grails/Groovy inline plugins can contain relative paths in the "BuildConfig.groovy" file.
Comment 13 athompson 2012-06-22 19:45:50 UTC
Projects cannot be opened at all.
Comment 14 pramoth 2012-09-26 06:08:10 UTC
Created attachment 124922 [details]
Comment 15 enebo 2013-01-18 16:05:14 UTC
I will fix this if I can reproduce it.  Can someone explain in steps how I can make this occur?
Comment 16 aldobrucale 2013-05-17 15:49:58 UTC
Created attachment 134574 [details]

Attached the debugger to a glassfish instance
Comment 17 aldobrucale 2013-07-02 11:39:08 UTC
Created attachment 136591 [details]

"run" action for an ant java project. I have created the library via the "create library" action in the "View artifact details" window of a maven project.
Comment 18 tilman 2013-07-05 10:55:05 UTC
(In reply to comment #15)
> I will fix this if I can reproduce it.  Can someone explain in steps how I can
> make this occur?

I get it when using the nbandroid plugin (www.nbandroid.org), opening an android project and pressing ctrl-space somewhere to see the javadoc, and look into the IDE log. I have NB 7.3.1.

SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor org.netbeans.modules.javadoc.search.IndexBuilder
java.lang.IllegalArgumentException: file:/D:/Android/android-sdk/docs/reference is not a valid classpath entry; it must end with a slash.
	at org.netbeans.modules.java.classpath.SimplePathResourceImplementation.verify(SimplePathResourceImplementation.java:108)
	at org.netbeans.modules.java.classpath.SimplePathResourceImplementation.verify(SimplePathResourceImplementation.java:68)
	at org.netbeans.modules.java.classpath.SimplePathResourceImplementation.<init>(SimplePathResourceImplementation.java:126)
	at org.netbeans.spi.java.classpath.support.ClassPathSupport.createResource(ClassPathSupport.java:77)
	at org.netbeans.spi.java.classpath.support.ClassPathSupport.createClassPath(ClassPathSupport.java:147)
	at org.netbeans.modules.javadoc.search.JavadocRegistry.getDocRoots(JavadocRegistry.java:132)
	at org.netbeans.modules.javadoc.search.IndexBuilder.refreshIndex(IndexBuilder.java:183)
	at org.netbeans.modules.javadoc.search.IndexBuilder.run(IndexBuilder.java:129)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2044)
Comment 19 enebo 2013-07-08 21:32:24 UTC
Thanks for this reproduction.  I will try it the next time I am. on a windows machine
Comment 20 aldobrucale 2013-07-10 15:00:24 UTC
Created attachment 136960 [details]

Tried to debug a  java application. The derby- is actually invalid.
Comment 21 aldobrucale 2013-07-10 15:02:31 UTC
In my case, the problem seems to be an invalid jar among the debugger sources.
Comment 22 Milos Kleint 2013-09-09 07:40:50 UTC
Created attachment 139819 [details]

in netbeans.org project, hyperlinked to a lass coming from external jars from maven.embedder project. Clicked attach sources, Clicked download, it has found the source jar in local repo, later got this exception
Comment 23 Martin Janicek 2013-09-09 11:12:17 UTC
There are several different reports from various areas. I'll try to split them to specific components..
Comment 24 Milos Kleint 2013-09-09 11:19:27 UTC
some are related to issue 235675
Comment 25 athompson 2016-04-22 17:27:13 UTC
Exception report #816999 is incorrectly being marked as a duplicate of exception report #170362 (which spawned this bug), so no new bug is being created.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo