zhuangzhineng / chromedevtools

Automatically exported from code.google.com/p/chromedevtools
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Exception is thrown when viewing variables #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm using source build as of December 9th, 2009.

Debugger fails to show the variables when the breakpoint is hit. Relevant stack 
trace is:
Caused by: org.chromium.sdk.internal.protocolparser.JsonProtocolParseException: 
Failed to 
parse field name
    at 
org.chromium.sdk.internal.protocolparser.dynamicimpl.JsonProtocolParser$LazyPars
eFieldMetho
dHandler.parse(JsonProtocolParser.java:571)
    at 
org.chromium.sdk.internal.protocolparser.dynamicimpl.JsonProtocolParser$LazyPars
eFieldMetho
dHandler.parse(JsonProtocolParser.java:562)
    at 
org.chromium.sdk.internal.protocolparser.dynamicimpl.JsonProtocolParser$LazyPars
eFieldMetho
dHandler.handle(JsonProtocolParser.java:547)
    ... 22 more
Caused by: org.chromium.sdk.internal.protocolparser.JsonProtocolParseException: 
Field must 
have type java.lang.String
    at 
org.chromium.sdk.internal.protocolparser.dynamicimpl.JsonProtocolParser$SimpleCa
stParser.par
seValueQuick(JsonProtocolParser.java:629)
    at 
org.chromium.sdk.internal.protocolparser.dynamicimpl.JsonProtocolParser$LazyPars
eFieldMetho
dHandler.parse(JsonProtocolParser.java:569)
    ... 24 more
Caused by: java.lang.ClassCastException
    at java.lang.Class.cast(Unknown Source)
    at 
org.chromium.sdk.internal.protocolparser.dynamicimpl.JsonProtocolParser$SimpleCa
stParser.par
seValueQuick(JsonProtocolParser.java:627)
    ... 25 more

The problem is that Json response has name property value set to 0.

I cannot identify the exact cause of the problem. You can find json text in 
attachment.

Original issue reported on code.google.com by eostrouk...@gmail.com on 9 Dec 2009 at 6:33

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by peter.ry...@gmail.com on 11 Dec 2009 at 12:06

GoogleCodeExporter commented 9 years ago
Thanks for noting. It's because of our new JSON parser. I think
http://codereview.chromium.org/491030 should fix, it should be committed to SVN 
soon.

Original comment by peter.ry...@gmail.com on 11 Dec 2009 at 12:08

GoogleCodeExporter commented 9 years ago

Original comment by peter.ry...@gmail.com on 11 Dec 2009 at 12:14