2013-06-25 38 views
0

我跟着this guide將ESB與Identity Server集成在一起。WSO2 ESB EntitlementMediator評估策略時發生錯誤

我試圖wso2esb-4.6.0和wso2is-4.1.0

以下是我的步驟:

  1. 配置WSO2身份Server作爲XACML引擎和啓動標識服務器。

  2. 配置WSO2 ESB中的授權調解器並啓動ESB。

  3. 在IDE中運行客戶端代碼。

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

有人知道嗎?

回答

0

這似乎是在下一個ESB版本(4.7.0)中修復的錯誤。它將在不久的將來發布。見[1]。

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

+0

謝謝你的建議。但是我怎樣才能獲得ESB版本(4.7.0)來嘗試呢? – iceguo

+0

ESB 4.7.0發佈...檢查[1]。 [1] http://wso2.com/products/enterprise-service-bus –

+0

非常感謝!我會嘗試。 – iceguo