Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
8.2
-
None
-
None
Description
I am debugging an HTML+Javascript page
It sends complex HTTP URIs Get Requests with this method:
$.getJSON(solrQuery)
Debugging javascript works perfectly fine, except for specific URLs containing invalid characters.
When that happens, an Exception is thrown in the IDE and the connection bewteen Netbeans and browser breaks:
java.net.URISyntaxException: Illegal character in query at index 215: http://inspire-geoportal.ec.europa.eu/solr/select?wt=json&q=:&fq=sourceMetadataResourceLocator:*&fq=environmentalDomain:air%26noise&fq=resourceType:(dataset+OR+series)&rows=0&facet=true&facet.limit=100&json.facet=\{%22totalMetadata%22:
{%22type%22:%22query%22,%22q%22:%22*%22},%22totalDownloadable%22:{%22type%22:%22query%22,%22q%22:%22interoperabilityAspect:(DOWNLOAD_MATCHING_DATA_IS_AVAILABLE+AND+DATA_DOWNLOAD_LINK_IS_AVAILABLE)%22},%22totalViewable%22:{%22type%22:%22query%22,%22q%22:%22interoperabilityAspect:(LAYER_MATCHING_DATA_IS_AVAILABLE)%22},%22countrycounts%22:{%22type%22:%22terms%22,%22field%22:%22memberStateCountryCode%22,%22limit%22:-1,%22facet%22:{%22metadata%22:
{%22type%22:%22query%22,%22q%22:%22*%22},%22downloadable%22:{%22type%22:%22query%22,%22q%22:%22interoperabilityAspect:(DOWNLOAD_MATCHING_DATA_IS_AVAILABLE+AND+DATA_DOWNLOAD_LINK_IS_AVAILABLE)%22},%22viewable%22:{%22type%22:%22query%22,%22q%22:%22interoperabilityAspect:(LAYER_MATCHING_DATA_IS_AVAILABLE)%22}}}}&callback=jQuery1113010134626470284624_1534411211941&json.wrf=onSolrData_themeOverview&_=1534411211942
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:3111)
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)
Caused: java.lang.IllegalArgumentException: Illegal character in query at index 215: http://inspire-geoportal.ec.europa.eu/solr/select?wt=json&q=:&fq=sourceMetadataResourceLocator:*&fq=environmentalDomain:air%26noise&fq=resourceType:(dataset+OR+series)&rows=0&facet=true&facet.limit=100&json.facet=\{%22totalMetadata%22:
,%22totalDownloadable%22:{%22type%22:%22query%22,%22q%22:%22interoperabilityAspect:(DOWNLOAD_MATCHING_DATA_IS_AVAILABLE+AND+DATA_DOWNLOAD_LINK_IS_AVAILABLE)%22},%22totalViewable%22:{%22type%22:%22query%22,%22q%22:%22interoperabilityAspect:(LAYER_MATCHING_DATA_IS_AVAILABLE)%22},%22countrycounts%22:{%22type%22:%22terms%22,%22field%22:%22memberStateCountryCode%22,%22limit%22:-1,%22facet%22:{%22metadata%22:
{%22type%22:%22query%22,%22q%22:%22*%22},%22downloadable%22:{%22type%22:%22query%22,%22q%22:%22interoperabilityAspect:(DOWNLOAD_MATCHING_DATA_IS_AVAILABLE+AND+DATA_DOWNLOAD_LINK_IS_AVAILABLE)%22},%22viewable%22:{%22type%22:%22query%22,%22q%22:%22interoperabilityAspect:(LAYER_MATCHING_DATA_IS_AVAILABLE)%22}}}}&callback=jQuery1113010134626470284624_1534411211941&json.wrf=onSolrData_themeOverview&_=1534411211942
at java.net.URI.create(URI.java:852)
at org.netbeans.modules.web.javascript.debugger.MiscEditorUtil.getFile(MiscEditorUtil.java:270)
at org.netbeans.modules.web.javascript.debugger.MiscEditorUtil.registerScriptSourceMap(MiscEditorUtil.java:316)
at org.netbeans.modules.web.javascript.debugger.breakpoints.BreakpointRuntimeSetter.scriptParsed(BreakpointRuntimeSetter.java:325)
at org.netbeans.modules.web.webkit.debugging.api.Debugger.addScript(Debugger.java:353)
at org.netbeans.modules.web.webkit.debugging.api.Debugger.access$900(Debugger.java:75)
at org.netbeans.modules.web.webkit.debugging.api.Debugger$Callback.handleResponse(Debugger.java:717)
at org.netbeans.modules.web.webkit.debugging.TransportHelper.notifyListeners(TransportHelper.java:164)
at org.netbeans.modules.web.webkit.debugging.TransportHelper.access$200(TransportHelper.java:69)
at org.netbeans.modules.web.webkit.debugging.TransportHelper$Callback.handleResponse(TransportHelper.java:291)
at org.netbeans.modules.extbrowser.plugins.ExternalBrowserPlugin$BrowserPluginHandler.handleDebuggerResponse(ExternalBrowserPlugin.java:499)
at org.netbeans.modules.extbrowser.plugins.ExternalBrowserPlugin$BrowserPluginHandler.read(ExternalBrowserPlugin.java:330)
at org.netbeans.modules.netserver.websocket.WebSocketHandler7.readDelegate(WebSocketHandler7.java:118)
at org.netbeans.modules.netserver.websocket.AbstractWSHandler7.readData(AbstractWSHandler7.java:426)
at org.netbeans.modules.netserver.websocket.AbstractWSHandler7.readFinalFrame(AbstractWSHandler7.java:322)
at org.netbeans.modules.netserver.websocket.AbstractWSHandler7.read(AbstractWSHandler7.java:148)
at org.netbeans.modules.netserver.websocket.WebSocketServerImpl$WebSocketHandler.read(WebSocketServerImpl.java:207)
at org.netbeans.modules.netserver.SocketFramework.readData(SocketFramework.java:179)
at org.netbeans.modules.netserver.SocketFramework.process(SocketFramework.java:153)
at org.netbeans.modules.netserver.SocketServer.process(SocketServer.java:106)
at org.netbeans.modules.netserver.SocketFramework.doRun(SocketFramework.java:137)
at org.netbeans.modules.netserver.SocketServer.run(SocketServer.java:77)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)
Here is one URL:
"http://inspire-geoportal.ec.europa.eu/solr/select?wt=json&q=:&fq=sourceMetadataResourceLocator:*&fq=environmentalDomain:air%26noise&fq=resourceType:(dataset+OR+series)&rows=0&facet=true&facet.limit=100&json.facet={"totalMetadata":
{"type":"query","q":"*"},"totalDownloadable":{"type":"query","q":"interoperabilityAspect:(DOWNLOAD_MATCHING_DATA_IS_AVAILABLE+AND+DATA_DOWNLOAD_LINK_IS_AVAILABLE)"},"totalViewable":{"type":"query","q":"interoperabilityAspect:(LAYER_MATCHING_DATA_IS_AVAILABLE)"},"countrycounts":{"type":"terms","field":"memberStateCountryCode","limit":-1,"facet":{"metadata":
{"type":"query","q":"*"},"downloadable":{"type":"query","q":"interoperabilityAspect:(DOWNLOAD_MATCHING_DATA_IS_AVAILABLE+AND+DATA_DOWNLOAD_LINK_IS_AVAILABLE)"},"viewable":{"type":"query","q":"interoperabilityAspect:(LAYER_MATCHING_DATA_IS_AVAILABLE)"}}}}"