Skip to content

Large XML file parsing fails in AoT builds due to JAXP limits #220

@Ostrzyciel

Description

@Ostrzyciel

Kind of a follow-up of #217

I tried converting the taxonomy subgraph of UniProt: https://ftp.uniprot.org/pub/databases/uniprot/current_release/rdf/taxonomy.rdf.xz

By running:

$ jelly-cli rdf to-jelly taxonomy.rdf --debug > taxonomy.jelly

I received:

Jena RDF I/O exception: [line: 7126573, col: 48] JAXP00010003: The length of entity "[xml]" is "100,001" that exceeds the "100,000" limit set by "jdk.xml.maxGeneralEntitySizeLimit".
eu.neverblink.jelly.cli.JenaRiotException: Jena RDF I/O exception: [line: 7126573, col: 48] JAXP00010003: The length of entity "[xml]" is "100,001" that exceeds the "100,000" limit set by "jdk.xml.maxGeneralEntitySizeLimit".
        at eu.neverblink.jelly.cli.JenaRiotException$.apply(Exceptions.scala:22)
        at eu.neverblink.jelly.cli.command.rdf.RdfSerDesCommand.parseFormatArgs(RdfSerDesCommand.scala:69)
        at eu.neverblink.jelly.cli.command.rdf.RdfToJelly$.doRun(RdfToJelly.scala:110)
        at eu.neverblink.jelly.cli.command.rdf.RdfToJelly$.doRun(RdfToJelly.scala:91)
        at eu.neverblink.jelly.cli.JellyCommand.run(JellyCommand.scala:64)
        at eu.neverblink.jelly.cli.JellyCommand.run(JellyCommand.scala:62)
        at caseapp.core.app.CaseApp.main(CaseApp.scala:178)
        at eu.neverblink.jelly.cli.JellyCommand.main(JellyCommand.scala:75)
        at caseapp.core.app.CommandsEntryPoint.main(CommandsEntryPoint.scala:365)
        at eu.neverblink.jelly.cli.App.main(App.scala)
        at java.base@24.0.2/java.lang.invoke.LambdaForm$DMH/sa346b79c.invokeStaticInit(LambdaForm$DMH)

This issue looks similar: eclipse-tycho/tycho#4526

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