Skip to content

Java Heap Space Error and Unexpected Keyword Argument in PyReportJasper #167

@theywc

Description

@theywc

Below are the methods I have tried and the error messages. Please assist in providing a solution or an example.

Describe the bug:

  1. Error: [Exception] Error fill report: Error fill internal: java.lang.OutOfMemoryError: Java heap space
  2. According to this issue, I've set the configuration settings as follows:
    pyreportjasper = PyReportJasper()
    pyreportjasper.config(
    input_file,
    output_file,
    jvm_maxmem="1024M",
    db_connection=db_connection,
    output_formats=output_formats,
    parameters={
    "start_dt": start_dt,
    "end_dt": end_dt,
    },
    locale='zh_TW',
    )
    pyreportjasper.process_report()
  3. New Error: Exception: config() got an unexpected keyword argument 'jvm_maxmem'

Desktop (please complete the following information):
OS: Linux
Python version: 3.8
Library version: 2.1.4
Java version: 11.0.19
JVM: OpenJDK 64-Bit Server VM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions