Attempt to use elk+graphviz fails [message #1850390] |
Tue, 01 March 2022 05:48 |
Michael Lynott Messages: 11 Registered: September 2021 |
Junior Member |
|
|
The attached file elkDemo5.java is an attempt to use elk+graphviz.
Also attached are the pom.xml for this java project, and the error report from running the code using maven goal "exec:java" on eclipse.
The code was written and executed using:
eclipse 4.22 (2021-12)
openjdk 14.0.2
windows 10 home build 19044.1526
elk v. 0.7.1
maven via the M2E version available on Eclipse Marketplace (11/2021)
Two major events occur in the elkDemo5 java code at line 50 :
"layoutEngine.layout(top,progressMonitor)"
1. at line 241 of RecursiveGraphLayoutEngine
" AbstractLayoutProvider layoutProvider = algorithmData.getInstancePool().fetch();"
an "illegal reflective access operation has occurred." which is treated as a warning in openjdk14.
2. at line 250 of RecursiveGraphLayoutEngine.executeAlgorithm:
" layoutProvider.layout(layoutNode, progressMonitor);" a fatal error occurs. As the in-line comment indicates: "The layout provider has failed -
destroy it slowly and painfully". The actual failure is in "graphviz.dot.transformlDotExporter.setEdgeLabels".
It is assumed that the elk code is executing correctly, and the fault is in the elkDemo5 code. It would be helpful if you would provide guidance to help correct any mistakes.
NOTE re pom.xml: An exclusion has been added to the org.eclipse.elk.core.service dependency. Without this exclusion, maven issues an error because it cannot match the version constraint specified for javax.annotation-api (1.35-2.0.0). When the dependency hierarchy is displayed, it is clear that the jakarta.annotation-api has been included.
Thanks,
Mike Lynott (BoiseStateCS410)
-
Attachment: elkDemo5.java
(Size: 1.93KB, Downloaded 82 times) -
Attachment: pom.xml
(Size: 2.24KB, Downloaded 93 times) -
Attachment: ErrorReport
(Size: 2.31KB, Downloaded 90 times)
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03473 seconds