WSO2 EI类介体-中介错误

时间:2018-07-09 14:32:27

标签: wcf security soap wso2ei

我正在使用最新版本的WSO2 EI 6.2.0。我正面临着这个奇怪的问题:

Error occured in the mediation of the class mediator, code = 0, detail = org.apache.synapse.SynapseException: Error occured in the mediation of the class mediator
    at org.apache.synapse.mediators.ext.ClassMediator.mediate(ClassMediator.java:97)
    at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:108)
    at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:70)
    at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:158)
    at org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:224)
    at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
    at org.wso2.carbon.core.multitenancy.MultitenantMessageReceiver.doSOAP(MultitenantMessageReceiver.java:301)
    at org.wso2.carbon.core.multitenancy.MultitenantMessageReceiver.processRequest(MultitenantMessageReceiver.java:246)
    at org.wso2.carbon.core.multitenancy.MultitenantMessageReceiver.receive(MultitenantMessageReceiver.java:84)
    at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
    at org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:415)
    at org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:151)
    at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748) 
Caused by: java.lang.NullPointerException
    at org.soasecurity.wssecurity.secure.callback.mediator.ESBCallbackMediator.mediate(ESBCallbackMediator.java:73)
    at org.apache.synapse.mediators.ext.ClassMediator.mediate(ClassMediator.java:93)
    ... 15 more

我正在尝试调用安全的WCF服务,并且正在使用SoapUI发送请求。我已经在Soap中设置了WS-Security。我已将.JKS与EI中的所有证书一起导入。我在政策中提到了正确的租户。

这是让我头疼的代码:

<class name="org.soasecurity.wssecurity.secure.callback.mediator.ESBCallbackMediator">
        <property name="privateKeyAlias" value="wso2ei.local"/>
        <property name="encryptionKeyAlias" value="wcf"/>
        <property name="keyStore" value="wso2ei-local.jks"/>
</class>

我将非常感谢您的帮助!

0 个答案:

没有答案