This is regarding Crystal Report not working in case of Crystal Report XI and SQL Server 2005 on Java platform.
In our project we have used Crystal Report Java API to process reports. We support DB2,Oracle and SQL Server database. Report in which we are facing problem is having main report and one sub report. Both main and sub report has separate SQL queries which are processed programmatically to generate resultSet and using Crystal Java API we pass this result set to generate report.
Same report works fine(without any code change) with Crystal Report XI and Oracle/DB2 configuration. Also Same report works on Crystal Report X and IX with SQL Server 2005.
Following is the code which is throwing exception:
clientDoc.getSubreportController().setDataSource(subReportName, resultSet,subReportTableName,IConstants.OLD_REPORT_NAME);
Follwoing Exception is thrown by setDataSource():
2009-02-26 03:42:33,196 INFO [STDOUT] com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException:
No error.---- Error code:-2147483648 Error code name:failed
Following is error log information in Crystalras log:
ErrorLog 2010 1 4 23:51:13.773 12924 21424 (\servers\ras\dtsagent\cdtsagent.cpp:3113): CDTSagent::doOneRequest reqId=202: CSResultException thrown. ErrorSrc:"CRPE" FileName:"\servers\ras\dtsagent\reporthandler.cpp" LineNum:16398 ErrorCode:0 ErrorMsg:"