Skip to content

Problems with XML to Json conversion #27

Description

@stempler

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]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions