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 247908 - java.net.URISyntaxException: Illegal character in opaque part at index 11: jar:file:C:\projects\.netbeans\8.0\modules\ext\btrace-client.jar!/
Summary: java.net.URISyntaxException: Illegal character in opaque part at index 11: ja...
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-10-14 07:34 UTC by jmborer
Modified: 2015-03-18 14:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 212695


Attachments
stacktrace (2.86 KB, text/plain)
2014-10-14 07:34 UTC, jmborer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jmborer 2014-10-14 07:34:16 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: Windows 7

User Comments:
jmborer: On IDE start




Stacktrace: 
java.net.URISyntaxException: Illegal character in opaque part at index 11: jar:file:C:\projects\.netbeans\8.0\modules\ext\btrace-client.jar!/
   at java.net.URI$Parser.fail(URI.java:2848)
   at java.net.URI$Parser.checkChars(URI.java:3021)
   at java.net.URI$Parser.parse(URI.java:3058)
   at java.net.URI.<init>(URI.java:588)
   at java.net.URI.create(URI.java:850)
   at org.netbeans.modules.project.libraries.ui.LibrariesModel.convertURLsToURIs(LibrariesModel.java:492)
Comment 1 jmborer 2014-10-14 07:34:18 UTC
Created attachment 149885 [details]
stacktrace
Comment 2 Tomas Zezula 2015-03-18 14:56:14 UTC
Caused by btrace module. org.netbeans.modules.btrace.project.Installer.restored(Installer.java:79) creates invalid URL which cannot be converted into URI.
The code:
new URL("jar:file:" + jar.getAbsolutePath() + "!/")
should be:
FileUtil.getArchiveRoot(FileUtil.toURI(jar).toURL())

But it seems that the whole Installer was removed:
https://kenai.com/projects/btrace/sources/10014/diff//?rev1=241&rev2=242


Jarda knows more about it.