Uploaded image for project: 'ActiveMQ'
  1. ActiveMQ
  2. AMQ-8060

Attribute 'allowLinkStealing' is not allowed to appear in element 'transportConnector'.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.16.0
    • Fix Version/s: 5.17.0, 5.16.1
    • Component/s: Broker
    • Labels:
      None
    • Environment:

      Red Hat Linux

      Description

      Hi All,

      We are trying to migrate from version 5.15.11 on 5.16.0.

      And we have faced with an error with loading the activemq.xml:

      2020-10-28 20:27:13,271 | ERROR | Failed to load: class path resource [activemq.xml], reason: Line 126 in XML document from class path resource [activemq.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 126; columnNumber: 163; cvc-complex-type.3.2.2: Attribute 'allowLinkStealing' is not allowed to appear in element 'transportConnector'. | org.apache.activemq.xbean.XBeanBrokerFactory | main
      org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 126 in XML document from class path resource [activemq.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 126; columnNumber: 163; cvc-complex-type.3.2.2: Attribute 'allowLinkStealing' is not allowed to appear in element 'transportConnector'.

      As I can see the problem is that we are using XML validation with referring on generic XSD, like this:

      <beans
       xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
       http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd">

      And allowLinkStealing attribute is absent in the new versions of the XSD (generic and activemq-core-5.16.0.xsd).

      While allowLinkStealing property is still available for Transport configuration why it was excluded from XSD?

        Attachments

          Activity

            People

            • Assignee:
              jbonofre Jean-Baptiste Onofré
              Reporter:
              Aleksandr Yaryna Aleksandr Yaryna
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h