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.
Build: NetBeans IDE Dev (Build 201407040001) VM: Java HotSpot(TM) 64-Bit Server VM, 25.5-b02, Java(TM) SE Runtime Environment, 1.8.0_05-b13 OS: Windows 7 User Comments: vriha: happened when I was selecting element with Inspect mode in Chromiuum Stacktrace: Unexpected character (^Q) at position 0. at org.json.simple.parser.Yylex.yylex(Yylex.java:610) at org.json.simple.parser.JSONParser.nextToken(JSONParser.java:269) at org.json.simple.parser.JSONParser.parse(JSONParser.java:118) at org.json.simple.parser.JSONParser.parse(JSONParser.java:81) at org.json.simple.parser.JSONParser.parse(JSONParser.java:75) at org.json.simple.JSONValue.parseWithException(JSONValue.java:78)
Created attachment 147885 [details] stacktrace
To reproduce: - download [1] and run it in Chrome with NB integration (I used Chromium 38) - start inspect mode - click on "Home" link in the left menu => all web inspection windows are closed, this exception pops out [1] http://services.netbeans.org/synergy/server/api/attachment.php?id=140
Cannot reproduce in Chrome 35, only Chromium 38
*** Bug 245750 has been marked as a duplicate of this bug. ***
Tomas, could you please investigate?
I guess David worked on this - or not? Again, I know nothing about this area so not sure how effective it is to let me solve this issue...
This looks to me like a variation of issue 245406 - something broken in dev build of Chrome 38 in WebSockets. I cannot reproduce this in Chrome 36.
*** This bug has been marked as a duplicate of bug 245406 ***
Perhaps not a duplicate, it just happened to me in stable Chrome (v36). Unexpected character (�) at position 0. at org.json.simple.parser.Yylex.yylex(Yylex.java:610) at org.json.simple.parser.JSONParser.nextToken(JSONParser.java:269) at org.json.simple.parser.JSONParser.parse(JSONParser.java:118) at org.json.simple.parser.JSONParser.parse(JSONParser.java:81) at org.json.simple.parser.JSONParser.parse(JSONParser.java:75) at org.json.simple.JSONValue.parseWithException(JSONValue.java:78) [catch] at org.netbeans.modules.extbrowser.plugins.Message.parse(Message.java:113) at org.netbeans.modules.extbrowser.plugins.ExternalBrowserPlugin$BrowserPluginHandler.read(ExternalBrowserPlugin.java:303) at org.netbeans.modules.netserver.websocket.WebSocketHandler7.readDelegate(WebSocketHandler7.java:118)
This is happening to me in Stable now everytime I try and debug. Looks like Chrome autoupdated to 36 in the background and now I cannot debug again :(
Created attachment 148393 [details] patch Per our investigation (me and Tomas), this is likely caused by missing piece of protocol implementation in NB. The attached patched could solve the issue. Still needs a lot of testing.
*** Bug 245406 has been marked as a duplicate of this bug. ***
Should be fixed now, please verify. Thanks. http://hg.netbeans.org/web-main/rev/8edb2f4e6e12
PetřeH, thanks a lot for your help!
Integrated into 'main-silver', will be available in build *201407310738* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/8edb2f4e6e12 User: Tomas Mysik <tmysik@netbeans.org> Log: #245410 - Unexpected character (^Q) at position 0. at org.json.simple.parser.Yylex.yylex
The fix seems to be working fine, I tested web inspection/debugging in Chrome 36/Chromium 37/Embedded browser/Mobile Safari/Cordova/Chrome for Android on Linux and Mac and no problems. I've used several builds for testing as they became available: web-main builds 1110 & 1114 and today's trunk build Verified, thank you Product Version: NetBeans IDE Dev (Build 201407310738) Java: 1.7.0_65; Java HotSpot(TM) 64-Bit Server VM 24.65-b04 Runtime: Java(TM) SE Runtime Environment 1.7.0_65-b17 System: Mac OS X version 10.9.4 running on x86_64; UTF-8; en_US (nb) Product Version: NetBeans IDE Dev (Build 201407310738) Java: 1.8.0_05; Java HotSpot(TM) Client VM 25.5-b02 Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13 System: Linux version 3.13.0-32-generic running on i386; UTF-8; en_US (nb) NetBeans IDE Dev (Build web-main-1114-on-20140731) NetBeans IDE Dev (Build web-main-1111-on-20140730) Chrome 36 Version 36.0.1985.125 Chromium 37 Version 37.0.2062.20 Ubuntu 14.04 (283104)
Good job Petr and Tomas!!
*** Bug 250096 has been marked as a duplicate of this bug. ***