Java-The maximum number of Cell Styles was exceeded. You can define up to 64000 style in a .xlsx

一、异常日志:

2022-07-04 15:37:52,255 ERROR [http-nio-9202-exec-4] [frond-tmc,,,true] [ExportExcelMoreSheet.addCell] [ExportExcelMoreSheet.java:315] - Set cell value [9748,37] error: java.lang.IllegalStateException: The maximum number of Cell Styles was exceeded. You can define up to 64000 style in a .xlsx Workbook
2022-07-04 15:37:52,257 ERROR [http-nio-9202-exec-4] [frond-tmc,,,true] [CustomerBillController.downCustomerBill] [CustomerBillController.java:502] - 导出异常
java.lang.IllegalStateException: The maximum number of Cell Styles was exceeded. You can define up to 64000 style in a .xlsx Workbook
        at org.apache.poi.xssf.model.StylesTable.createCellStyle(StylesTable.java:830) ~[poi-ooxml-5.0.0.jar!/:5.0.0]
        at org.apache.poi.xssf.usermodel.XSSFWorkbook.createCellStyle(XSSFWorkbook.java:744) ~[poi-ooxml-5.0.0.jar!/:5.0.0]
        at org.apache.poi.xssf.streaming.SXSSFWorkbook.createCellStyle(SXSSFWorkbook.java:895) ~[poi-ooxml-5.0.0.jar!/:5.0.0]
        at com.frond.tmc.utils.excel.ExportExcelMoreSheet.createStyles(ExportExcelMoreSheet.java:177) ~[classes!/:0.1]
        at com.frond.tmc.utils.excel.ExportExcelMoreSheet.<init>(ExportExcelMoreSheet.java:91) ~[classes!/:0.1]
        at com.frond.tmc.controller.settlement.CustomerBillController.exportTrainCustomerBill(CustomerBillController.java:616) ~[classes!/:0.1]
        at com.frond.tmc.controller.settlement.CustomerBillController.downCustomerBill(CustomerBillController.java:467) [classes!/:0.1]
        at com.frond.tmc.controller.settlement.CustomerBillController$$FastClassBySpringCGLIB$$e1fbfa34.invoke(<generated>) [classes!/:0.1]
        at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) [spring-core-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
        at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746) [spring-aop-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) [spring-aop-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
        at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:56) [spring-aop-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185) [spring-aop-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
        at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:55) [spring-aop-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185) [spring-aop-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
        at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) [spring-aop-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185) [spring-aop-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
        at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(Cglib
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值