Setting up statistics is a one time thing for most the deployments.
Changing this dynamically is not a useful scenario to check.
The particular error comes if the message sent from AM (stat source) to BAM
(storage) does not match. If Toolbox is deployed correctly, these stream
definitions should match.



On Mon, May 5, 2014 at 11:55 AM, Asanthi Kulasinghe <[email protected]>wrote:

> Hi,
>
> Is switching from one BAM instance to another without restarting
> API-Manager, a valid scenario ?
>
> The following error is generated when invoking an API after changing the
> BAM instance. (Reported under [1])
> The scenario which lead to this error was switching from a BAM 2.4.0
> instance to a BAM 2.4.1 instance in a API Manager 1.7.0. clustered set up.
>
> [2014-05-04 19:50:11,490] ERROR
> {org.wso2.carbon.databridge.core.internal.queue.QueueWorker} - Wrongly
> formatted event sent for carbon.super
> org.wso2.carbon.databridge.core.exception.EventConversionException: Error
> when converting org.wso2.apimgt.statistics.request:1.0.0 of event bundle
> with events 1
> at
> org.wso2.carbon.databridge.receiver.thrift.converter.ThriftEventConverter.createEventList(ThriftEventConverter.java:126)
> at
> org.wso2.carbon.databridge.receiver.thrift.converter.ThriftEventConverter.toEventList(ThriftEventConverter.java:88)
> at
> org.wso2.carbon.databridge.core.internal.queue.QueueWorker.run(QueueWorker.java:72)
> 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.request:1.0.0
> present in cache
> at
> org.wso2.carbon.databridge.receiver.thrift.converter.ThriftEventConverter.createEventList(ThriftEventConverter.java:112)
> ... 7 more
>
> [1] https://wso2.org/jira/browse/APIMANAGER-2275
>
> Regards
> Asanthi
>
>
> --
> *Asanthi Kulasinghe*
> WSO2 Inc; http://www.wso2.com/.
> Mobile: +94777355522
>
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
/sumedha
m: +94 773017743
b :  bit.ly/sumedha
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to