You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement basic ERDs for Object groups using PlantUML.
I've used EJS here, and although it's not used for generating markup I think it works well as a generic JS templating engine, and makes use of the existing generator.
I do create an extra object for passing into the generator, mostly because I didn't want to use the values that existed in the other object as they had Markup in (I think it was field.AdditionalInfo), perhaps this could be stripped out and then the markup added elsewhere?
I've cloned your repo and switched to this branch, but I get an exception rather than the expected image:
An error has occured : net.sourceforge.plantuml.vizjs.GraphvizJsRuntimeException: java.util.concurrent.ExecutionException: java.lang.NullPointerException
I understand human emotions, although I do not feel them myself.
Diagram size: 80 lines / 2190 characters.
PlantUML (1.2019.06) cannot parse result from dot/GraphViz.
This version of PlantUML is 388 days old, so you should
consider upgrading from http://plantuml.com/download
Please go to http://plantuml.com/graphviz-dot to check your GraphViz version.
Java Runtime: Java(TM) SE Runtime Environment
JVM: Java HotSpot(TM) 64-Bit Server VM
Java Version: 1.8.0_101-b13
Operating System: Mac OS X
OS Version: 10.15.5
Default Encoding: UTF-8
Language: en
Country: GB
Machine: keirs-mbp.broadband
PLANTUML_LIMIT_SIZE: 4096
Processors: 8
Max Memory: 3,817,865,216
Total Memory: 324,534,272
Free Memory: 238,622,448
Used Memory: 85,911,824
Thread Active Count: 2
This may be caused by :
a bug in PlantUML
a problem in GraphViz
You should send this diagram and this image to plantuml@gmail.com
or
post to http://plantuml.com/qa
to solve this issue.
You can try to turn arround this issue by simplifing your diagram.
net.sourceforge.plantuml.vizjs.GraphvizJsRuntimeException: java.util.concurrent.ExecutionException: java.lang.NullPointerException
net.sourceforge.plantuml.vizjs.GraphvizJs.createFile3(GraphvizJs.java:96)
net.sourceforge.plantuml.svek.DotStringFactory.getSvg(DotStringFactory.java:315)
net.sourceforge.plantuml.svek.GeneralImageBuilder.buildImage(GeneralImageBuilder.java:199)
net.sourceforge.plantuml.svek.CucaDiagramFileMakerSvek.createFileInternal(CucaDiagramFileMakerSvek.java:105)
net.sourceforge.plantuml.svek.CucaDiagramFileMakerSvek.createFile(CucaDiagramFileMakerSvek.java:71)
net.sourceforge.plantuml.cucadiagram.CucaDiagram.exportDiagramInternal(CucaDiagram.java:379)
net.sourceforge.plantuml.classdiagram.ClassDiagram.exportDiagramInternal(ClassDiagram.java:194)
net.sourceforge.plantuml.UmlDiagram.exportDiagramNow(UmlDiagram.java:202)
net.sourceforge.plantuml.AbstractPSystem.exportDiagram(AbstractPSystem.java:135)
net.sourceforge.plantuml.SourceStringReader.outputImage(SourceStringReader.java:154)
net.sourceforge.plantuml.Pipe.managePipe(Pipe.java:110)
net.sourceforge.plantuml.Run.managePipe(Run.java:359)
net.sourceforge.plantuml.Run.main(Run.java:166)
Caused by java.util.concurrent.ExecutionException: java.lang.NullPointerException
java.util.concurrent.FutureTask.report(FutureTask.java:122)
java.util.concurrent.FutureTask.get(FutureTask.java:192)
net.sourceforge.plantuml.vizjs.GraphvizJs.createFile3(GraphvizJs.java:91)
net.sourceforge.plantuml.svek.DotStringFactory.getSvg(DotStringFactory.java:315)
net.sourceforge.plantuml.svek.GeneralImageBuilder.buildImage(GeneralImageBuilder.java:199)
net.sourceforge.plantuml.svek.CucaDiagramFileMakerSvek.createFileInternal(CucaDiagramFileMakerSvek.java:105)
net.sourceforge.plantuml.svek.CucaDiagramFileMakerSvek.createFile(CucaDiagramFileMakerSvek.java:71)
net.sourceforge.plantuml.cucadiagram.CucaDiagram.exportDiagramInternal(CucaDiagram.java:379)
net.sourceforge.plantuml.classdiagram.ClassDiagram.exportDiagramInternal(ClassDiagram.java:194)
net.sourceforge.plantuml.UmlDiagram.exportDiagramNow(UmlDiagram.java:202)
net.sourceforge.plantuml.AbstractPSystem.exportDiagram(AbstractPSystem.java:135)
net.sourceforge.plantuml.SourceStringReader.outputImage(SourceStringReader.java:154)
net.sourceforge.plantuml.Pipe.managePipe(Pipe.java:110)
net.sourceforge.plantuml.Run.managePipe(Run.java:359)
net.sourceforge.plantuml.Run.main(Run.java:166)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implement basic ERDs for Object groups using PlantUML.
I've used EJS here, and although it's not used for generating markup I think it works well as a generic JS templating engine, and makes use of the existing generator.
I do create an extra object for passing into the generator, mostly because I didn't want to use the values that existed in the other object as they had Markup in (I think it was
field.AdditionalInfo), perhaps this could be stripped out and then the markup added elsewhere?