【问题标题】:Data Analytics Server 3.1.0 throwing exceptions数据分析服务器 3.1.0 引发异常
【发布时间】:2016-10-08 11:26:48
【问题描述】:

我正在使用 WSO2 API Manager 2.0.0 和 WSO2 DataAnalyticsServer 3.1.0。
我做了以下配置:

  1. 在 api-manger.xml 中启用分析
  2. 将其定向到我的 DAS 服务器端口
  3. 向 log4j 属性添加了 DAS_AGENT

服务器正常启动
在 DAS 的管理控制台中,我上传了 APIM_Realtime_Analytics.car 这一切都符合: https://docs.wso2.com/display/AM200/Running+the+Product#RunningtheProduct-AccessingtheManagementConsole https://docs.wso2.com/display/AM200/Configuring+APIM+Analytics docs.wso2.com/display/DAS310/Quick+Start+Guide

但我收到以下错误:

org.wso2.carbon.databridge.core.exception.EventConversionException: Error when converting org.wso2.apimgt.statistics.request:1.1.0 of event bundle with events 1
    at org.wso2.carbon.databridge.receiver.thrift.converter.ThriftEventConverter.createEventList(ThriftEventConverter.java:181)
    at org.wso2.carbon.databridge.receiver.thrift.converter.ThriftEventConverter.toEventList(ThriftEventConverter.java:90)
    at org.wso2.carbon.databridge.core.internal.queue.QueueWorker.run(QueueWorker.java:73)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.wso2.carbon.databridge.core.exception.EventConversionException: No StreamDefinition for streamId org.wso2.apimgt.statistics.request:1.1.0 present in cache
    at org.wso2.carbon.databridge.receiver.thrift.converter.ThriftEventConverter.createEventList(ThriftEventConverter.java:166)
    ... 7 more
[2016-10-08 16:05:49,621] ERROR  {org.wso2.carbon.databridge.core.internal.queue.QueueWorker} -  Dropping wrongly formatted event sent for -1234
org.wso2.carbon.databridge.core.exception.EventConversionException: Error when converting org.wso2.apimgt.statistics.execution.time:1.0.0 of event bundle with events 1
    at org.wso2.carbon.databridge.receiver.thrift.converter.ThriftEventConverter.createEventList(ThriftEventConverter.java:181)
    at org.wso2.carbon.databridge.receiver.thrift.converter.ThriftEventConverter.toEventList(ThriftEventConverter.java:90)
    at org.wso2.carbon.databridge.core.internal.queue.QueueWorker.run(QueueWorker.java:73)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.wso2.carbon.databridge.core.exception.EventConversionException: No StreamDefinition for streamId org.wso2.apimgt.statistics.execution.time:1.0.0 present in cache
    at org.wso2.carbon.databridge.receiver.thrift.converter.ThriftEventConverter.createEventList(ThriftEventConverter.java:166)
    ... 7 more
[2016-10-08 16:05:49,625] ERROR {org.wso2.carbon.databridge.core.internal.queue.QueueWorker} -  Dropping wrongly formatted event sent for -1234
org.wso2.carbon.databridge.core.exception.EventConversionException: Error when converting org.wso2.apimgt.statistics.response:1.1.0 of event bundle with events 1
    at org.wso2.carbon.databridge.receiver.thrift.converter.ThriftEventConverter.createEventList(ThriftEventConverter.java:181)
    at org.wso2.carbon.databridge.receiver.thrift.converter.ThriftEventConverter.toEventList(ThriftEventConverter.java:90)
    at org.wso2.carbon.databridge.core.internal.queue.QueueWorker.run(QueueWorker.java:73)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.wso2.carbon.databridge.core.exception.EventConversionException: No StreamDefinition for streamId org.wso2.apimgt.statistics.response:1.1.0 present in cache
    at org.wso2.carbon.databridge.receiver.thrift.converter.ThriftEventConverter.createEventList(ThriftEventConverter.java:166)

由于服务器没有获得某些流定义,
我还尝试部署 APIM_Realtime_Analytics_REST.car(来自以前版本的 DAS)但无济于事。我也遇到了类似的例外情况

我该如何纠正这个问题?
提前致谢!

【问题讨论】:

    标签: exception wso2 wso2carbon wso2-am wso2-das


    【解决方案1】:

    正如the document you are referring to 中提到的,现在 APIM 拥有自己的 Analytics Server,它是一个定制的 DAS。因此,现在您只需进行很少的配置即可查看 API 统计信息。该发行版也已经安装了 CApps。所以你不需要手动安装它们。

    但是,据我了解,您使用的是普通 DAS 服务器而不是 APIM 分析服务器。如果可能的话,请尝试一下。如果由于某种原因不能,请从该发行版中获取汽车文件并将其安装在 DAS 中。那应该可以解决您的问题。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多