Document image error

0
Hi all,   I'm using the dynamic image component on a document in the footer to show an image in the footer. when i  try this on my local system and on an acceptation server, this works fine, but when i try this on the production server, it gives the following error:   19:46:58APPERRORActionManager: com.mendix.modules.microflowengine.MicroflowException: Error processing XHTML 19:46:58APPINFOat DocumentenModule.SUB_Order_GenerateOrderDocumentAsPdf (DocumentExport : 'Generate PDF (.pdf) document using template 'Order_Opdrachtbevestiging'') 19:46:58APPINFOat OrderModule.ACT_Order_GenerateOpdrachtBevestiging (SubMicroflow : 'SUB_Order_GenerateOrderDocumentAsPdf') 19:46:58APPINFOAdvanced stacktrace: 19:46:58APPINFOat com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:154) 19:46:58APPINFOCaused by: com.mendix.systemwideinterfaces.MendixRuntimeException: Error processing XHTML 19:46:58APPINFOat com.mendix.documentexporter.focomponents.DynamicLabel$1.run(DynamicLabel.java:145) 19:46:58APPINFOCaused by: net.sf.saxon.trans.XPathException: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 21397; The element type "img" must be terminated by the matching end-tag "</img>". 19:46:58APPINFOat net.sf.saxon.event.Sender.sendSAXSource(Sender.java:469) 19:46:58APPINFOat net.sf.saxon.event.Sender.send(Sender.java:177) 19:46:58APPINFOat net.sf.saxon.Controller.makeSourceTree(Controller.java:1910) 19:46:58APPINFOat net.sf.saxon.s9api.XsltTransformer.transform(XsltTransformer.java:573) 19:46:58APPINFOat net.sf.saxon.jaxp.TransformerImpl.transform(TransformerImpl.java:183) 19:46:58APPINFOat com.mendix.documentexporter.focomponents.DynamicLabel$1.run(DynamicLabel.java:142) 19:46:58APPINFOat java.base/java.security.AccessController.doPrivileged(Native Method) 19:46:58APPINFOat com.mendix.documentexporter.focomponents.DynamicLabel.parseHtml(DynamicLabel.java:111) 19:46:58APPINFOat com.mendix.documentexporter.focomponents.DynamicLabel.generateFO(DynamicLabel.java:78) 19:46:58APPINFOat com.mendix.documentexporter.focomponents.DocumentTemplateRepresentator.render(DocumentTemplateRepresentator.java:328) 19:46:58APPINFOat com.mendix.documentexporter.focomponents.Table.generateFO(Table.java:71) 19:46:58APPINFOat com.mendix.documentexporter.focomponents.DocumentTemplateRepresentator.render(DocumentTemplateRepresentator.java:328) 19:46:58APPINFOat com.mendix.documentexporter.focomponents.Dataview.generateFO(Dataview.java:34) 19:46:58APPINFOat com.mendix.documentexporter.focomponents.DocumentTemplateRepresentator.render(DocumentTemplateRepresentator.java:328) 19:46:58APPINFOat com.mendix.documentexporter.focomponents.DocumentTemplateRepresentator.generate(DocumentTemplateRepresentator.java:132) 19:46:58APPINFOat com.mendix.documentexporter.documents.FOBasedDocument.exportToInputStream(FOBasedDocument.java:81) 19:46:58APPINFOat com.mendix.documentexporter.DocumentGenerator.exportToInputStream(DocumentGenerator.java:111) 19:46:58APPINFOat com.mendix.documentexporter.DocumentGenerator.exportToIMendixObject(DocumentGenerator.java:78) 19:46:58APPINFOat com.mendix.documentexporter.actions.microflow.DocumentExportAction.execute(DocumentExportAction.scala:96) 19:46:58APPINFOat com.mendix.documentexporter.actions.microflow.DocumentExportAction.execute(DocumentExportAction.scala:18) 19:46:58APPINFOat com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.java:50) 19:46:58APPINFOat com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.java:217) 19:46:58APPINFOat com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.java:167) 19:46:58APPINFOat com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46) 19:46:58APPINFOat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:71) 19:46:58APPINFOat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:49) 19:46:58APPINFOat com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:54) 19:46:58APPINFOat com.mendix.basis.actionmanagement.ActionManagerBase$1.execute(ActionManagerBase.java:147) 19:46:58APPINFOat com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:26) 19:46:58APPINFOat com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:152) 19:46:58APPINFOat com.mendix.basis.component.InternalCoreBase.executeSync(InternalCoreBase.java:382) 19:46:58APPINFOat com.mendix.modules.microflowengine.MicroflowExecuter$.executeSync(MicroflowExecuter.scala:19) 19:46:58APPINFOat com.mendix.modules.microflowengine.actions.SubMicroflowAction.execute(SubMicroflowAction.scala:49) 19:46:58APPINFOat com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.java:50) 19:46:58APPINFOat com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.java:217) 19:46:58APPINFOat com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.java:167) 19:46:58APPINFOat com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46) 19:46:58APPINFOat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:71) 19:46:58APPINFOat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:49) 19:46:58APPINFOat com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:54) 19:46:58APPINFOat com.mendix.basis.actionmanagement.DefaultActionMonitor$.$anonfun$run$1(CustomMonitoredAction.scala:18) 19:46:58APPINFOat com.mendix.basis.actionmanagement.IMonitoredAction$$anon$1.execute(IMonitoredAction.scala:47) 19:46:58APPINFOat com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:26) 19:46:58APPINFOat com.mendix.basis.actionmanagement.IMonitoredAction.monitor(IMonitoredAction.scala:49) 19:46:58APPINFOat com.mendix.basis.actionmanagement.IMonitoredAction.monitor$(IMonitoredAction.scala:25) 19:46:58APPINFOat com.mendix.basis.actionmanagement.CustomMonitoredAction.monitor(CustomMonitoredAction.scala:22) 19:46:58APPINFOat com.mendix.basis.actionmanagement.DefaultActionMonitor$.run(CustomMonitoredAction.scala:18) 19:46:58APPINFOat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.runMonitoredAction(CoreActionHandlerImpl.scala:60) 19:46:58APPINFOat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:47) 19:46:58APPINFOat com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:54) 19:46:58APPINFOat com.mendix.basis.actionmanagement.ActionManager.$anonfun$execute$1(ActionManager.scala:118) 19:46:58APPINFOat scala.concurrent.Future$.$anonfun$apply$1(Future.scala:659) 19:46:58APPINFOat scala.util.Success.$anonfun$map$1(Try.scala:255) 19:46:58APPINFOat scala.util.Success.map(Try.scala:213) 19:46:58APPINFOat scala.concurrent.Future.$anonfun$map$1(Future.scala:292) 19:46:58APPINFOat scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:33) 19:46:58APPINFOat scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:33) 19:46:58APPINFOat scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64) 19:46:58APPINFOat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 19:46:58APPINFOat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 19:46:58APPINFOat java.base/java.lang.Thread.run(Unknown Source) 19:46:58APPINFOCaused by: org.xml.sax.SAXParseException: The element type "img" must be terminated by the matching end-tag "</img>". 19:46:58APPINFOat org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) 19:46:58APPINFOat org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) 19:46:58APPINFOat org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) 19:46:58APPINFOat org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) 19:46:58APPINFOat org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) 19:46:58APPINFOat org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) 19:46:58APPINFOat org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) 19:46:58APPINFOat org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) 19:46:58APPINFOat org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) 19:46:58APPINFOat org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) 19:46:58APPINFOat org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) 19:46:58APPINFOat org.apache.xerces.parsers.XMLParser.parse(Unknown Source) 19:46:58APPINFOat org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) 19:46:58APPINFOat org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) 19:46:58APPINFOat net.sf.saxon.event.Sender.sendSAXSource(Sender.java:449) 19:46:58APPINFOat net.sf.saxon.event.Sender.send(Sender.java:177) 19:46:58APPINFOat net.sf.saxon.Controller.makeSourceTree(Controller.java:1910) 19:46:58APPINFOat net.sf.saxon.s9api.XsltTransformer.transform(XsltTransformer.java:573) 19:46:58APPINFOat net.sf.saxon.jaxp.TransformerImpl.transform(TransformerImpl.java:183) 19:46:58APPINFOat com.mendix.documentexporter.focomponents.DynamicLabel$1.run(DynamicLabel.java:142) 19:46:58APPINFOat java.base/java.security.AccessController.doPrivileged(Native Method) 19:46:58APPINFOat com.mendix.documentexporter.focomponents.DynamicLabel.parseHtml(DynamicLabel.java:111) 19:46:58APPINFOat com.mendix.documentexporter.focomponents.DynamicLabel.generateFO(DynamicLabel.java:78) 19:46:58APPINFOat com.mendix.documentexporter.focomponents.DocumentTemplateRepresentator.render(DocumentTemplateRepresentator.java:328) 19:46:58APPINFOat com.mendix.documentexporter.focomponents.Table.generateFO(Table.java:71) 19:46:58APPINFOat com.mendix.documentexporter.focomponents.DocumentTemplateRepresentator.render(DocumentTemplateRepresentator.java:328) 19:46:58APPINFOat com.mendix.documentexporter.focomponents.Dataview.generateFO(Dataview.java:34) 19:46:58APPINFOat com.mendix.modules.microflowengine.MicroflowExecuter$.executeSync(MicroflowExecuter.scala:19) 19:46:58APPINFOat com.mendix.basis.actionmanagement.IMonitoredAction.monitor(IMonitoredAction.scala:49) 19:46:58APPINFOat com.mendix.documentexporter.focomponents.DocumentTemplateRepresentator.render(DocumentTemplateRepresentator.java:328) 19:46:58APPINFOat com.mendix.documentexporter.focomponents.DocumentTemplateRepresentator.generate(DocumentTemplateRepresentator.java:132) 19:46:58APPINFOat com.mendix.documentexporter.documents.FOBasedDocument.exportToInputStream(FOBasedDocument.java:81) 19:46:58APPINFOat com.mendix.documentexporter.DocumentGenerator.exportToInputStream(DocumentGenerator.java:111) 19:46:58APPINFOat com.mendix.documentexporter.DocumentGenerator.exportToIMendixObject(DocumentGenerator.java:78) 19:46:58APPINFOat com.mendix.documentexporter.actions.microflow.DocumentExportAction.execute(DocumentExportAction.scala:96) 19:46:58APPINFOat com.mendix.documentexporter.actions.microflow.DocumentExportAction.execute(DocumentExportAction.scala:18) 19:46:58APPINFOat com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.java:50) 19:46:58APPINFOat com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.java:217) 19:46:58APPINFOat com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.java:167) 19:46:58APPINFOat com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46) 19:46:58APPINFOat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:71) 19:46:58APPINFOat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:49) 19:46:58APPINFOat com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:54) 19:46:58APPINFOat com.mendix.basis.actionmanagement.ActionManagerBase$1.execute(ActionManagerBase.java:147) 19:46:58APPINFOat com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:26) 19:46:58APPINFOat com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:152) 19:46:58APPINFOat com.mendix.basis.component.InternalCoreBase.executeSync(InternalCoreBase.java:382) 19:46:58APPINFOat com.mendix.modules.microflowengine.MicroflowExecuter$.executeSync(MicroflowExecuter.scala:19) 19:46:58APPINFOat com.mendix.modules.microflowengine.actions.SubMicroflowAction.execute(SubMicroflowAction.scala:49) 19:46:58APPINFOat com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.java:50) 19:46:58APPINFOat com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.java:217) 19:46:58APPINFOat com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.java:167) 19:46:58APPINFOat com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46) 19:46:58APPINFOat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:71) 19:46:58APPINFOat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:49) 19:46:58APPINFOat com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:54) 19:46:58APPINFOat com.mendix.basis.actionmanagement.DefaultActionMonitor$.$anonfun$run$1(CustomMonitoredAction.scala:18) 19:46:58APPINFOat com.mendix.basis.actionmanagement.IMonitoredAction$$anon$1.execute(IMonitoredAction.scala:47) 19:46:58APPINFOat com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:26) 19:46:58APPINFOat com.mendix.basis.actionmanagement.IMonitoredAction.monitor(IMonitoredAction.scala:49) 19:46:58APPINFOat com.mendix.basis.actionmanagement.IMonitoredAction.monitor$(IMonitoredAction.scala:25) 19:46:58APPINFOat com.mendix.basis.actionmanagement.CustomMonitoredAction.monitor(CustomMonitoredAction.scala:22) 19:46:58APPINFOat com.mendix.basis.actionmanagement.DefaultActionMonitor$.run(CustomMonitoredAction.scala:18) 19:46:58APPINFOat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.runMonitoredAction(CoreActionHandlerImpl.scala:60) 19:46:58APPINFOat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:47) 19:46:58APPINFOat com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:54) 19:46:58APPINFOat com.mendix.basis.actionmanagement.ActionManager.$anonfun$execute$1(ActionManager.scala:118) 19:46:58APPINFOat scala.concurrent.Future$.$anonfun$apply$1(Future.scala:659) 19:46:58APPINFOat scala.util.Success.$anonfun$map$1(Try.scala:255) 19:46:58APPINFOat scala.util.Success.map(Try.scala:213) 19:46:58APPINFOat scala.concurrent.Future.$anonfun$map$1(Future.scala:292) 19:46:58APPINFOat scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:33) 19:46:58APPINFOat scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:33) 19:46:58APPINFOat scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64) 19:46:58APPINFOat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 19:46:58APPINFOat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 19:46:58APPINFOat java.base/java.lang.Thread.run(Unknown Source)   The important part to me seems: The element type "img" must be terminated by the matching end-tag "</img>". Does anyone know what could be the difference between production and acceptation for this error to popup?   Kind regards,   Reinier
asked
2 answers
1

Could be to do with your data.

It seems you are using the Dynamic Label widget with the render XHTML option set to true, and this particular attribute’s value is not in a valid XHTML format, which would cause your error.

answered
0

Hi Stam, 
I have the same problem as you, how did you go about solving it please

answered