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 148529 - java.net.URISyntaxException: Malformed escape pair at index 230: http://ads.tw.adsonar.com/adserving/getAds.jsp?previousPlacementIds=&placementId=1391588&pid=755777&ps=-1&zw=142&zh=225&url=http%3A//ww
Summary: java.net.URISyntaxException: Malformed escape pair at index 230: http://ads.t...
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Quy Nguyen
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-26 22:22 UTC by _ krystyna
Modified: 2008-09-27 05:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 119106


Attachments
stacktrace (1.92 KB, text/plain)
2008-09-26 22:22 UTC, _ krystyna
Details
all messages from log (3.35 KB, text/plain)
2008-09-26 22:30 UTC, _ krystyna
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ krystyna 2008-09-26 22:22:25 UTC
Build: NetBeans IDE Dev (Build 20080926114356)
VM: Java HotSpot(TM) Client VM, 11.0-b13, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b26
OS: Windows XP, 5.1, x86

User Comments:
krystyna: remote debugging, firefox, breakpoints in scriptaculous.js file from www.cnn.com



Stacktrace: 
java.net.URISyntaxException: Malformed escape pair at index 230: http://ads.tw.adsonar.com/adserving/getAds.jsp?previousPlacementIds=&placementId=1391588&pid=755777&ps=-1&zw=142&zh=225&url=http%3A//www.time.com/time/politics/article/0%2C8599%2C1844757%2C00.html&v=5&dct=The%20Debate%20is%20On%20%u2014%20And%20So-s%20the%20Strategizing%20-%20TIME&ref=http%3A//www.cnn.com/
        at java.net.URI$Parser.fail(URI.java:2809)
        at java.net.URI$Parser.scanEscape(URI.java:2939)
        at java.net.URI$Parser.scan(URI.java:2962)
        at java.net.URI$Parser.checkChars(URI.java:2980)
        at java.net.URI$Parser.parseHierarchical(URI.java:3072)
        at java.net.URI$Parser.parse(URI.java:3014)
Comment 1 _ krystyna 2008-09-26 22:22:32 UTC
Created attachment 70706 [details]
stacktrace
Comment 2 _ krystyna 2008-09-26 22:26:46 UTC
See the full stack. There is Exception in thread "Suspension point handler" java.lang.NullPointerException
        at org.netbeans.modules.web.client.tools.javascript.debugger.spi.JSAbstractDebugger.setSources
(JSAbstractDebugger.java:178)
Comment 3 _ krystyna 2008-09-26 22:30:58 UTC
Created attachment 70708 [details]
all messages from log
Comment 4 Quy Nguyen 2008-09-27 00:32:03 UTC
Changeset: cf55e1b7ea10

Some web URLs contain the %uXXXX UTF-16 encoding.  These cannot be directly converted to URI since the escape sequence
is non-standard.  Fixed by decoding these escaped characters before creating the URI instance.
Comment 5 Quality Engineering 2008-09-27 05:32:23 UTC
Integrated into 'main-golden', will be available in build *200809270201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/cf55e1b7ea10
User: Quy Nguyen <quynguyen@netbeans.org>
Log: #148529 - Decode %uHHHH escaped characters (UTF-16) before converting to URI