WSO2 ESB中的计划任务中的“传输输出尚未设置”例外

时间:2015-12-08 14:04:25

标签: wso2 wso2esb

我们正在与ESB 4.9合作。 我们有一个简单的传递代理服务:

<proxy xmlns="http://ws.apache.org/ns/synapse"
name="BankSeb1"
transports="https,http"
statistics="disable"
trace="disable"
startOnLoad="true">
<target>
 <outSequence>
 <send/>
</outSequence>
<endpoint>
 <address uri="https://server:port/bankas/seb"/>
</endpoint>
</target>
<description/>
 </proxy>

此服务正常运行,我没有任何问题。 但是,当我尝试为此服务设计计划任务时,抛出异常:

    TID: [-1234] [] [2015-12-08 15:25:32,943] ERROR {org.apache.synapse.core.axis2.Axis2Sender} -  
Connection:Keep-Alive,Date:Tue, 08 Dec 2015 13:25:32 GMT,Transfer-Encoding:chunked,
<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body/></soapenv:Envelope>
Unexpected error sending message back {org.apache.synapse.core.axis2.Axis2Sender}
org.apache.axis2.AxisFault: Transport out has not been set
    at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:432)
    at org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:212)
    at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:444)
    at org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:102)
    at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
    at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
    at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149)
    at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:297)
    at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:529)
    at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:172)
    at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
    at org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:247)
    at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745

计划任务配置:

 <task class="org.apache.synapse.startup.tasks.MessageInjector"
    group="synapse.simple.quartz" name="BankSeb">
    <trigger count="1" interval="10"/>
    <property name="injectTo" value="proxy" xmlns:task="http://www.wso2.org/products/wso2commons/tasks"/>
    <property name="proxyName" value="BankSeb1" xmlns:task="http://www.wso2.org/products/wso2commons/tasks"/>
    <property name="message" xmlns:task="http://www.wso2.org/products/wso2commons/tasks">
        <root>
            <a>b</a>
        </root>
    </property>
</task>

ESB 4.8中的相同任务和服务正常。 有人可以帮我解决这个问题。 我尝试了使用多个代理服务的这种模式,并且总是得到相同的异常。

0 个答案:

没有答案