gmyming 2020-09-04 11:46 采纳率: 50%
浏览 329
已采纳

mybatis-generator 自动生成mapper报错

用mybatis自动生成mapper报错
提示org/mybatis/generator/api/dom/xml/TextElement' (current frame,stack[1]) is not assignable to
'org/mybatis/generator/api/dom/xml/Element'

麻烦大神们指条明路,困扰好几天了

D:\Workspaces\openapi.metadata.plugins\org.mybatis.generator.eclipse.ui.generatedAntScripts\vlife-openapi-dal-generatorConfig.xml.xml:5: java.lang.VerifyError: Bad type on operand stack Exception Details: Location: mybatis/generator/MyCommentGenerator.addComment(Lorg/mybatis/generator/api/dom/xml/XmlElement;)V @18: invokevirtual Reason: Type 'org/mybatis/generator/api/dom/xml/TextElement' (current frame, stack[1]) is not assignable to 'org/mybatis/generator/api/dom/xml/Element' Current Frame: bci: @18 flags: { } locals: { 'mybatis/generator/MyCommentGenerator', 'org/mybatis/generator/api/dom/xml/XmlElement' } stack: { 'org/mybatis/generator/api/dom/xml/XmlElement', 'org/mybatis/generator/api/dom/xml/TextElement' } Bytecode: 0x0000000: 2ab4 001b 9900 04b1 2bbb 0034 5912 36b7 0x0000010: 0038 b600 3bbb 0041 59b7 0043 4d2c 1244 0x0000020: b600 4657 2c12 4ab6 0046 572b bb00 3459 0x0000030: 2cb6 004c b700 38b6 003b 2bbb 0034 5912 0x0000040: 50b7 0038 b600 3b2a b600 524e 2dc6 002b 0x0000050: 2c03 b600 552c 1259 b600 4657 2c2d b600 0x0000060: 4657 2c10 2eb6 005b 572b bb00 3459 2cb6 0x0000070: 004c b700 38b6 003b 2bbb 0034 5912 5eb7 0x0000080: 0038 b600 3bb1 Stackmap Table: same_frame(@8) append_frame(@120,Object[#65],Object[#102]) java.lang.VerifyError: Bad type on operand stack Exception Details: Location: mybatis/generator/MyCommentGenerator.addComment(Lorg/mybatis/generator/api/dom/xml/XmlElement;)V @18: invokevirtual Reason: Type 'org/mybatis/generator/api/dom/xml/TextElement' (current frame, stack[1]) is not assignable to 'org/mybatis/generator/api/dom/xml/Element' Current Frame: bci: @18 flags: { } locals: { 'mybatis/generator/MyCommentGenerator', 'org/mybatis/generator/api/dom/xml/XmlElement' } stack: { 'org/mybatis/generator/api/dom/xml/XmlElement', 'org/mybatis/generator/api/dom/xml/TextElement' } Bytecode: 0x0000000: 2ab4 001b 9900 04b1 2bbb 0034 5912 36b7 0x0000010: 0038 b600 3bbb 0041 59b7 0043 4d2c 1244 0x0000020: b600 4657 2c12 4ab6 0046 572b bb00 3459 0x0000030: 2cb6 004c b700 38b6 003b 2bbb 0034 5912 0x0000040: 50b7 0038 b600 3b2a b600 524e 2dc6 002b 0x0000050: 2c03 b600 552c 1259 b600 4657 2c2d b600 0x0000060: 4657 2c10 2eb6 005b 572b bb00 3459 2cb6 0x0000070: 004c b700 38b6 003b 2bbb 0034 5912 5eb7 0x0000080: 0038 b600 3bb1 Stackmap Table: same_frame(@8) append_frame(@120,Object[#65],Object[#102])

  • 写回答

1条回答 默认 最新

  • threenewbee 2020-09-04 12:06
    关注
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥30 Matlab打开默认名称带有/的光谱数据
  • ¥50 easyExcel模板 动态单元格合并列
  • ¥15 res.rows如何取值使用
  • ¥15 在odoo17开发环境中,怎么实现库存管理系统,或独立模块设计与AGV小车对接?开发方面应如何设计和开发?请详细解释MES或WMS在与AGV小车对接时需完成的设计和开发
  • ¥15 CSP算法实现EEG特征提取,哪一步错了?
  • ¥15 游戏盾如何溯源服务器真实ip?需要30个字。后面的字是凑数的
  • ¥15 vue3前端取消收藏的不会引用collectId
  • ¥15 delphi7 HMAC_SHA256方式加密
  • ¥15 关于#qt#的问题:我想实现qcustomplot完成坐标轴
  • ¥15 下列c语言代码为何输出了多余的空格