我正在尝试将变换器添加到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>
答案 0 :(得分:0)
您应该定义一个全局自定义变换器,如下所示:
<custom-transformer class="com.pb.oms.mule.transformer.ResourceUnlocker"
name="ResourceUnlocker"
abstract="false"
doc:name="ResourceUnlocker" />
并使用a
将其包含在入站端点中<transformer ref="ResourceUnlocker" />
您可以找到有关here
主题的文档