Quantcast
Channel: BIRT Exchange Forum Feed
Viewing all articles
Browse latest Browse all 542

JVM crashes when generating PDF file

$
0
0
Helo all...

I'm getting an error when generating a PDG using BIRT Framework.

The error happens in Java JVM. The log I'm getting:

 #
    # 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
    #


The code I'm using to generate the PDF is as follows:

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();


Thank you all. Regards


Viewing all articles
Browse latest Browse all 542

Trending Articles