liaochong / myexcel

MyExcel, a new way to operate excel!
https://github.com/liaochong/myexcel/wiki
Apache License 2.0
1.66k stars 325 forks source link

DefaultExcelBuilder 方法导出异常 #433

Open 18270704097 opened 1 day ago

18270704097 commented 1 day ago

Caused by: java.lang.RuntimeException: java.lang.UnsupportedOperationException: Received a termination command at com.github.liaochong.myexcel.core.DefaultExcelBuilder.build(DefaultExcelBuilder.java:173) at tech.yulang.logistics.lms.transportation.consignment.controller.ConsignmentController.export(ConsignmentController.java:84) ... 127 common frames omitted Caused by: java.lang.UnsupportedOperationException: Received a termination command at com.github.liaochong.myexcel.core.HtmlToExcelStreamFactory.append(HtmlToExcelStreamFactory.java:135) at com.github.liaochong.myexcel.core.DefaultStreamExcelBuilder.appendTr(DefaultStreamExcelBuilder.java:393) at com.github.liaochong.myexcel.core.DefaultStreamExcelBuilder.append(DefaultStreamExcelBuilder.java:387) at com.github.liaochong.myexcel.core.DefaultStreamExcelBuilder.append(DefaultStreamExcelBuilder.java:361) at com.github.liaochong.myexcel.core.DefaultExcelBuilder.build(DefaultExcelBuilder.java:164) ... 128 common frames omitted

版本:4.5.3

image 这里是什么条件下会发生的异常

liaochong commented 1 day ago

因为myexcel是采用生产者消费者模式导出,所以生产和消费并不同步,这个错误是在你append时,导出发生了其他异常而无法正常处理新append数据报的异常,通常你需要关注上一个异常

18270704097 commented 1 day ago

image image zheli这里是上一个异常

18270704097 commented 1 day ago

image 我这个导出对象也没有设置合并

liaochong commented 1 day ago

这是必现吗?能否升级到4.5.4看下问题是否仍然存在?

liaochong commented 1 day ago

请升级至4.5.6