0

我正在尝试将转换器添加到 jdbc 入站端点,但收到以下错误消息:

Caused by: org.xml.sax.SAXParseException: cvc-elt.2: The value of {abstract} in the element declaration for 'abstract-transformer' must be false. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

这是配置:

       <jdbc:inbound-endpoint exchange-pattern="one-way" 
                           queryKey="orderSelect" 
                           responseTimeout="10000" 
                           mimeType="text/plain" 
                           queryTimeout="-1" 
                           pollingFrequency="${oms.new.data.polling.interval}" 
                           connector-ref="jdbcConnector" 
                           transformer-refs="ResourceLocker" 
                           doc:name="Select New Orders" >
                           <abstract-transformer class="com.pb.oms.mule.transformer.ResourceUnlocker" 
                                                 name="ResourceUnlocker"
                                                 abstract="false"
                                                 doc:name="ResourceUnlocker" />
    </jdbc:inbound-endpoint>
4

1 回答 1

0

您应该定义一个全局自定义转换器,如下所示:

<custom-transformer class="com.pb.oms.mule.transformer.ResourceUnlocker" 
                                             name="ResourceUnlocker"
                                             abstract="false"
                                             doc:name="ResourceUnlocker" />

并使用 a 将其包含在您的入站端点中

<transformer ref="ResourceUnlocker" />

您可以在此处找到有关该主题的文档

于 2012-09-12T10:20:22.060 回答