Error when generating PDF

0
Hi, im getting the following error when i try to generate a pdf document. any thoughts on where to start debugging? Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: An error has occurred while handling the request. [User 'MxAdmin' with roles 'Administrator'] Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (1/60) com.mendix.core.CoreException: Exception occurred in action 'Microflow [Screening.GenerateReportFromScreen]', all database changes executed by this action were rolled back Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (2/60) at com.mendix.core.actionmanagement.CoreAction.d(SourceFile:553) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (3/60) Caused by: com.mendix.core.CoreException: Exception occurred in microflow 'Screening.GenerateReportFromScreen' for activity 'Call 'GenerateReport'', all database changes executed by this microflow were rolled back Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (4/60) at kT.b(SourceFile:252) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (5/60) Caused by: com.mendix.core.CoreException: Exception occurred in microflow 'Screening.GenerateReport' for activity 'Generate PDF (.pdf) document using template 'Report'', all database changes executed by this microflow were rolled back Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (6/60) at kT.b(SourceFile:252) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (7/60) Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: Error processing custom XSL content Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (8/60) at kF.a(SourceFile:143) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (9/60) Caused by: org.xml.sax.SAXParseException: Premature end of file. Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (10/60) at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (11/60) at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (12/60) at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (13/60) at kF.a(SourceFile:131) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (14/60) at kF.a(SourceFile:79) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (15/60) at ck.a(SourceFile:223) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (16/60) at aE.a(SourceFile:70) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (17/60) at ck.a(SourceFile:223) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (18/60) at lY.a(SourceFile:75) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (19/60) at ck.a(SourceFile:223) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (20/60) at aE.a(SourceFile:70) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (21/60) at ck.a(SourceFile:223) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (22/60) at aE.a(SourceFile:70) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (23/60) at ck.a(SourceFile:223) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (24/60) at ak.a(SourceFile:33) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (25/60) at ck.a(SourceFile:223) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (26/60) at ck.a(SourceFile:180) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (27/60) at bf.a(SourceFile:81) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (28/60) at c.a(SourceFile:89) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (29/60) at c.a(SourceFile:56) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (30/60) at dp.a(SourceFile:104) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (31/60) at kT.a(SourceFile:67) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (32/60) at eU.executeAction(SourceFile:96) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (33/60) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:49) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (34/60) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:473) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (35/60) at iw.b(SourceFile:155) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (36/60) at com.mendix.core.Core.executeSync(SourceFile:167) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (37/60) at iv.a(SourceFile:71) O ct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (38/60) at kT.a(SourceFile:67) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (39/60) at eU.executeAction(SourceFile:96) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (40/60) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:49) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (41/60) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:473) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (42/60) at iw.b(SourceFile:155) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (43/60) at com.mendix.core.Core.execute(SourceFile:191) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (44/60) at dD.execute(SourceFile:183) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (45/60) at jx.a(SourceFile:299) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (46/60) at jx.a(SourceFile:230) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (47/60) at jx.processRequest(SourceFile:174) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (48/60) at fI.a(SourceFile:71) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (49/60) at com.mendix.core.MxRuntime.processRequest(SourceFile:938) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (50/60) at com.mendix.m2ee.server.handler.RuntimeHandler.handle(RuntimeHandler.java:42) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (51/60) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (52/60) at org.eclipse.jetty.server.Server.handle(Server.java:334) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (53/60) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:559) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (54/60) at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1007) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (55/60) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:747) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (56/60) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:209) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (57/60) at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:406) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (58/60) at org.eclipse.jetty.server.nio.BlockingChannelConnector$ConnectorEndPoint.run(BlockingChannelConnector.java:187) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (59/60) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436) Oct 25 15:57:31 127.0.0.1 cvokprod: ERROR - Connector: (60/60) at java.lang.Thread.run(Thread.java:662)
asked
2 answers
6

The error is 'Error processing custom XSL content' so one of your dynamic labels with the 'Render HTML' setting set to 'true' contains some invalid HTML that cannot be processed.

You can find out which one by setting the Document Exporter lognode to trace output. You'll have to export a document first before this node becomes visible in the lognode list.

answered
0

Can you explain some more about the microflow that creates the PDF? Is a new filedocument created and is content copied from another filedocument? Or did you use the documenttemplate?

answered