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 247601 - java.net.URISyntaxException: Illegal character in query at index 41: http://php.net/manual-lookup.php?pattern=\PDO
Summary: java.net.URISyntaxException: Illegal character in query at index 41: http://p...
Status: RESOLVED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: Extbrowser (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Jan Stola
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-30 16:32 UTC by jeffreymb
Modified: 2015-03-20 03:25 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 208314


Attachments
stacktrace (748 bytes, text/plain)
2014-09-30 16:32 UTC, jeffreymb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jeffreymb 2014-09-30 16:32:28 UTC
Build: NetBeans IDE 8.0.1 (Build 201408251540)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13
OS: Windows 8

User Comments:
GUEST: Click link

GUEST: Clicking Link

GUEST: Opening URLfrom netbeans

GUEST: open link in netbeans

GUEST: ctrl clcking link

GUEST: Cada vez que intento hacer el test restfull web service me da este error: build-impl.xml:1071 the module has not been deployed. see the server log for details

jeffreymb: attempted to lookup something in PHP manual.

GUEST: i was running a jar file deployed in glassfish server container

GUEST: Clicking LInk

GUEST: Click lInk

heapifyman: Deployed a maven based Java EE web application to JBoss 7.1

${context.path} is actually filtered to an actual context path by maven




Stacktrace: 
java.net.URISyntaxException: Illegal character in query at index 41: http://php.net/manual-lookup.php?pattern=\PDO
   at java.net.URI$Parser.fail(URI.java:2829)
   at java.net.URI$Parser.checkChars(URI.java:3002)
   at java.net.URI$Parser.parseHierarchical(URI.java:3092)
   at java.net.URI$Parser.parse(URI.java:3034)
   at java.net.URI.<init>(URI.java:595)
   at java.net.URL.toURI(URL.java:938)
Comment 1 jeffreymb 2014-09-30 16:32:31 UTC
Created attachment 149625 [details]
stacktrace
Comment 2 Jan Stola 2015-03-19 10:27:21 UTC
The exception is caused by opening a URL with invalid characters. It seems that usually the root of the problem is somewhere else (like ${context.path} not being replaced correctly). I have modified the corresponding code to avoid this exception but I am not able to identify and fix the problems that lead to at attempt to open the corrupted URLs.

Modified file: https://hg.netbeans.org/web-main/rev/f74a87899696
Comment 3 Quality Engineering 2015-03-20 03:25:15 UTC
Integrated into 'main-silver', will be available in build *201503200001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/f74a87899696
User: Jan Stola <jstola@netbeans.org>
Log: #247601: Avoiding a potential URISyntaxException when the URL has some invalid characters