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.
Summary: | IllegalArgumentException: Malformed escape pair at index 120: file:/Library/Ruby/Gems/1.8/gems/merb_activerecord-1.0.0.1/lib/generators/templates/session_migration/schema/migrations/%version%_database | ||
---|---|---|---|
Product: | java | Reporter: | bobocopy <bobocopy> |
Component: | Source | Assignee: | Rastislav Komara <moonko> |
Status: | RESOLVED DUPLICATE | ||
Severity: | blocker | CC: | ivansidorkin, jbwiv, jemmyw, mmirilovic, phejl |
Priority: | P2 | Keywords: | SPACE_IN_PATH |
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://statistics.netbeans.org/exceptions/detail.do?id=148181 | ||
Issue Type: | DEFECT | Exception Reporter: | 148181 |
Attachments: |
stacktrace
stacktrace |
Description
bobocopy
2009-03-24 17:14:56 UTC
Created attachment 78772 [details]
stacktrace
Wrong URL is returned from IndexResult.getFile(). Use file.toURI().toURL() to create correct URL. Build: NetBeans IDE Dev (Build 200903250219) VM: Java HotSpot(TM) Client VM, 11.2-b01, Java(TM) SE Runtime Environment, 1.6.0_12-b04 OS: Linux, 2.6.27-11-generic, i386 User Comments: Opening an existing ruby project. Although, from the error, I'm betting this came from NB's ruby scan. Stacktrace: java.lang.IllegalArgumentException: Illegal character in path at index 74: file:/usr/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/quiz1/t/solutions/James Edward Gray II/solitaire.rb [file:/usr/lib/ruby/gems/1.8/gems/rubyzip-0.9.1/lib/quiz1/t/solutions/James Edward Gray II/solitaire.rb] 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:111) at org.netbeans.modules.ruby.RubyIndex.createMethod(RubyIndex.java:593) at org.netbeans.modules.ruby.RubyIndex.addMethodsFromClass(RubyIndex.java:1038) Created attachment 78916 [details]
stacktrace
diff -r 7058fe2363fc parsing.api/src/org/netbeans/modules/parsing/impl/indexing/Util.java --- a/parsing.api/src/org/netbeans/modules/parsing/impl/indexing/Util.java Mon Apr 20 12:44:59 2009 +0200 +++ b/parsing.api/src/org/netbeans/modules/parsing/impl/indexing/Util.java Mon Apr 20 13:05:27 2009 +0200 @@ -128,7 +128,7 @@ public static URL resolveUrl(URL root, String relativePath) throws MalformedURLException { try { if ("file".equals(root.getProtocol())) { //NOI18N - return new File(new File(root.toURI()), relativePath).toURL(); + return new File(new File(root.toURI()), relativePath).toURI().toURL(); } else { return root.toURI().resolve(relativePath).toURL(); } 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; Cp1251; ru_RU (nb) - create Java Application - create PHP project got message :"; might be because your user directory is on a Windows UNC path (issue #46813)? If so, try using mapped drive letters." and exception in log: Caused: java.lang.IllegalArgumentException: Illegal character in path at index 18: file:/C:/Documents and Settings/is153249/My Documents/NetBeansProjects/JavaApplication4/src/javaapplication4/Main.java [file:/C:/Documents and Settings/is153249/My Documents/NetBeansProjects/JavaApplication4/src/javaapplication4/Main.java] [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.tasklist.impl.Loader.loadTasks(Loader.java:127) at org.netbeans.modules.tasklist.impl.Loader.run(Loader.java:89) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:573) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1005) ALL [null]: ; might be because your user directory is on a Windows UNC path (issue #46813)? If so, try using mapped drive letters. related to issue 163001 ? I don't think so. The same as issue #163185. *** This issue has been marked as a duplicate of 163185 *** |