stackoverflowerror for json file

0 votes
asked Sep 13, 2021 in Bug by Bruce
Hello,

I downloaded the json file from here: https://www.catnmsplan.com/sites/default/files/2021-09/9.7.21-IM-4.0.0.json

I added the beginning and end markers for @startjson and @endjson.

Then I run the command line java -jar plantuml.jar CAT.json

and it processes for a few minutes and then gives me the following:

Exception in thread "main" java.lang.StackOverflowError
    at smetana.core.CArrayOfStar.get_(CArrayOfStar.java:82)
    at gen.lib.common.ns__c.dfs_enter_inedge(ns__c.java:370)
    at gen.lib.common.ns__c.dfs_enter_inedge(ns__c.java:384)
    at gen.lib.common.ns__c.dfs_enter_inedge(ns__c.java:384)
    at gen.lib.common.ns__c.dfs_enter_inedge(ns__c.java:384)
    at gen.lib.common.ns__c.dfs_enter_inedge(ns__c.java:384)
    at gen.lib.common.ns__c.dfs_enter_inedge(ns__c.java:384)
    at gen.lib.common.ns__c.dfs_enter_inedge(ns__c.java:384)

Are there any workarounds on this?

Regards,

Bruce

1 Answer

0 votes
answered Oct 7, 2021 by chris (2,540 points)
edited Oct 7, 2021 by chris

That's 20,000 lines of json.... what sort of meaning are you trying to extract?

For example, here is a subset of your file, just 700 lines and already unreadable:

Current limit is 9999

As usual, credit to The-Lu

...