1.7A 5145 templateloader gives misleading error message

If you try to be clever and in the templates.xml file, you set the docType to other than "document.other" [I used document.patient and document.workflow] then you get the following misleading error message which reports a problem with the mime type:

 org.openvpms.archetype.rules.doc.DocumentException: text/xml is not a supported document type
        at org.openvpms.archetype.rules.doc.DocumentHandlers.get(DocumentHandlers.java:162)
        at org.openvpms.archetype.rules.doc.DocumentHelper.create(DocumentHelper.java:67)
        at org.openvpms.report.tools.TemplateLoader.getDocument(TemplateLoader.java:215)
        at org.openvpms.report.tools.TemplateLoader.load(TemplateLoader.java:118)
        at org.openvpms.report.tools.TemplateLoader.load(TemplateLoader.java:105)
        at org.openvpms.report.tools.TemplateLoader.main(TemplateLoader.java:192) 

The above occurs with a jrxml file, with odt files it bitches that application/vnd.oasis.opendocument.text is not a supported type.

Q: is it possible to set the docType to other than other?

Regards, Tim G

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: 1.7A 5145 templateloader gives misleading error message

The document.other archetype is the one and only document archetype supported by OpenVPMS at present.

-Tim A

Syndicate content