Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
DataExtractionOption#setOutputFile fails
ber
<p>BIRT 3.7.2 or 4.3.0</p><p> </p><p><strong>DataExtractionTask#extract</strong> always fails on <strong>DataExtractionOption#setOutputFile</strong>.</p><p> </p><div><em>Exception in thread "main" org.eclipse.birt.core.exception.BirtException: The OutputStream option is required and can't be null.</em></div><div><em>at org.eclipse.birt.report.engine.dataextraction.impl.CommonDataExtractionImpl.initialize(CommonDataExtractionImpl.java:69)</em></div><div><em>at org.eclipse.birt.report.engine.dataextraction.csv.CSVDataExtractionImpl.initialize(CSVDataExtractionImpl.java:58)</em></div><div><em>at org.eclipse.birt.report.engine.api.impl.DataExtractionTaskV1.extract(DataExtractionTaskV1.java:1301)</em></div><div><em>at org.eclipse.birt.report.engine.api.impl.DataExtractionTask.extract(DataExtractionTask.java:283)</em></div><div> </div><div>It only works on <strong>DataExtractionOption#setOutputStream</strong> instead.</div>
Find more posts tagged with
Comments
mwilliams
<p>Can you create a simple example I can run that shows what you've done? Thanks!</p>
ber
<p>Thanks for your reply.</p><p> </p><p>I checked the source <strong>CommonDataExtractionImpl.java</strong> below,</p><p> </p><p><em>67 if ( options.getOutputStream( ) == null )</em></p><p><em>68 {</em></p><p><em>69 throw new BirtException( PLUGIN_ID,</em></p><p><em>70 Messages.getString( "exception.dataextraction.options.outputstream_required" ), null ); //$NON-NLS-1$</em></p><p><em>71 }</em></p><p> </p><p>It seems that BIRT doesn't implement #setOutputFile but merely #setOutputStream on data extraction. Any opinions?</p><p> </p><p> </p>
mwilliams
<p>You might take a look at the example XML data extraction plugin used in the BIRT books. It'll show you how it writes to an output document.:</p><p> </p><p><a data-ipb='nomediaparse' href='
http://www.actuate.com/products/resources/?articleid=22889'>http://www.actuate.com/products/resources/?articleid=22889</a></p>
;