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 162907 - [67cat] IllegalArgumentException: Illegal character in path at index 54: file:/C:/Projects/maga-yii/protected/controllers/Copia de CatalogueController.php [file:/C:/Projects/maga-yii/protected/controllers/Cop
Summary: [67cat] IllegalArgumentException: Illegal character in path at index 54: file...
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Parsing & Indexing (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Vitezslav Stejskal
URL: http://statistics.netbeans.org/except...
Keywords:
: 163149 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-17 10:04 UTC by abajja
Modified: 2009-05-04 17:14 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 148735


Attachments
stacktrace (8.18 KB, text/plain)
2009-04-17 10:04 UTC, abajja
Details

Note You need to log in before you can comment on or make changes to this bug.
Description abajja 2009-04-17 10:04:29 UTC
Build: NetBeans IDE Dev (Build 200904161401)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Windows XP, 5.1, x86

User Comments:
abajja: Reproducing this exception with build 200904161401



Stacktrace: 
java.lang.IllegalArgumentException: Illegal character in path at index 54: file:/C:/Projects/maga-yii/protected/controllers/Copia de CatalogueController.php [file:/C:/Projects/maga-yii/protected/controllers/Copia de CatalogueController.php]
        at org.netbeans.modules.masterfs.filebasedfs.FileBasedURLMapper.getFileObjects(FileBasedURLMapper.java:122)
        at org.netbeans.modules.masterfs.MasterURLMapper.getFileObjects(MasterURLMapper.java:62)
        at org.openide.filesystems.URLMapper.findFileObject(URLMapper.java:213)
        at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.addIndexingJob(RepositoryUpdater.java:189)
        at org.netbeans.modules.parsing.api.indexing.IndexingManager.refreshIndexAndWait(IndexingManager.java:110)
        at org.netbeans.modules.parsing.spi.indexing.support.QuerySupport.query(QuerySupport.java:237)
Comment 1 abajja 2009-04-17 10:04:36 UTC
Created attachment 80323 [details]
stacktrace
Comment 2 Jiri Skrivanek 2009-04-17 10:25:24 UTC
I see the problem in org.netbeans.modules.parsing.spi.indexing.support.QuerySupport.query() line 234. Characters like
space must be escaped in staleFile parameter. Rather use File.toURI().toURL().

list.add(new URL(root, staleFile));
Comment 3 Vitezslav Stejskal 2009-04-17 13:40:00 UTC
http://hg.netbeans.org/jet-main/rev/2e24f7bb2761
Comment 4 Quality Engineering 2009-04-18 07:24:39 UTC
Integrated into 'main-golden', will be available in build *200904180201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/2e24f7bb2761
User: Vita Stejskal <vstejskal@netbeans.org>
Log: #162907 - more careful path to URL conversion
Comment 5 Masaki Katakai 2009-04-20 12:01:06 UTC
Hi Vita,

Will this fix be into 6.7 Beta? I'm always seeing the error when I created a rails application
on Windows XP first time so the following dialog is invoked. Also the error message
is not easy for understanding.

"; might be because your user directory is on a Windows UNC path (issue #46813)? If so, try using mapped drive letters."

"C:/Program Files/NetBeans 6.7 Beta" is the default destination of installer so
I think many users will see the dialog.

Product Version: NetBeans IDE 6.7 Beta (Build 200904192254)
Java: 1.6.0_13; Java HotSpot(TM) Client VM 11.3-b02
System: Windows XP version 5.1 running on x86; MS932; en (nb)

Caused: java.lang.IllegalArgumentException: Illegal character in path at index 16: file:/C:/Program Files/NetBeans 6.7
Beta/ruby2/rubystubs/1.8.7-p72/stub_file.rb [file:/C:/Program Files/NetBeans 6.7
Beta/ruby2/rubystubs/1.8.7-p72/stub_file.rb]
[catch] at org.netbeans.modules.masterfs.filebasedfs.FileBasedURLMapper.getFileObjects(FileBasedURLMapper.java:122)
        at org.netbeans.modules.masterfs.MasterURLMapper.getFileObjects(MasterURLMapper.java:62)
        at org.openide.filesystems.URLMapper.findFileObject(URLMapper.java:213)
        at org.netbeans.modules.parsing.spi.indexing.support.IndexResult.getFile(IndexResult.java:112)
        at org.netbeans.modules.ruby.RubyIndex.createMethod(RubyIndex.java:592)
        at org.netbeans.modules.ruby.RubyIndex.getDocumentedMethods(RubyIndex.java:1536)
        at org.netbeans.modules.ruby.RubyIndex.getDocumented(RubyIndex.java:1468)
Comment 6 Quality Engineering 2009-04-20 20:23:35 UTC
Integrated into 'main-golden', will be available in build *200904201507* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/2e24f7bb2761
User: Vita Stejskal <vstejskal@netbeans.org>
Log: #162907 - more careful path to URL conversion
Comment 7 Marek Fukala 2009-04-21 07:28:43 UTC
*** Issue 163149 has been marked as a duplicate of this issue. ***
Comment 8 Marek Fukala 2009-04-21 07:33:00 UTC
*** Issue 163149 has been marked as a duplicate of this issue. ***
Comment 9 Jindrich Sedek 2009-04-24 15:54:15 UTC
v.
NetBeans IDE Dev (Build web-main-465-on-090424)