WSO2 ESB EntitlementMediator在评估策略时发生错误

时间:2013-06-25 15:20:47

标签: wso2 esb identity xacml

我跟着this guide将ESB与Identity Server集成。

我尝试过wso2esb-4.6.0和wso2is-4.1.0

以下是我的步骤:

  1. 将WSO2 Identity Server配置为XACML引擎并启动Identity Server。

  2. 在WSO2 ESB中配置权利中介并启动ESB。

  3. 在IDE中运行客户端代码。

  4. 但是发生了ESB EntitlementMediator错误。

    在ESB命令窗口中,发生以下错误:

    [2013-06-25 22:33:05,236] ERROR - EntitlementMediator Error occurred while evaluating the policy java.lang.NullPointerException
        at org.wso2.carbon.identity.entitlement.mediator.EntitlementMediator.mediate(EntitlementMediator.java:153)
        at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:71)
        at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:114)
        at org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:154)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
        at org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:434)
        at org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:219)
        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:722)
    

    在IS命令窗口中,发生以下错误:

    [2013-06-25 22:33:05,063]  WARN {org.wso2.balana.ctx.RequestCtxFactory} -  No Namespace defined in XACML request and Assume as XACML 3.0
    [2013-06-25 22:33:05,085]  INFO {org.wso2.carbon.identity.entitlement.policy.finder.CarbonPolicyFinder} -  Initializing of policy store is started at :  Tue Jun 25 22:33:05 CST 2013
    [2013-06-25 22:33:05,093]  INFO {org.wso2.carbon.identity.entitlement.policy.finder.CarbonPolicyFinder} -  Initializing of policy store is finished at :  Tue Jun 25 22:33:05 CST 2013
    

    在客户端IDE中,控制台中会出现以下消息:

    13/06/25 22:32:56 ERROR sandesha2.SandeshaModule: Could not load module policies. Using default values.
    13/06/25 22:32:57 INFO tcp.TCPTransportSender: TCP Sender started
    Exception in thread "main" org.apache.axis2.AxisFault: The input stream for an incoming message is null.
        at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:92)
        at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:67)
        at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:346)
        at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:413)
        at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:224)
        at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
        at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:554)
        at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:530)
        at org.wso2.entitlement.sample.WSEntitlementTestClient.main(WSEntitlementTestClient.java:59)
    

    有人知道吗?

1 个答案:

答案 0 :(得分:0)

这似乎是一个在下一个ESB版本(4.7.0)中修复的错误。它将在不久的将来发布。见[1]。

[1] https://wso2.org/jira/browse/ESBJAVA-1915

相关问题