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 occured when i use function [JsonBinary.parseAsString] #340

Open
MyHtime opened this issue Dec 16, 2021 · 0 comments
Open

exception occured when i use function [JsonBinary.parseAsString] #340

MyHtime opened this issue Dec 16, 2021 · 0 comments

Comments

@MyHtime
Copy link

MyHtime commented Dec 16, 2021

column type : json
value: {"rollSubNo":"EBR123456789-1,EBR123456789-2,EBR123456789-3,EBR123456789-4","rollBatchNo":"CDC00000000123456789","rollFlag":true,"rollReject":true}

        <dependency>
            <groupId>com.github.shyiko</groupId>
            <artifactId>mysql-binlog-connector-java</artifactId>
            <version>0.21.0</version>
        </dependency>
  • case 1
    JsonBinary.parseAsString(value.getBytes(StandardCharsets.US_ASCII))
    exception msg: The key offset in the JSON document is 72 and is too big for the binary form of the document (63)
  • case 2
    JsonBinary.parseAsString(value.getBytes(StandardCharsets.UTF_8))
    exception msg: Unknown value type code '10'
  • case 3
    JsonBinary.parseAsString(value.getBytes())
    exception msg: Unknown value type code '10'

thanks for all

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

1 participant