Skip to content

meet java.lang.Long cannot be cast to java.lang.Integer #1313

@lynch0227

Description

@lynch0227

environment

  • canal version
    1.1.3
  • mysql version
    5.7

Issue Description

When I do manually etl, meeting the below error:
2018-12-19 11:00:22.897 ERROR 10140 --- [ool-36-thread-2] c.a.o.c.c.a.rdb.service.RdbEtlService : assets etl failed! ==>java.lang.Long cannot be cast to java.lang.Integer

Here is the table structure:
+-------------+------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------------+------------------+------+-----+---------+----------------+
| id | int(10) unsigned | NO | PRI | NULL | auto_increment |
| name | varchar(191) | YES | | NULL | |
| asset_tag | varchar(191) | YES | | NULL | |
| notes | varchar(200) | YES | | NULL | |
| assigned_to | int(11) | YES | | NULL | |
| created_at | timestamp | YES | | NULL | |
| updated_at | timestamp | YES | | NULL | |
| deleted_at | timestamp | YES | | NULL | |
| status_id | int(11) | YES | | NULL | |
+-------------+------------------+------+-----+---------+----------------+

How can I fix it?

Expected behaviour

Actual behaviour

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions