Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception resolving JSON field with empty key(""). #170

Closed
PhantomThief opened this issue May 18, 2017 · 1 comment
Closed

Exception resolving JSON field with empty key(""). #170

PhantomThief opened this issue May 18, 2017 · 1 comment

Comments

@PhantomThief
Copy link

java.io.IOException: The key offset in the JSON document is 11 and is too big for the binary form of the document (11) at com.github.shyiko.mysql.binlog.event.deserialization.json.JsonBinary.readUnsignedIndex(JsonBinary.java:876) at com.github.shyiko.mysql.binlog.event.deserialization.json.JsonBinary.parseObject(JsonBinary.java:330) at com.github.shyiko.mysql.binlog.event.deserialization.json.JsonBinary.parse(JsonBinary.java:211) at com.github.shyiko.mysql.binlog.event.deserialization.json.JsonBinary.parseObject(JsonBinary.java:400) at com.github.shyiko.mysql.binlog.event.deserialization.json.JsonBinary.parse(JsonBinary.java:211) at com.github.shyiko.mysql.binlog.event.deserialization.json.JsonBinary.parse(JsonBinary.java:205) at com.github.shyiko.mysql.binlog.event.deserialization.json.JsonBinary.parse(JsonBinary.java:181) at com.github.shyiko.mysql.binlog.event.deserialization.json.JsonBinary.parseAsString(JsonBinary.java:168)

example mysql data:
{"bitrate": {"": 0}}

@shyiko
Copy link
Owner

shyiko commented May 18, 2017

Fixed in 0.12.2 (should become available through Maven Central within ~20 minutes). Thanks for the bug report 👍

@shyiko shyiko closed this as completed May 18, 2017
adsr pushed a commit to adsr/mysql-binlog-connector-java that referenced this issue Jan 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants