Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 325240

Summary: BIRT report using CSV file data source containing text fails according to the text length in CSV file
Product: z_Archived Reporter: Robert Awesso <rawesso>
Component: BIRTAssignee: Birt-Data-inbox <Birt-Data-inbox>
Status: RESOLVED FIXED QA Contact: Xiaoying Gu <bluesoldier>
Severity: normal    
Priority: P3 CC: bluesoldier, jouyang
Version: 2.3.2   
Target Milestone: 2.6.2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
CSV source file
none
Design file none

Description Robert Awesso CLA 2010-09-14 08:46:46 EDT
Considering the attached RPTDESIGN and CSV files, using the BIRT Runtime genReport to run the design will result in the following error message:


Sep 14, 2010 12:11:33 PM org.eclipse.birt.report.engine.api.impl.RunAndRenderTask doRun
SEVERE: Error happened while running the report.
java.lang.StackOverflowError
	at sun.nio.cs.SingleByteDecoder.decodeArrayLoop(Unknown Source)
	at sun.nio.cs.SingleByteDecoder.decodeLoop(Unknown Source)
	at java.nio.charset.CharsetDecoder.decode(Unknown Source)
	at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
	at sun.nio.cs.StreamDecoder.read(Unknown Source)
	at java.io.InputStreamReader.read(Unknown Source)
	at java.io.BufferedReader.read1(Unknown Source)
	at java.io.BufferedReader.read(Unknown Source)
	at java.io.Reader.read(Unknown Source)
	at org.eclipse.datatools.connectivity.oda.flatfile.FlatFileQuery$FlatFileBufferedReader.next(FlatFileQuery.java:1310)
	at org.eclipse.datatools.connectivity.oda.flatfile.FlatFileQuery$FlatFileBufferedReader.moveToEndQuotation(FlatFileQuery.java:1259)
	at org.eclipse.datatools.connectivity.oda.flatfile.FlatFileQuery$FlatFileBufferedReader.moveToEndQuotation(FlatFileQuery.java:1291)
	at org.eclipse.datatools.connectivity.oda.flatfile.FlatFileQuery$FlatFileBufferedReader.moveToEndQuotation(FlatFileQuery.java:1291)


Shortening the text in the source file will let the report run fine.

I found no documentation explaining if this is the expected behavior. If it’s the expected behavior, a more understandable error message explaining why the report failed would be better.
Comment 1 Robert Awesso CLA 2010-09-14 08:48:24 EDT
Created attachment 178820 [details]
CSV source file

adding attachment
Comment 2 Robert Awesso CLA 2010-09-14 08:49:22 EDT
Created attachment 178821 [details]
Design file

adding attachment
Comment 3 Xiaoying Gu CLA 2010-09-16 02:16:15 EDT
Hi Robert,

I can not reproduce this issue in 2.6.0 release build.
Could you please have a re-try with the 2.6.0 release?
Comment 4 Robert Awesso CLA 2010-09-16 06:22:24 EDT
Hi Xiaoying,

I re-tested using BIRT runtime 2.6.0 and I unfortunately still see the issue. Note that I generate the report in command line using C:\birt-runtime-2_6_0\ReportEngine\genReport Please let me know if I知 missing something.

Thanks,


(In reply to comment #3)
> Hi Robert,
> I can not reproduce this issue in 2.6.0 release build.
> Could you please have a re-try with the 2.6.0 release?
Comment 5 Xiaoying Gu CLA 2010-09-17 00:57:34 EDT
I can reproduce this issue with ReportEngine 261. It works in all-in-one designer.
Comment 6 Xiaoying Gu CLA 2011-02-17 02:22:33 EST
This issue can not be reproduced in latest 2.6.2 release candidate: http://download.eclipse.org/birt/downloads/build.php?build=S-R1-2_6_2-S20110215-201102151647

Set as fixed.