My report are showing up properly (with expected data) in the default CrystalReportViewer.jsp but I'm still getting this exception. I've read both the cr_xi_r2_jrc_deployment.pdf and the html developer guide that came with the installation to make sure I have all the necessary jar files. Any idea?
This is the exception print out from my log file.
ERROR - JRCAgent1 received a request that cannot be handled by the JRC
ERROR - JRCAgent1 detected an exception: Currently not implemented in the Java Reporting Component
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.y.a(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.r.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.DataDefController.l(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.DataDefController.for(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ag.onDataSourceChanged(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.DatabaseController.setDataSource(Unknown Source)
at com.crystaldecisions.reports.sdk.DatabaseController.setDataSource(Unknown Source)
This is my code:
DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
java.sql.Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@someIp:somePort:someDb", "someUsr", "somePw");
Statement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
String query = "SELECT * FROM someTable";
ResultSet rs = stmt.executeQuery(query);
String tableAlias = oReportClientDocument.getDatabaseController().getDatabase().getTables().getTable(0).getAlias();
oReportClientDocument.getDatabaseController().setDataSource(rs, tableAlias , tableAlias);