[ https://issues.apache.org/jira/browse/OFBIZ-6792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15091527#comment-15091527 ] Jacques Le Roux commented on OFBIZ-6792: ---------------------------------------- Though I guess unrelated, while working on this I noticed this error(?) in log. I guess it's worth mentionning it, maybe I will create a Jira for that too {code} [java] Jan 11, 2016 7:25:26 AM org.apache.tomcat.util.digester.Digester error [java] SEVERE: Parse Error at line 79 column 22: cvc-complex-type.2.4.a: Invalid content was found starting with element 'description'. One of '{"http://java.sun.com/xml/ns/javaee":servlet-class, "http:/ /java.sun.com/xml/ns/javaee":jsp-file, "http://java.sun.com/xml/ns/javaee":init-param, "http://java.sun.com/xml/ns/javaee":load-on-startup, "http://java.sun.com/xml/ns/javaee":enabled, "http://java.sun.com/xm l/ns/javaee":async-supported, "http://java.sun.com/xml/ns/javaee":run-as, "http://java.sun.com/xml/ns/javaee":security-role-ref, "http://java.sun.com/xml/ns/javaee":multipart-config}' is expected. [java] org.xml.sax.SAXParseException; lineNumber: 79; columnNumber: 22; cvc-complex-type.2.4.a: Invalid content was found starting with element 'description'. One of '{"http://java.sun.com/xml/ns/javaee" :servlet-class, "http://java.sun.com/xml/ns/javaee":jsp-file, "http://java.sun.com/xml/ns/javaee":init-param, "http://java.sun.com/xml/ns/javaee":load-on-startup, "http://java.sun.com/xml/ns/javaee":enabled, "http://java.sun.com/xml/ns/javaee":async-supported, "http://java.sun.com/xml/ns/javaee":run-as, "http://java.sun.com/xml/ns/javaee":security-role-ref, "http://java.sun.com/xml/ns/javaee":multipart-config}' i s expected. [java] at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) [java] at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) [java] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) [java] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) [java] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) [java] at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source) [java] at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source) [java] at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source) [java] at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source) [java] at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) [java] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) [java] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) [java] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) [java] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) [java] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) [java] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) [java] at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) [java] at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1555) [java] at org.ofbiz.webapp.WebAppUtil.parseWebXmlFile(WebAppUtil.java:160) [java] at org.ofbiz.webapp.WebAppUtil.getWebXml(WebAppUtil.java:131) [java] at org.ofbiz.webapp.WebAppUtil.getWebSiteId(WebAppUtil.java:117) [java] at org.ofbiz.webapp.WebAppUtil.getWebappInfoFromWebsiteId(WebAppUtil.java:100) [java] at org.ofbiz.common.email.NotificationServices.setBaseUrl(NotificationServices.java:257) [java] at org.ofbiz.common.email.EmailServices.sendMailFromScreen(EmailServices.java:457) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [java] at java.lang.reflect.Method.invoke(Method.java:497) [java] at org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100) [java] at org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57) [java] at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:395) [java] at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:227) [java] at org.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:88) [java] at org.ofbiz.order.order.OrderServices.sendOrderNotificationScreen(OrderServices.java:2714) [java] at org.ofbiz.order.order.OrderServices.sendOrderConfirmNotification(OrderServices.java:2558) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [java] at java.lang.reflect.Method.invoke(Method.java:497) [java] at org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100) [java] at org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57) [java] at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:395) [java] at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:227) [java] at org.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:88) [java] at org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:69) [java] at org.ofbiz.service.job.AbstractJob.run(AbstractJob.java:87) [java] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [java] at java.lang.Thread.run(Thread.java:745) [java] [java] 2016-01-11 07:25:26,687 |http-bio-8443-exec-1 |ServiceDispatcher |T| Sync service [ecommerce/getVisualThemeResources] finished in [1] milliseconds [java] 2016-01-11 07:25:26,712 |http-bio-8443-exec-1 |ScreenFactory |I| Got 8 screens in 0.01s from: file:/C:/projectASF-Mars/ofbiz/specialpurpose/ecommerce/widget/CartScreens.xml [java] 2016-01-11 07:25:26,752 |http-bio-8443-exec-1 |ShoppingCart |I| Returned new PaymentInfo - Pm: 9015 / PmType: CREDIT_CARD / Amt: null / Ref: null!null [java] 2016-01-11 07:25:26,770 |http-bio-8443-exec-1 |ServerHitBin |I| Visit delegatorName=default, ServerHitBin delegatorName=default [java] 2016-01-11 07:25:26,780 |http-bio-8443-exec-1 |ControlServlet |T| [[[updateCheckoutOptions(Domain:https://localhost)] Request Done- total:0.853,since last([updateCheckoutOp...):0.85 3]] [java] Jan 11, 2016 7:25:26 AM org.apache.tomcat.util.digester.Digester error [java] SEVERE: Parse Error at line 18 column 10: cvc-elt.1: Cannot find the declaration of element 'web-app'. [java] org.xml.sax.SAXParseException; lineNumber: 18; columnNumber: 10; cvc-elt.1: Cannot find the declaration of element 'web-app'. [java] at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) [java] at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) [java] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) [java] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) [java] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) [java] at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source) [java] at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source) [java] at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElementAfterName(Unknown Source) [java] at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source) [java] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) [java] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) [java] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) [java] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) [java] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) [java] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) [java] at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) [java] at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1555) [java] at org.ofbiz.webapp.WebAppUtil.parseWebXmlFile(WebAppUtil.java:160) [java] at org.ofbiz.webapp.WebAppUtil.getWebXml(WebAppUtil.java:131) [java] at org.ofbiz.webapp.WebAppUtil.getWebSiteId(WebAppUtil.java:117) [java] at org.ofbiz.webapp.WebAppUtil.getWebappInfoFromWebsiteId(WebAppUtil.java:100) [java] at org.ofbiz.common.email.NotificationServices.setBaseUrl(NotificationServices.java:257) [java] at org.ofbiz.common.email.EmailServices.sendMailFromScreen(EmailServices.java:457) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [java] at java.lang.reflect.Method.invoke(Method.java:497) [java] at org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100) [java] at org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57) [java] at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:395) [java] at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:227) [java] at org.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:88) [java] at org.ofbiz.order.order.OrderServices.sendOrderNotificationScreen(OrderServices.java:2714) [java] at org.ofbiz.order.order.OrderServices.sendOrderConfirmNotification(OrderServices.java:2558) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [java] at java.lang.reflect.Method.invoke(Method.java:497) [java] at org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100) [java] at org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57) [java] at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:395) [java] at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:227) [java] at org.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:88) [java] at org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:69) [java] at org.ofbiz.service.job.AbstractJob.run(AbstractJob.java:87) [java] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [java] at java.lang.Thread.run(Thread.java:745) {code} > Exception when sending an order confirmation email > -------------------------------------------------- > > Key: OFBIZ-6792 > URL: https://issues.apache.org/jira/browse/OFBIZ-6792 > Project: OFBiz > Issue Type: Bug > Components: order, specialpurpose/ecommerce > Affects Versions: Release Branch 14.12, Trunk > Environment: Eclipse IDE > Reporter: Eric Kingston > Assignee: Jacques Le Roux > > Receive the following exception while placing an order through the ecommerce application..... > groovy.lang.MissingPropertyException: No such property: response for class: CompanyHeader > Following is the relevant portion of the stack trace... > at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50) ~[groovy-all-2.2.1.jar:2.2.1] > at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49) ~[groovy-all-2.2.1.jar:2.2.1] > at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231) ~[groovy-all-2.2.1.jar:2.2.1] > at CompanyHeader.run(CompanyHeader.groovy:48) ~[?:?] > ... > Apparently, the response object is not available within the context when the sendOrderConfirmation service is run. > Steps to reproduce the exception.... > 1. Checkout OFBiz 14.12 Release (revision was 1722928 at the time of checkout). > 2. Run the default build. > 3. Load the demo data. > 4. Start the OFBiz instance (it will use the OOTB default derby db of course). > 5. Within a browser goto URL.. http://localhost:8080/ecommerce > 6. Proceed to place an order adding at least one item to the cart. > 7. While checking out you may or may not have to create an account. I created an account for this test. > 8. Proceed through all the checkout steps and submit the order. > Monitor the log and you will see the exception occur within a few seconds. This exception doesn't occur in the OFBiz 13.07 release branch. In fact, the response object is not referenced at all in the CompanyHeader.groovy from the 13.07 branch. Whoever inserted the code that references the response object within the CompanyHeader.groovy script, must have neglected to test the changes with the ecommerce application. I only found the error while migrating our instance of OFBiz to the 14.12 release. Our custom ecommerce application employs the sendOrderConfirmation service the same way the OOTB ecommerce application does. > I hope I have provided sufficient information for someone to resolve this issue. Thanks. -- This message was sent by Atlassian JIRA (v6.3.4#6332) |
Free forum by Nabble | Edit this page |