Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERDs Using PlantUML for Object groups #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

toddhalfpenny
Copy link
Contributor

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?

@keirbowden
Copy link
Owner

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
    [email protected]
    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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants