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 247137 - java.net.URISyntaxException: Illegal character in path at index 36: file:/Applications/NetBeans/NetBeans 8.0.1.app/Contents/Resources/NetBeans/ide/jsstubs/reststubs.zip
Summary: java.net.URISyntaxException: Illegal character in path at index 36: file:/App...
Status: NEW
Alias: None
Product: third-party
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: issues@third-party
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-15 19:45 UTC by lpweber
Modified: 2014-09-16 11:36 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 197442


Attachments
stacktrace (2.37 KB, text/plain)
2014-09-15 19:45 UTC, lpweber
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lpweber 2014-09-15 19:45:01 UTC
Build: NetBeans IDE 8.0.1 (Build 201408251540)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.20-b23, Java(TM) SE Runtime Environment, 1.8.0_20-b26
OS: Mac OS X

User Comments:
lpweber: on opening project

lpweber: on open project

GUEST: closed a project

GUEST: startup

lpweber: on open project

GUEST: closed a project

lpweber: on open project

lpweber: on opening project

GUEST: opened a project




Stacktrace: 
java.net.URISyntaxException: Illegal character in path at index 36: file:/Applications/NetBeans/NetBeans 8.0.1.app/Contents/Resources/NetBeans/ide/jsstubs/reststubs.zip
   at java.net.URI$Parser.fail(URI.java:2848)
   at java.net.URI$Parser.checkChars(URI.java:3021)
   at java.net.URI$Parser.parseHierarchical(URI.java:3105)
   at java.net.URI$Parser.parse(URI.java:3053)
   at java.net.URI.<init>(URI.java:588)
   at java.net.URI.create(URI.java:850)
Comment 1 lpweber 2014-09-15 19:45:04 UTC
Created attachment 149231 [details]
stacktrace
Comment 2 Tomas Zezula 2014-09-16 11:36:32 UTC
The URL contained in the classpath passed to the parsing.api is invalid, it contains a space. The classpath is constructed by the JavaScript ClassPathProviderImpl.getJsStubs(). However the construction of the ClassPath's PathResource is OK, the problem is that the FileObject.toURL returns the wrong URL with space. The FileObject is created by a custom URLMapper: name.dougmcneil.altarchivetypes.AltArchiveURLMapper.