json fails to render in the current jetty docker image

0 votes
asked Dec 4, 2020 in Bug by Plywell
the code from the json example on the homepage fails to render in the jetty-docker image

Image Version: plantuml/plantuml-server@sha256:78041b03a1b80380161aa3cc3d072f76f5235de82a9a927f6829636b06ec9013

@startjson
{
  "firstName": "John",
  "lastName": "Smith",
  "isAlive": "true",
  "age": "27",
  "address": {
    "streetAddress": "21 2nd Street",
    "city": "New York",
    "state": "NY",
    "postalCode": "10021-3100"
  },
  "phoneNumbers": [
    {
      "type": "home",
      "number": "212 555-1234"
    },
    {
      "type": "office",
      "number": "646 555-4567"
    }
  ]
}
@endjson
commented Dec 4, 2020 by Serge Wenger Work (15,620 points)

What is the version with:

@startuml
version
@enduml

commented Dec 9, 2020 by Plywell
     PlantUML version 1.2020.22 (Sun Dec 06 09:36:27 UTC 2020) 
     (GPL source distribution)                                 
                                                               
     Dot version: dot - graphviz version 2.40.1 (20161225.0304)
     Installation seems OK. File generation OK                 
                                                               
     Java Runtime: OpenJDK Runtime Environment                 
     JVM: OpenJDK 64-Bit Server VM                             
     Default Encoding: UTF-8                                   
     Language: en                                              
     Country: null                                             
                                                               
     PLANTUML_LIMIT_SIZE: 4096                                 
commented Dec 9, 2020 by Plywell
java.lang.ClassFormatError: Illegal local variable table length 122 in method 'void gen.lib.dotgen.cluster__c.map_path(h.ST_Agnode_s, h.ST_Agnode_s, h.ST_Agedge_s, h.ST_Agedge_s, int)'
	at gen.lib.dotgen.class1__c.class1_(class1__c.java:156)
	at gen.lib.dotgen.rank__c.dot1_rank(rank__c.java:681)

...
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:773)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:905)
	at java.base/java.lang.Thread.run(Unknown Source)


An error has occured : java.lang.ClassFormatError: Illegal local variable table length 122 in method 'void gen.lib.dotgen.cluster__c.map_path(h.ST_Agnode_s, h.ST_Agnode_s, h.ST_Agedge_s, h.ST_Agedge_s, int)'
A robot may not injure a human being or, through inaction, allow a human being to come to harm.

1 Answer

0 votes
answered Dec 9, 2020 by plantuml (294,960 points)
This sounds like an very old issue (example https://youtrack.jetbrains.com/issue/TW-37999 ) linked to JDK 1.8

Currently, we are using JDK 1.8 to build, so that it works on very old configurations.

We are going to upgrade our internal build server to a newer version and to publish a new release.

Sorry about that!
commented Jan 4, 2021 by Plywell
Is there an ETA or an according issue for tracking this?
commented Jan 4, 2021 by plantuml (294,960 points)
Well, this is already fixed in V1.2020.26.

Tell us if it's not working for you !
commented Jan 5, 2021 by Plywell
It's working great! Thank you for your work and sorry for the nagging.
...