shyiko/mysql-binlog-connector-java

exception occured when i use function [JsonBinary.parseAsString]

MyHtime opened this issue · 0 comments

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