0

我按照本指南将 ESB 与 Identity Server 集成。

我试过 wso2esb-4.6.0 和 wso2is-4.1.0

以下是我的步骤:

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

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

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

但是发生了 ESBEntitlementMediator错误。

在 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)

有人知道吗?

4

1 回答 1

0

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

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

于 2013-06-26T08:40:59.973 回答