Hi Asanthi,


On Mon, May 5, 2014 at 8:25 AM, Asanthi Kulasinghe <asan...@wso2.com> wrote:

> Hi,
>
> Is switching from one BAM instance to another without restarting
> API-Manager, a valid scenario ?
>

It's valid if both BAM receivers point to the same cassandra database as in
recommended BAM deployments we cluster the BAM receivers by pointing to the
same cassandra cluster not independent cassandra nodes.

Thanks,
Sinthuja.

>
> 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
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Sinthuja Rajendran*
Senior Software Engineer <http://wso2.com/>
WSO2, Inc.:http://wso2.com

Blog: http://sinthu-rajan.blogspot.com/
Mobile: +94774273955
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to