1 //在用jxl读入excel时,一直报如下错误: 2 Warning: Cannot read drop down range Unrecognized token 43 3 Exception in thread "main" java.lang.NullPointerExceptionat jxl.biff.DataValiditySettingsRecord.getFirstColumn(DataValiditySettingsRecord.java:237)at jxl.read.biff.SheetReader.read(SheetReader.java:1016)at jxl.read.biff.SheetImpl.readSheet(SheetImpl.java:686)at jxl.read.biff.SheetImpl.getRows(SheetImpl.java:441)at excel.ExcelUtils.readExcel(ExcelUtils.java:48)at excel.ExcelUtils.main(ExcelUtils.java:220) 4 //去掉excel的数据有效性验证就可以了,如下所示代码: 5 //构造Workbook(工作薄)对象 6 File file =new File(jcsjdrModel.getJcsjfilePath()); 7 WorkbookSettings ws = new WorkbookSettings(); 8 ws.setCellValidationDisabled(true); 9 wb=Workbook.getWorkbook(file,ws);