2 Replies Latest reply on Aug 1, 2013 9:19 PM by jbertram

    Divert don't work in 2.3.0 final    The content of element 'divert' is not complete

    michaelxiang

      Hi All,

          I tried to upgrade Hornetq from 2.2.5.Final to 2.3.0.Final. Our application uses lots of divert. But it is not working in 2.3.0.final.I got the following exception

      17:06:22,157 ERROR [org.hornetq.core.client] HQ214019: Invalid configuration: org.xml.sax.SAXParseException: cvc-complex-type.2.4.b: The content of element 'divert' is not complete. One of '{"urn:hornetq":transformer-class-name, "urn:hornetq":routing-name, "urn:hornetq":filter}' is expected.

       

       

         I can recreate this problem using the following steps:

       

      1.   Download 2.3.0.Final.
      2.   Copy hornetq-2.3.0.Final\examples\jms\divert\src\main\resources\hornetq\server0\* to hornetq-2.3.0.Final\config\jboss-as-4\non-clustered to override current one (back up the folder before override).
      3.   Just go to the bin folder. Run.sh
      4.   You will hit the following exception right away.

      7:06:22,157 ERROR [org.hornetq.core.client] HQ214019: Invalid configuration: org.xml.sax.SAXParseException: cvc-complex-type.2.4.b: The content of element 'divert' is not complete. One of '{"urn:hornetq":transformer-class-name, "urn:hornetq":routing-name, "urn:hornetq":filter}' is expected.

                      at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) [jboss-mc.jar:]

                      at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) [jboss-mc.jar:]

                      at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) [jboss-mc.jar:]

                      at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) [jboss-mc.jar:]

                      at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) [jboss-mc.jar:]

                      at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source) [jboss-mc.jar:]

                      at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source) [jboss-mc.jar:]

                      at org.apache.xerces.impl.xs.XMLSchemaValidator.elementLocallyValidComplexType(Unknown Source) [jboss-mc.jar:]

                      at org.apache.xerces.impl.xs.XMLSchemaValidator.elementLocallyValidType(Unknown Source) [jboss-mc.jar:]

                      at org.apache.xerces.impl.xs.XMLSchemaValidator.processElementContent(Unknown Source) [jboss-mc.jar:]

                      at org.apache.xerces.impl.xs.XMLSchemaValidator.handleEndElement(Unknown Source) [jboss-mc.jar:]

                      at org.apache.xerces.impl.xs.XMLSchemaValidator.endElement(Unknown Source) [jboss-mc.jar:]

                      at org.apache.xerces.jaxp.validation.DOMValidatorHelper.finishNode(Unknown Source) [jboss-mc.jar:]

                      at org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(Unknown Source) [jboss-mc.jar:]

                      at org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(Unknown Source) [jboss-mc.jar:]

                      at org.apache.xerces.jaxp.validation.ValidatorImpl.validate(Unknown Source) [jboss-mc.jar:]

                      at javax.xml.validation.Validator.validate(Validator.java:127) [classes.jar:1.6.0_45]

       

      Do anyone have same problem? Or do we have some idea how to fix it? Thanks a lot.

       

      Michael