POI Invalid column index (-5).Allowable column range for EXCEL2007 is (0..16383) or (‘A‘..‘XFD‘)问题解决
问题描述:
java.lang.IllegalArgumentException: Invalid column index (-5). Allowable column range for EXCEL2007 is (0..16383) or ('A'..'XFD')
问题分析:
1、使用row.getCell()方法传参时,参数为负数,不在规定的0-16383范围。
public static Cell getCell(Row row, int index){return row.getCell(index);}
解决办法:
使用该方法之前判断参数是否<0,参数<0时返回null,否则返回Cell对象。
public static Cell getCell(Row row, int index) {if (index < 0) {return null;}return row.getCell(index);}
POI Invalid column index (-5).Allowable column range for EXCEL2007 is (0..16383) or (‘A‘..‘XFD‘)问题解决相关推荐
- java.lang.IllegalArgumentException: Invalid column index (256). Allowable column range for BIFF8 is
今天 用poi 做表格导出的时候 报错了 java.lang.IllegalArgumentException: Invalid column index (256). Allowable colum ...
- EasyExcel导出xlsx报错 Invalid column index (256). Allowable column range for BIFF8
工作中遇到导出xlsx格式的excel文件,有600多列.根据报错提示只能支持256列搜索到的原因及解决方案如下 原因:HSSFWorkbook类只能生成Excel最多256列数据 HSSFWorkb ...
- Invalid column index (256). Allowable column range for BIFF8 is (0..255) or (‘A‘..‘IV‘)异常,处理方法记录
问题出现原因 HSSFWorkbook对于单元格提供下拉选项的个数限制了255长度问题,这个时候可以使用XSSFWorkbook并把候选项以列显示可以解决了 解决代码 //导出execelpublic ...
- 解决java.lang.IllegalArgumentException: Invalid column index (256). Allowable column range for BIFF8
在我们使用的jar包 <dependency> <groupId>org.jeecgframework</groupId> ...
- 成功解决ValueError: column index (256) not an int in range(256)
成功解决ValueError: column index (256) not an int in range(256) 目录 解决问题 解决思路 解决方法 解决问题 ValueError: colum ...
- android 输入模糊匹配_Android 模糊搜索rawquery bind or column index out of range:
今天使用了android里面的sqlite的模糊查询出错了: android.database.sqlite.SQLiteException: bind or column index out of ...
- Spring Boot:Exception parsing document: template=index, line 7 - column 3
最近这段时间在使用Spring Boot工程中访问静态html页面, 文件目录, -src/main/resources -templates -index.html -static -js -css ...
- GGS ERROR 160 Bad column index
最近由于一个数据库正在升级"改造",部分表结构做了一些调整,以致GoldenGate进程出现了ABENDED状态,下面分享一个因GoldenGate源端表结构发生变化后,引起Gol ...
- Debezium报错处理系列十一:Data row is smaller than a column index, internal schema representation is probabl
Debezium报错处理系列十一:Data row is smaller than a column index, internal schema representation is probably ...
- R语言使用多个数据类型不同的向量数据创建一个dataframe数据对象、使用[]操作符和列索引数值访问dataframe指定数据列的数据(column index)
R语言使用多个数据类型不同的向量数据创建一个dataframe数据对象.使用[]操作符和列索引数值访问dataframe指定数据列的数据(column index) 目录 R语言使用多个数据类型不同的 ...
最新文章
- js-----第四篇
- Java垃圾回收机制(Garbage Collection)
- Python函数——.strip()
- Linux安全技术和防火墙介绍
- 赫夫曼编码长度计算问题?
- 7-6 顺序存储的二叉树的最近的公共祖先问题 (10 分)
- 2017.10.10 杀人游戏 思考记录
- Xshell 登录 AWS CentOS 出现“所选择的用户秘钥未在远程主机上注册“,最终解决办法!...
- java透明度_纯度与参考透明度
- 4、根据前序和中序,重建二叉树
- 「leetcode」701. 二叉搜索树中的插入操作:【递归法】【迭代法】详解
- rabbitmq高可用集群搭建踩坑
- 企业财务报表分析【4】
- 用hadoop计算PI值
- softer nms论文阅读Bounding Box Regression with Uncertainty for Accurate Object Detection
- 开天机型系统镜像及软件资源网盘链接
- 如何将多台物理机整合成一台
- java jsonfield_FastJson 使用@JSONField注解和@JSONCreator指定构造方法
- 给计算机专业大学生的忠告
- 尚医通项目仿写部分技术点总结