WSO2 DAS服务器配置问题 - 删除为-1234发送的格式错误的事件

时间:2016-05-20 12:48:27

标签: wso2 wso2-am wso2-das

我使用REST客户端使用API​​管理器服务器配置了DAS,但无法将数据推送到DAS服务器。请参阅DAS服务器中的错误日志。你能帮我理解配置中有什么问题吗?

TID: [-1234] [] [2016-05-20 18:07:05,566] ERROR {org.wso2.carbon.databridge.core.internal.queue.QueueWorker} -  Dropping wrongly formatted event sent for -1234 {org.wso2.carbon.databridge.core.internal.queue.QueueWorker}
org.wso2.carbon.databridge.core.exception.EventConversionException: Error when converting org.wso2.apimgt.statistics.throttle: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:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        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:744)
Caused by: org.wso2.carbon.databridge.core.exception.EventConversionException: No StreamDefinition for streamId org.wso2.apimgt.statistics.throttle:1.0.0 present in cache
        at org.wso2.carbon.databridge.receiver.thrift.converter.ThriftEventConverter.createEventList(ThriftEventConverter.java:166)
        ... 7 more

1 个答案:

答案 0 :(得分:0)

您可以再次尝试重新部署汽车应用。为此首先做以下

  1. 从/ repository / deployment / server / carbonapps
  2. 删除.car应用程序
  3. 通过登录DAS管理控制台并转到Manage > Event > Streams
  4. ,删除所有现有的流defs(与APIM统计信息相关)
  5. 将汽车应用程序放入/ repository / deployment / server / carbonapps
  6. 重新部署

    如果一切顺利,您会在Manage > Batch Analytics > Scripts部分看到两个脚本。尝试执行每个脚本,看看是否有任何错误。