WSO2 DAS +用mysql集群APIM

时间:2016-10-18 09:50:12

标签: wso2 wso2-am wso2-das

  1. 我的APIM版本是1.10.0,DAS是3.0.1。

  2. 首先,我没有使用mysql部署群集APIM + DAS。统计数据显示良好。

  3. 然后,我将APIM聚类到发布者,商店,密钥管理器和网关。配置APIM和DAS命令this article,当我调用api,网关节点然后显示错误

  4. [2016-10-13 11:13:54,775] ERROR - APIMgtUsageHandler Cannot publish event. null
    java.lang.NullPointerException
            at org.wso2.carbon.apimgt.usage.publisher.APIMgtUsageDataBridgeDataPublisher.publishEvent(APIMgtUsageDataBridgeDataPublisher.java:124)
            at org.wso2.carbon.apimgt.usage.publisher.APIMgtUsageHandler.handleRequest(APIMgtUsageHandler.java:169)
            at org.apache.synapse.rest.API.process(API.java:322)
            at org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:86)
            at org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:65)
            at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:295)
            at org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83)
            at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
            at org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:317)
            at org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:149)
            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)
    [2016-10-13 11:13:54,807] ERROR - APIMgtResponseHandler Cannot publish response event. null
    java.lang.NullPointerException
            at org.wso2.carbon.apimgt.usage.publisher.APIMgtUsageDataBridgeDataPublisher.publishEvent(APIMgtUsageDataBridgeDataPublisher.java:140)
            at org.wso2.carbon.apimgt.usage.publisher.APIMgtResponseHandler.mediate(APIMgtResponseHandler.java:211)
            at org.apache.synapse.mediators.ext.ClassMediator.mediate(ClassMediator.java:84)
            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:155)
            at org.apache.synapse.rest.Resource.process(Resource.java:297)
            at org.apache.synapse.rest.API.process(API.java:335)
            at org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:86)
            at org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:52)
            at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:295)
            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:251)
            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)
    
    1. 然后我改变了DAS配置的方式。在this blog之后,我配置了所有api-manager.xml,没有错误,也没有stats.And store节点显示信息:
    2. [2016-10-18 11:31:39,131]  INFO - ReceiverGroup Resending the failed published data...
      [2016-10-18 11:31:44,134]  WARN - AccessConfiguration Error loading properties from file: access-log.properties
      [2016-10-18 11:31:44,207]  INFO - TimeoutHandler This engine will expire all callbacks after : 120 seconds, irrespective of the timeout
      
      1. 我认为原因是wso2 jira,他们说这不是错误。
      2. 但我不能等待几个小时的统计数据。我配错了什么?

        Reguards。

1 个答案:

答案 0 :(得分:0)

似乎在商店节点中,数据发布已启用并正常工作。但是网关节点数据没有发布。请尝试验证网关节点配置。检查网关节点是否也可以访问DAS节点。