后台导出报表报错

参考示例实现导出api(http://help.finereport.com/doc-view-738.html),报错(猜想是数据库连接的问题),导出示例报表和我自己做的报表都出这个错,应该是哪个地方设置的问题,请大神指导,
部分代码如下:
FileOutputStream outputStream;  
outputStream = new FileOutputStream(new File("d:\\ExcelExport.xls"));  
ExcelExporter ExcelExport = new ExcelExporter();  
ExcelExport.export(outputStream, workbook.execute(parameterMap,new WriteActor()));     这句话报错
错误如下:
com.fr.third.alibaba.druid.pool.DruidDataSource : {dataSource-2} init error
java.sql.SQLException: oracle.jdbc.driver.OracleDriver
at com.fr.third.alibaba.druid.util.JdbcUtils.createDriver(JdbcUtils.java:570)
at com.fr.third.alibaba.druid.pool.DruidDataSource.init(DruidDataSource.java:694)
at com.fr.third.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1057)
at com.fr.third.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1053)
at com.fr.third.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:101)
at com.fr.data.pool.MemoryConnection.create(Unknown Source)
at com.fr.data.impl.JDBCDatabaseConnection.createConnection(Unknown Source)
at com.fr.data.impl.NameDatabaseConnection.createConnection(Unknown Source)
at com.fr.data.impl.AbstractDBDataModel.initConnectionAndResultAndCheckInColumns(Unknown Source)
at com.fr.data.impl.AbstractDBDataModel.getColumnCount(Unknown Source)
at com.fr.data.impl.SharedDBDataModel.getColumnCount(Unknown Source)
at com.fr.base.SynchronizedLiveDataModelUtils.recordDataModel(Unknown Source)
at com.fr.base.SynchronizedLiveDataModelUtils.getLiveDataModel(Unknown Source)
at com.fr.report.core.sheet.SheetExecutor.__s_name2ResultSet(Unknown Source)
at com.fr.report.core.A.J.A(Unknown Source)
at com.fr.report.core.A.J.dealWithBEDSColumn(Unknown Source)
at com.fr.report.core.A.n.cc_ce_array(Unknown Source)
at com.fr.report.core.A.J.A(Unknown Source)
at com.fr.report.core.A.J.A(Unknown Source)



编辑于 2017-10-27 13:02  
FineReportPhoebe 发布于 2017-10-27 13:02
悬赏:2 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共3回答
最佳回答
0
w帆发布于2017-10-27 13:02(编辑于 2023-9-6 09:34)
555
最佳回答
0
Phoebe发布于2017-10-27 13:02(编辑于 2023-9-6 09:34)
555
最佳回答
0
Phoebe发布于2017-10-27 14:05(编辑于 2023-9-6 09:34)
555
  • 0关注人数
  • 683浏览人数
  • 最后回答于:2017-10-27 17:20
    活动推荐 更多
    热门课程 更多
    返回顶部