[ https://issues.apache.org/jira/browse/OFBIZ-9802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17187050#comment-17187050 ] Jacques Le Roux commented on OFBIZ-9802: ---------------------------------------- (y) > PDF creation fails in sendOrderConfirmation service > --------------------------------------------------- > > Key: OFBIZ-9802 > URL: https://issues.apache.org/jira/browse/OFBIZ-9802 > Project: OFBiz > Issue Type: Bug > Components: framework > Affects Versions: Trunk > Reporter: Jacques Le Roux > Assignee: Akash Jain > Priority: Major > Fix For: Upcoming Branch > > > After Nicolas fixed OFBIZ-9798, I faced another issue in sendOrderConfirmation: > {code} > 2017-10-03 11:32:09,318 |OFBiz-JobQueue-0 |EmailServices |E| Error rendering PDF attachment for email: org.apache.fop.apps.FOPException: org.apache.fop.fo.ValidationException: Document is > empty (something might be wrong with your XSLT stylesheet). > javax.xml.transform.TransformerException: org.apache.fop.fo.ValidationException: Document is empty (something might be wrong with your XSLT stylesheet). > org.apache.fop.apps.FOPException: org.apache.fop.fo.ValidationException: Document is empty (something might be wrong with your XSLT stylesheet). > at org.apache.ofbiz.webapp.view.ApacheFopWorker.transform(ApacheFopWorker.java:176) ~[ofbiz.jar:?] > at org.apache.ofbiz.common.email.EmailServices.sendMailFromScreen(EmailServices.java:558) [ofbiz.jar:?] > at sun.reflect.GeneratedMethodAccessor215.invoke(Unknown Source) ~[?:?] > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_112] > at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_112] > at org.apache.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100) [ofbiz.jar:?] > at org.apache.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57) [ofbiz.jar:?] > at org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:396) [ofbiz.jar:?] > at org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:227) [ofbiz.jar:?] > at org.apache.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:88) [ofbiz.jar:?] > at org.apache.ofbiz.order.order.OrderServices.sendOrderNotificationScreen(OrderServices.java:2680) [ofbiz.jar:?] > at org.apache.ofbiz.order.order.OrderServices.sendOrderConfirmNotification(OrderServices.java:2510) [ofbiz.jar:?] > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_112] > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_112] > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_112] > at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_112] > at org.apache.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100) [ofbiz.jar:?] > at org.apache.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57) [ofbiz.jar:?] > at org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:396) [ofbiz.jar:?] > at org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:227) [ofbiz.jar:?] > at org.apache.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:88) [ofbiz.jar:?] > at org.apache.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:70) [ofbiz.jar:?] > at org.apache.ofbiz.service.job.AbstractJob.run(AbstractJob.java:87) [ofbiz.jar:?] > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_112] > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_112] > at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112] > Caused by: javax.xml.transform.TransformerException: org.apache.fop.fo.ValidationException: Document is empty (something might be wrong with your XSLT stylesheet). > at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:501) ~[xalan-2.7.0.jar:?] > at org.apache.ofbiz.webapp.view.ApacheFopWorker.transform(ApacheFopWorker.java:174) ~[ofbiz.jar:?] > ... 25 more > Caused by: org.apache.fop.fo.ValidationException: Document is empty (something might be wrong with your XSLT stylesheet). > at org.apache.fop.events.ValidationExceptionFactory.createException(ValidationExceptionFactory.java:38) ~[fop-2.1.jar:?] > at org.apache.fop.events.EventExceptionManager.throwException(EventExceptionManager.java:58) ~[fop-2.1.jar:?] > at org.apache.fop.events.DefaultEventBroadcaster$1.invoke(DefaultEventBroadcaster.java:175) ~[fop-2.1.jar:?] > at com.sun.proxy.$Proxy24.emptyDocument(Unknown Source) ~[?:?] > at org.apache.fop.fo.FOTreeBuilder.endDocument(FOTreeBuilder.java:164) ~[fop-2.1.jar:?] > at org.apache.xalan.transformer.TransformerIdentityImpl.endDocument(TransformerIdentityImpl.java:962) ~[xalan-2.7.0.jar:?] > at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source) ~[xercesImpl-2.9.1.jar:?] > at org.apache.xerces.impl.dtd.XMLDTDValidator.endDocument(Unknown Source) ~[xercesImpl-2.9.1.jar:?] > at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source) ~[xercesImpl-2.9.1.jar:?] > at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source) ~[xercesImpl-2.9.1.jar:?] > at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source) ~[xercesImpl-2.9.1.jar:?] > at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source) ~[xercesImpl-2.9.1.jar:?] > at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source) ~[xercesImpl-2.9.1.jar:?] > at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) ~[xercesImpl-2.9.1.jar:?] > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[xercesImpl-2.9.1.jar:?] > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[xercesImpl-2.9.1.jar:?] > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) ~[xercesImpl-2.9.1.jar:?] > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) ~[xercesImpl-2.9.1.jar:?] > at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484) ~[xalan-2.7.0.jar:?] > at org.apache.ofbiz.webapp.view.ApacheFopWorker.transform(ApacheFopWorker.java:174) ~[ofbiz.jar:?] > ... 25 more > 2017-10-03 11:32:09,321 |OFBiz-JobQueue-0 |ServiceDispatcher |E| Error in Service [sendMailFromScreen]: Error rendering PDF attachment for email: org.apache.fop.apps.FOPException: org.apache.f > op.fo.ValidationException: Document is empty (something might be wrong with your XSLT stylesheet). > javax.xml.transform.TransformerException: org.apache.fop.fo.ValidationException: Document is empty (something might be wrong with your XSLT stylesheet). > 2017-10-03 11:32:09,321 |OFBiz-JobQueue-0 |TransactionUtil |W| Calling transaction setRollbackOnly; this stack trace shows where this is happening: > java.lang.Exception: Error in Service [sendMailFromScreen]: Error rendering PDF attachment for email: org.apache.fop.apps.FOPException: org.apache.fop.fo.ValidationException: Document is empty (something migh > t be wrong with your XSLT stylesheet). > javax.xml.transform.TransformerException: org.apache.fop.fo.ValidationException: Document is empty (something might be wrong with your XSLT stylesheet). > at org.apache.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:361) [ofbiz.jar:?] > at org.apache.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:302) [ofbiz.jar:?] > at org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:535) [ofbiz.jar:?] > at org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:227) [ofbiz.jar:?] > at org.apache.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:88) [ofbiz.jar:?] > at org.apache.ofbiz.order.order.OrderServices.sendOrderNotificationScreen(OrderServices.java:2680) [ofbiz.jar:?] > at org.apache.ofbiz.order.order.OrderServices.sendOrderConfirmNotification(OrderServices.java:2510) [ofbiz.jar:?] > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_112] > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_112] > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_112] > at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_112] > at org.apache.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100) [ofbiz.jar:?] > at org.apache.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57) [ofbiz.jar:?] > at org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:396) [ofbiz.jar:?] > at org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:227) [ofbiz.jar:?] > at org.apache.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:88) [ofbiz.jar:?] > at org.apache.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:70) [ofbiz.jar:?] > at org.apache.ofbiz.service.job.AbstractJob.run(AbstractJob.java:87) [ofbiz.jar:?] > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_112] > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_112] > at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112] > 2017-10-03 11:32:09,321 |OFBiz-JobQueue-0 |ServiceDispatcher |T| Sync service [default/sendMailFromScreen] finished in [936] milliseconds > 2017-10-03 11:32:09,321 |OFBiz-JobQueue-0 |ServiceDispatcher |E| Error in Service [sendOrderConfirmation]: Error rendering PDF attachment for email: org.apache.fop.apps.FOPException: org.apach > e.fop.fo.ValidationException: Document is empty (something might be wrong with your XSLT stylesheet). > javax.xml.transform.TransformerException: org.apache.fop.fo.ValidationException: Document is empty (something might be wrong with your XSLT stylesheet). > 2017-10-03 11:32:09,321 |OFBiz-JobQueue-0 |TransactionUtil |E| [TransactionUtil.rollback] > java.lang.Exception: Stack Trace > at org.apache.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:323) [ofbiz.jar:?] > at org.apache.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:300) [ofbiz.jar:?] > at org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:535) [ofbiz.jar:?] > at org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:227) [ofbiz.jar:?] > at org.apache.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:88) [ofbiz.jar:?] > at org.apache.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:70) [ofbiz.jar:?] > at org.apache.ofbiz.service.job.AbstractJob.run(AbstractJob.java:87) [ofbiz.jar:?] > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_112] > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_112] > at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112] > 2017-10-03 11:32:09,322 |OFBiz-JobQueue-0 |TransactionUtil |I| Transaction rolled back > 2017-10-03 11:32:09,322 |OFBiz-JobQueue-0 |ServiceDispatcher |T| Sync service [default/sendOrderConfirmation] finished in [957] milliseconds > 2017-10-03 11:32:09,322 |OFBiz-JobQueue-0 |GenericServiceJob |E| Async-Service failed. > java.lang.Exception: Error rendering PDF attachment for email: org.apache.fop.apps.FOPException: org.apache.fop.fo.ValidationException: Document is empty (something might be wrong with your XSLT stylesheet). > javax.xml.transform.TransformerException: org.apache.fop.fo.ValidationException: Document is empty (something might be wrong with your XSLT stylesheet). > at org.apache.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:73) [ofbiz.jar:?] > at org.apache.ofbiz.service.job.AbstractJob.run(AbstractJob.java:87) [ofbiz.jar:?] > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_112] > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_112] > at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112] > 2017-10-03 11:32:09,322 |OFBiz-JobQueue-0 |PersistedServiceJob |W| Persisted Job [12947] Failed. Max Retry Hit, not re-scheduling > {code} > I don't think it's related with common-theme because it works on Nicolas's end. To be checked... -- This message was sent by Atlassian Jira (v8.3.4#803005) |
Free forum by Nabble | Edit this page |