Error while generating the documentation #1468
Replies: 5 comments 6 replies
-
Hi, I'm guessing your trying to document a big database. The first error I'm a bit unsure about, but it might be related to the second one. The second one is a known issue since it's a big database you might need to increase the stack size in java, #462 The first one could be encoding, but I need to see if I can spot the places in our code where we create the surrounding markup so that I can reduce the list of suspects. But as a workaround for the second exception increase stack size as mentioned in the issue, or switch to graphviz instead of vizjs, unfortunately that comes with its own caveats and edge cases. If docker images is possible that is your safest bet. |
Beta Was this translation helpful? Give feedback.
-
Increasing the stack size fixed the errors. But I can see all these errors INFO - Analyzing 'wb' |
Beta Was this translation helpful? Give feedback.
-
And I can see duplicate referencing in case of views. And one more issue is that, let us say this view agency_data_vw gets the data from the table agency.base_info, Is this a known error? or am I missing something here? |
Beta Was this translation helpful? Give feedback.
-
Is it mentioned any where in the documentation about what are minimum database permissions required for the user running schemaspy? And do I have to create a SchemaMeta file for every schema manually, if I want to store comments there? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I am using the SchemaSpy with the SQL Server and I happen to have these errors while generating the documentation.
Any idea why this is happening?
This happened the first time.
Wrote relationship details of 3 tables/views to directory 'Octopus_Documentation' in 2599 seconds.
View the results by opening Octopus_Documentation\index.html
INFO - Wrote table details in 1 seconds
INFO - Wrote relationship details of 3 tables/views to directory 'Octopus_Documentation\spg_stg' in 2599 seconds.
INFO - View the results by opening Octopus_Documentation\spg_stg\index.html
INFO - Analyzing 'stg'
INFO - Starting schema analysis
INFO - Connected to Microsoft SQL Server - 16.00.1000
INFO - Gathering schema details
Gathering schema details............................................................................................................................................................................................................................................................................................................................................................................................(7sec)
Connecting relationships............................................................................................................................................................................................................................................................................................................................................................................................(2sec)
Writing/graphing summary.INFO - Gathered schema details in 2 seconds
INFO - Writing/graphing summary
...Exception in thread "main" java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:51)
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:52)
Caused by: org.schemaspy.output.html.HtmlException: Failed to generate Orphan diagram
at org.schemaspy.output.html.mustache.diagrams.OrphanDiagram.writeDiagram(OrphanDiagram.java:80)
at org.schemaspy.output.html.mustache.diagrams.OrphanDiagram.html(OrphanDiagram.java:56)
at org.schemaspy.view.HtmlOrphansPage.createPageData(HtmlOrphansPage.java:68)
at org.schemaspy.view.HtmlOrphansPage.write(HtmlOrphansPage.java:57)
at org.schemaspy.SchemaAnalyzer.generateHtmlDoc(SchemaAnalyzer.java:424)
at org.schemaspy.SchemaAnalyzer.analyze(SchemaAnalyzer.java:289)
at org.schemaspy.SchemaAnalyzer.analyzeMultipleSchemas(SchemaAnalyzer.java:186)
at org.schemaspy.SchemaAnalyzer.analyze(SchemaAnalyzer.java:127)
at org.schemaspy.cli.SchemaSpyRunner.runAnalyzer(SchemaSpyRunner.java:109)
at org.schemaspy.cli.SchemaSpyRunner.run(SchemaSpyRunner.java:98)
at org.schemaspy.Main.main(Main.java:55)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
... 5 more
Caused by: org.schemaspy.output.diagram.RenderException: javax.script.ScriptException: Error: renderer for " ALIGN="LEFT"><TD ??"LEFT" FIXEDSIZE="TRUE" WIDTH= is unavailable
in at line number 94 at column number 4
at org.schemaspy.output.diagram.vizjs.VizJSDot.render(VizJSDot.java:74)
at org.schemaspy.output.html.mustache.diagrams.OrphanDiagram.writeDiagram(OrphanDiagram.java:73)
... 16 more
And this happened the second time
Wrote relationship details of 14 tables/views to directory 'Octopus_Documentation_20Schemas' in 905 seconds.
View the results by opening Octopus_Documentation_20Schemas\index.html
INFO - Wrote table details in 15 seconds
INFO - Wrote relationship details of 14 tables/views to directory 'Octopus_Documentation_20Schemas\census' in 905 seconds.
INFO - View the results by opening Octopus_Documentation_20Schemas\census\index.html
INFO - Analyzing 'boe'
INFO - Starting schema analysis
INFO - Meta directory "SchemaMeta" should contain a file named "boe.meta.xml"
INFO - Connected to Microsoft SQL Server - 16.00.1000
INFO - Gathering schema details
Gathering schema details..........(0sec)
Connecting relationships..........(0sec)
Writing/graphing summary.INFO - Gathered schema details in 0 seconds
INFO - Writing/graphing summary
........(13sec)
Writing/diagramming detailsINFO - Completed summary in 13 seconds
INFO - Writing/diagramming details
...Exception in thread "main" java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:51)
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:52)
Caused by: org.schemaspy.output.diagram.RenderException: Failed to generate Table diagram
at org.schemaspy.output.diagram.TableDiagram.generateTableDiagram(TableDiagram.java:24)
at org.schemaspy.output.html.mustache.diagrams.MustacheTableDiagramFactory.generateRealTableDiagrams(MustacheTableDiagramFactory.java:79)
at org.schemaspy.output.html.mustache.diagrams.MustacheTableDiagramFactory.generateTableDiagrams(MustacheTableDiagramFactory.java:57)
at org.schemaspy.SchemaAnalyzer.generateHtmlDoc(SchemaAnalyzer.java:488)
at org.schemaspy.SchemaAnalyzer.analyze(SchemaAnalyzer.java:289)
at org.schemaspy.SchemaAnalyzer.analyzeMultipleSchemas(SchemaAnalyzer.java:186)
at org.schemaspy.SchemaAnalyzer.analyze(SchemaAnalyzer.java:127)
at org.schemaspy.cli.SchemaSpyRunner.runAnalyzer(SchemaSpyRunner.java:109)
at org.schemaspy.cli.SchemaSpyRunner.run(SchemaSpyRunner.java:98)
at org.schemaspy.Main.main(Main.java:55)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
... 5 more
Caused by: org.schemaspy.output.diagram.RenderException: javax.script.ScriptException: java.lang.StackOverflowError in at line number 27 at column number 596797
at org.schemaspy.output.diagram.vizjs.VizJSDot.render(VizJSDot.java:74)
at org.schemaspy.output.diagram.TableDiagram.generateTableDiagram(TableDiagram.java:21)
... 15 more
Beta Was this translation helpful? Give feedback.
All reactions