Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-6794

Invalid content was found starting with element 'description'

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Trunk
    • Fix Version/s: 16.11.01
    • Component/s: ecommerce
    • Labels:
      None

      Description

      While working on OFBIZ-6792 I stumbled upon this error in log.

           [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)
      

      I have no ideas why this appears, it seems to have no side effects, but that's also unsure :/

        Activity

        Hide
        jacques.le.roux Jacques Le Roux added a comment -

        Thinking about it, could be that OFBIZ-6655 would help here, but we need 1st to fix the security issues, I'm still working on them...

        Show
        jacques.le.roux Jacques Le Roux added a comment - Thinking about it, could be that OFBIZ-6655 would help here, but we need 1st to fix the security issues, I'm still working on them...
        Hide
        deepak.dixit Deepak Dixit added a comment -

        Hi Jacques,

        IMO this should be fixed at r#1724957, actually in manufacturing web.xml description atribute of <servlet> element was at invalid position.

        Show
        deepak.dixit Deepak Dixit added a comment - Hi Jacques, IMO this should be fixed at r#1724957, actually in manufacturing web.xml description atribute of <servlet> element was at invalid position.
        Hide
        jacques.le.roux Jacques Le Roux added a comment -

        Thanks Jagpreet, Ashish.

        I found a remaining trivial issue, fixed with OFBIZ-6809

        Show
        jacques.le.roux Jacques Le Roux added a comment - Thanks Jagpreet, Ashish. I found a remaining trivial issue, fixed with OFBIZ-6809
        Hide
        deepak.dixit Deepak Dixit added a comment -

        Thanks Jacques for confirmation.

        Show
        deepak.dixit Deepak Dixit added a comment - Thanks Jacques for confirmation.

          People

          • Assignee:
            jacques.le.roux Jacques Le Roux
            Reporter:
            jacques.le.roux Jacques Le Roux
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development