Exception when ResultSet is empty [message #1328326] |
Fri, 02 May 2014 12:39  |
Eclipse User |
|
|
|
I am running the BIRT 4.3.2 report engine on an IBM WAS 8.5.5 server.
The reports load fine when there are actually results for the given criteria. I receive the following exception when there are no results:
org.eclipse.birt.data.engine.odaconsumer.ResultSet fetch
SEVERE: Cannot fetch the next data row.
Throwable occurred: org.eclipse.birt.report.data.oda.jdbc.JDBCException: Cannot move down to next row in the result set.
SQL error #1:Invalid operation: result set closed
com.ibm.db2.jcc.c.SqlException: Invalid operation: result set closed
at org.eclipse.birt.report.data.oda.jdbc.ResultSet.next(ResultSet.java:198)
I am aware of this topic:
developer.actuate.com/community/forum/index.php?/topic/25148-exception-is-thrown-when-there-is-no-data-retreived-from-query/
Since my report data source simply defines the JDBC class (com.ibm.db2.jcc.DB2Driver) and JNDI URL, it uses the WAS data source. I did try adding the allowNextOnExhaustedResultSet custom property to the data source as an integer value 1, but this did not fix anything for me. This was stated to only be a work-around anyways.
Is there going to be a fix for this? As suggested by IBM- Modify the application code to avoid calling ResultSet.next if there are no records or no more records. This is in the BIRT data engine code, for ResultSet class.
Are there any more work-arounds in the mean time?
It's probably also worth mentioning that this was working without issue in WAS8 for BIRT 4.2.0
|
|
|
|
|
|
Re: Exception when ResultSet is empty [message #1712025 is a reply to message #1712012] |
Tue, 20 October 2015 16:24  |
Eclipse User |
|
|
|
Unfortunately BIRT 4.5.0 still exhibits the same problem.
I, however, am experiencing this issue even when the Data Set on which my Data Cube is based returns results, not merely when it's empty. Replacing the Cross Tab with a Table avoids the error, as it did for you. I haven't added any aggregations to it, but I suspect it will continue to work fine even if I do so. The biggest hurdle for me is that my Data Cube contains numerous derived measures, which are going to be a project in themselves to duplicate in a Table.
|
|
|
Powered by
FUDForum. Page generated in 0.04289 seconds