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 222858 - IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: "%2"
Summary: IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pa...
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Project (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-27 20:24 UTC by painroolez
Modified: 2012-12-07 02:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 195765


Attachments
stacktrace (383 bytes, text/plain)
2012-11-27 20:24 UTC, painroolez
Details

Note You need to log in before you can comment on or make changes to this bug.
Description painroolez 2012-11-27 20:24:07 UTC
Build: NetBeans IDE 7.3 Beta 2 (Build 201211062253)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.12-b01-434, Java(TM) SE Runtime Environment, 1.6.0_37-b06-434-11M3909
OS: Mac OS X

User Comments:
painroolez: In my website I use jquery vegas background plugin as an image rotator, since at some point it has to be covered with some divs, after it has been hidden I try to destroy it with $.vegas('destroy')(), at that point Netbeans crashes.
Excuse my english, but I'm italian.
the javascript plugin may be found here: http://vegas.jaysalvat.com/




Stacktrace: 
java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: "%2"
   at java.net.URLDecoder.decode(URLDecoder.java:173)
   at org.netbeans.modules.web.common.api.WebServer$Server.read(WebServer.java:279)
   at org.netbeans.modules.web.common.api.WebServer$Server.run(WebServer.java:242)
   at java.lang.Thread.run(Thread.java:680)
Comment 1 painroolez 2012-11-27 20:24:10 UTC
Created attachment 128479 [details]
stacktrace
Comment 2 David Konecny 2012-11-28 05:01:49 UTC
This looks to be cause by using "%2" in a path to some resource, for example:

   <link href="css/style%2.css" .../>

Could you tell me what it is and why are you using percentage character in the filename? Thanks. And do not worry about your English - it is perfectly clear what you saying. I'm not a native English speaker either.
Comment 3 David Konecny 2012-12-03 19:25:26 UTC
I think that user meant to use %20 in their URL but mistakenly used only %2 which trigged an internal error in embedded WebServer. I made the server handle this case better: 1a83103033a1
Comment 4 Quality Engineering 2012-12-07 02:38:04 UTC
Integrated into 'main-golden', will be available in build *201212070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/1a83103033a1
User: David Konecny <dkonecny@netbeans.org>
Log: #222858 - IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: "%2"