halestudio / hale-cli

hale command line interface
GNU Lesser General Public License v3.0
1 stars 6 forks source link

Problems with XML to Json conversion #27

Open stempler opened 7 years ago

stempler commented 7 years ago

Parts of generating alignment documentation fails due to a problem with XML to Json conversion. It seems that the introduction of Saxon as a dependency of one of the hale libraries may cause that problem.

This is the error that is being reported:

Running export-doc command on project "Hilfsprojekt Kommunales Gebiet"...
ERROR e.e.h.i.h.s.m.j.JsonValueRepresentation(73) - Failed to created JSON representation of value
java.lang.IllegalArgumentException: Unknown type of result: class javax.xml.transform.stax.StAXResult
        at net.sf.saxon.event.SerializerFactory.getReceiver(SerializerFactory.java:205) ~[saxon9-9.0.0.8.jar:na]
        at net.sf.saxon.IdentityTransformer.transform(IdentityTransformer.java:25) ~[saxon9-9.0.0.8.jar:na]
        at eu.esdihumboldt.hale.io.html.svg.mapping.json.JsonXML.toJson(JsonXML.java:86) ~[eu.esdihumboldt.hale.io.html.svg-3.4.0-SNAPSHOT.jar:na]
        at eu.esdihumboldt.hale.io.html.svg.mapping.json.JsonValueRepresentation.getValueRepresentation(JsonValueRepresentation.java:69) ~[eu.esdihumboldt.hale.io.html.svg-3.4.0-SNAPSHOT.jar:na]
        at eu.esdihumboldt.hale.io.html.svg.mapping.json.AlignmentJson.getValueRepresentation(AlignmentJson.groovy:78) [eu.esdihumboldt.hale.io.html.svg-3.4.0-SNAPSHOT.jar:na]
        at eu.esdihumboldt.hale.io.html.svg.mapping.json.AlignmentJson.access$1(AlignmentJson.groovy) [eu.esdihumboldt.hale.io.html.svg-3.4.0-SNAPSHOT.jar:na]
        at eu.esdihumboldt.hale.io.html.svg.mapping.json.AlignmentJson$_cellInfoJSON_closure3_closure13_closure17.doCall(AlignmentJson.groovy:195) [eu.esdihumboldt.hale.io.html.svg-3.4.0-SNAPSHOT.jar:na]
        at eu.esdihumboldt.hale.io.html.svg.mapping.json.AlignmentJson$_cellInfoJSON_closure3_closure13_closure17.doCall(AlignmentJson.groovy) [eu.esdihumboldt.hale.io.html.svg-3.4.0-SNAPSHOT.jar:na]
        at sun.reflect.GeneratedMethodAccessor90.invoke(Unknown Source) ~[na:na]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_131]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_131]
github-actions[bot] commented 6 months ago

This issue has been automatically marked as stale because it has not had activity in the last 60 days. It will be closed in two weeks if no further activity occurs. Thank you for your contributions.