Hi sajith,

This happens because you are using the same streamd Id (stream name +
version), and expecting to have two different stream definitions, which is
wrong. Therefore please change the stream Id by changing the stream name Or
the version in the BAM mediator, and update the necessary proxy
configuration at ESB to get the BAM mediators changes, then try the
scenario. It should work.

Thanks,
Sinthuja.

On Mon, Jun 22, 2015 at 12:28 PM, Sajith Kariyawasam <saj...@wso2.com>
wrote:

> Hi,
>
> I'm using BAM mediator and had few BAM server profiles defined, and did
> some modifications to the stream configurations. When the mediator is
> invoked I was getting the exception [1]
> Then figured out its because I had same stream id with different configs.
> Therefore, keeping only one profile, I deleted others. But still I'm
> getting that exception.
> I guess its because of [2]  and which is not yet fixed.
>
> Is there any workaround to get this working? Do I have to uninstall the
> BAM features and re install it in ESB side?
> Or, should removing <BAM>/repository/database/cassandra folder solve this
> issue?
>
>
> [1] [2015-06-22 12:19:30,867] ERROR - AsyncDataPublisher Stream definition
> already exist
> org.wso2.carbon.databridge.commons.exception.DifferentStreamDefinitionAlreadyDefinedException:
> Same stream id with different definition already defined before sending
> this event definitions to TCP,localhost:7711,TCP,localhost:7711
> at
> org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.EventPublisher.defineStream(EventPublisher.java:237)
> at
> org.wso2.carbon.databridge.agent.thrift.DataPublisher.defineStream(DataPublisher.java:295)
> at
> org.wso2.carbon.databridge.agent.thrift.AsyncDataPublisher$DataPublishWorker.run(AsyncDataPublisher.java:690)
> at java.lang.Thread.run(Thread.java:744)
> Caused by:
> org.wso2.carbon.databridge.commons.exception.DifferentStreamDefinitionAlreadyDefinedException:
> Thrift Different Stream Definition Already Defined
> at
> org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.ThriftEventPublisher.defineStream(ThriftEventPublisher.java:112)
> at
> org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.EventPublisher.defineStream(EventPublisher.java:222)
> ... 3 more
> Caused by:
> ThriftDifferentStreamDefinitionAlreadyDefinedException(message:Similar
> event stream for {
>
> [2] https://wso2.org/jira/browse/BAM-1134
>
>
> Thanks,
> Sajith
>
>
> --
> Sajith Kariyawasam
> *Committer and PMC member, Apache Stratos, *
> *WSO2 Inc.; http://wso2.com <http://wso2.com>*
> *Mobile: 0772269575 <0772269575>*
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Sinthuja Rajendran*
Associate Technical Lead
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