JXL读取Excel数据报错:ArrayIndexOutOfBoundsException,在线等,急。。。
Exceptioninthread"main"java.lang.ArrayIndexOutOfBoundsException:0atjxl.read.biff.Nine...
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
at jxl.read.biff.NineteenFourRecord.<init>(Unknown Source)
at jxl.read.biff.WorkbookParser.parse(Unknown Source)
at jxl.Workbook.getWorkbook(Unknown Source)
at jxl.Workbook.getWorkbook(Unknown Source)
at com.ufgov.shbo.ysfx.client.ui.rule.Test.main(Test.java:14)
程序源码:
public class Test {
public static void main(String[] args) {
try {
File file = new File(
"C:/部门预算-B表-汇总全市级2012.xls");
Workbook wb = Workbook.getWorkbook(file);
} catch (BiffException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
} 展开
at jxl.read.biff.NineteenFourRecord.<init>(Unknown Source)
at jxl.read.biff.WorkbookParser.parse(Unknown Source)
at jxl.Workbook.getWorkbook(Unknown Source)
at jxl.Workbook.getWorkbook(Unknown Source)
at com.ufgov.shbo.ysfx.client.ui.rule.Test.main(Test.java:14)
程序源码:
public class Test {
public static void main(String[] args) {
try {
File file = new File(
"C:/部门预算-B表-汇总全市级2012.xls");
Workbook wb = Workbook.getWorkbook(file);
} catch (BiffException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询