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

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条回答 默认 最新

相关推荐