老是报这个错误,有大神知道怎么解决吗??
用普元eos做的,jsp页面是这样的
<%@page import="com.gotop.cmms.dataAnalyse.ExportTable"%>
<%@ page contentType="application/vnd.ms-excel"  pageEncoding="UTF-8"%>
<%@page import="java.util.HashMap"%>
<%@page import="java.lang.String"%>
<%
HashMap paraMap = (HashMap)request.getAttribute("object");
HashMap[] columnsMap = (HashMap[])request.getAttribute("columns");
String[] codesMap = (String[])request.getAttribute("codes");
HashMap[] resultsMap = (HashMap[])request.getAttribute("results");
//String tablename = (String)request.getAttribute("TABLENAME");
String savenamme = "aaaa.xls";
response.reset();
response.setContentType("application/vnd.ms-excel;charset=UTF-8");//定义输出类型
response.setHeader("Content-Disposition","attachment;filename="+new String(savenamme.getBytes("GBK"), "iso8859-1")+"");//指定下载的文件名
ExportTable exp = new ExportTable();
exp.getExpBetween(paraMap,columnsMap,codesMap,resultsMap,response.getOutputStream());
out.clear();
out = pageContext.pushBody();
%>调用的java方法是这样的:/*******************************************************************************
 * $Header$
 * $Revision$
 * $Date$
 *
 *==============================================================================
 *
 * Copyright (c) 2001-2006 Primeton Technologies, Ltd.
 * All rights reserved.
 * 
 * Created on 2015-8-14
 *******************************************************************************/
package com.gotop.cmms.dataAnalyse;import java.io.IOException;
import java.io.OutputStream;
import java.sql.SQLException;
import java.text.ParseException;
import java.util.HashMap;import org.apache.poi.hssf.usermodel.HSSFCellStyle;
import org.apache.poi.hssf.usermodel.HSSFFont;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.hssf.util.Region;
import com.eos.foundation.database.DatabaseExt;
import com.gotop.cmms.dataAnalyse.ExportUtil;public class ExportTable {
public void getExpBetween(HashMap<String, String> param,HashMap[] columnsMap,String[] codesMap,HashMap[] resultsMap,OutputStream output) 
throws ParseException, IOException, SQLException{
//String tablename = param.get("TABLENAME").toString();
//创建工作薄
HSSFWorkbook wb=new HSSFWorkbook();
HSSFSheet sheet=null;
sheet=wb.createSheet("导出表");
sheet.autoSizeColumn(1);
//设置表头字体
HSSFFont font=ExportUtil.font(wb, (short)11, "宋体", true);
//设置数据字体
HSSFFont fontData=ExportUtil.font(wb, (short)11, "宋体", false);
//设置题目字体
HSSFFont fontTitle=ExportUtil.font(wb, (short)16, "宋体", true);
//设置表头单元格样式
HSSFCellStyle cellStyle=ExportUtil.cellStyle(wb, font);
//设置数据单元格样式
HSSFCellStyle cellStyleData=ExportUtil.cellStyle(wb, fontData);
//设置题目样式
HSSFCellStyle cellStyleTitle=ExportUtil.cellStyle(wb, fontTitle);
//第一行--题目
HSSFRow row=sheet.createRow(0);
ExportUtil.addCell(row,0,cellStyleTitle,"导出表");
for(int i=1;i<columnsMap.length;i++){
ExportUtil.addCell(row,i,cellStyleTitle,"");
}
Region re=new Region(0,(short)0,0,(short)(columnsMap.length-1));
sheet.addMergedRegion(re);
row.setHeight((short)800);
//表头
HSSFRow row1=sheet.createRow(1);
//columns//中文字段
for(int i=0;i<=columnsMap.length;i++){
HashMap columnname = columnsMap[i];
ExportUtil.addCell(row1,i,cellStyle,columnname.get("COLUMNNAME").toString());
sheet.setColumnWidth(i, 4000);
}

// 添加数据
int a = 2;
Object[] list=null;
String sql="com.gotop.cmms.dataAnalyse.searchCondition.queryResults";
list=DatabaseExt.queryByNamedSql("default", sql, param);
String[] info ;
if(list!=null && list.length>0){
for(int i=0;i<list.length;i++){
HSSFRow rowData=sheet.createRow(a+i);

//resultsMap[j]
info=addArray((HashMap)list[i],codesMap);
ExportUtil.addCellDate(info, rowData, cellStyleData);
rowData.setHeight((short)500);
}
}

try {
output.flush();
wb.write(output);
output.close();
} catch (IOException e) {
e.printStackTrace();
}finally{
if(output!=null){
output.close();
}
}
}
private String[] addArray(HashMap map,String[] codesMap){
//String number=String.valueOf(i+1);//序号
String[] exp = new String[]{} ;
String[] date = new String[]{};
for(int j=0;j<codesMap.length;j++){
exp[j]=(map.get(codesMap[j])).toString();
date[j]=(map.get(codesMap[j]))==null?"":(map.get(codesMap[j])).toString();
}
return date;


}
}