Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Developing Analytics Applications
JVM crashes when generating PDF file
Migrateduser
Helo all...<br />
<br />
I'm getting an error when generating a PDG using BIRT Framework.<br />
<br />
The error happens in Java JVM. The log I'm getting:<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_IN_PAGE_ERROR (0xc0000006) at pc=0x0190f0be, pid=5848, tid=2392
#
# JRE version: 7.0_09-b05
# Java VM: Java HotSpot(TM) Client VM (23.5-b02 mixed mode, sharing windows-x86 )
**# Problematic frame:
# J java.nio.MappedByteBuffer.load()Ljava/nio/MappedByteBuffer;**
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# C:\Users\luis\Desktop\teste\birt\hs_err_pid5848.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
#</pre>
<br />
The code I'm using to generate the PDF is as follows:<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>EngineConfig config = new EngineConfig();
config.setEngineHome("C:\\BIRT\\birt-runtime-4_2_2\\ReportEngine");
config.setLogConfig("C:/BIRT/logs", Level.FINE);
Platform.startup(config);
final IReportEngineFactory FACTORY = (IReportEngineFactory) Platform.createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY);
IReportEngine engine = FACTORY.createReportEngine(config);
engine.changeLogLevel(Level.WARNING);
// Open the report design
final IReportRunnable DESIGN = engine.openReportDesign("C:\\birt\\src\\report.rptdesign");
final IRunAndRenderTask TASK = engine.createRunAndRenderTask(DESIGN);
TASK.setParameterValues(PARAMETERS);
TASK.validateParameters();
final PDFRenderOption HTML_OPTIONS = new PDFRenderOption();
HTML_OPTIONS.setOutputFileName("C:/birt/output.pdf");
HTML_OPTIONS.setOutputFormat("pdf");
TASK.setRenderOption(HTML_OPTIONS);
TASK.run();
TASK.close();
engine.shutdown();
Platform.shutdown();</pre>
<br />
Thank you all. Regards
Find more posts tagged with
Comments
There are no comments yet