| Summary: | PreparedQuery required from IResultIterator | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Heng Li <liheeng> | ||||||
| Component: | BIRT | Assignee: | Wei Wang <wwang> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | enhancement | ||||||||
| Priority: | P3 | CC: | dmichonneau, lshen, lzhu, qaobsolete, wyan, xwang | ||||||
| Version: | 2.3.0 | ||||||||
| Target Milestone: | 2.3.0 M5 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 208409, 213887 | ||||||||
| Attachments: |
|
||||||||
|
Description
Heng Li
Fixed. Created attachment 87003 [details]
Sample report file
Looks as if in M5 the bug appears again. Reopen it. Created attachment 87005 [details]
data for sample report
The issue still exists, please use attached sample report and data to reproduce. Thanks. This is a new problem. The NPE is thrown when a chart is sharing the result set data of a table. The problem related to the engine's approach to access IQueryResults instance for report item sharing. In current engine implementation, the IQueryResults instance, when in report item sharing, is acquired using api DataEngine.getQueryResults(String id). By this means no IPreparedQuery instance is created so that when user call api IQueryResults.getPreparedQuery() a null value will be return. If engine acquire result iterator by following DataEngine.prepare()-->PreparedQuery.execute() way (exactly same as how engine execute a normal query), then a PrepareQuery will be generated for QueryResults that from Report item sharing so that solve the problem. Reassign the bug to engine for the fix. Fix bug as Comment #6. set FIXED. Verified in build (2.3.0.v20080204-0800). |