Thanks Niranda and Rajeev your replies answered my question

On Thu, Oct 9, 2014 at 12:30 PM, Rajeev Sampath <[email protected]> wrote:

> Hi,
>
> This happens since the stream is already stored in the registry. You can
> either increment the version number of the modified stream or else delete
> the existing stream from the registry (Manage -> Event Streams in
> management console).
>
>
> Thanks
> Rajeev
>
> On Thu, Oct 9, 2014 at 11:34 AM, Shashika Karunatilaka <[email protected]
> > wrote:
>
>> Hi,
>> I'm in a process of running a sample using [1],
>> in the samples there are pre-defined event streams, i found that those
>> stream definitions can be found at  <CEP_HOME>
>> /samples/artifacts/sample-id/stream-definitions.xml.
>> If i tried to edit and add another attribute to
>> stream-definitions.xml's payloadData it gives me a error if i re run the
>> sample using [1].
>>
>> {DataBridgeDS}  Error redefining event stream of carbon.super:
>>
>>        {
>>
>>          "name": "UserLoginInputStream",
>>
>>          "version": "1.0.0",
>>
>>          "nickName": "login",
>>
>>          "description": "Handles event stream related to user login life
>> cycle.",
>>
>>          "payloadData": [
>>
>>                         {"name": "user_id",
>>
>>                          "type": "STRING"
>>
>>                         },
>>
>>                         {"name": "newly_added",
>>
>>                          "type": "STRING"
>>
>>                         }
>>
>>                         ]
>>
>>         }
>>
>>
>>
>> org.wso2.carbon.databridge.commons.exception.DifferentStreamDefinitionAlreadyDefinedException:
>> Cannot define Stream definition:{
>>
>>   "streamId": "UserLoginInputStream:1.0.0",
>>
>>   "name": "UserLoginInputStream",
>>
>>   "version": "1.0.0",
>>
>>   "nickName": "login",
>>
>>   "description": "Handles event stream related to user login life cycle.",
>>
>>   "payloadData": [
>>
>>     {
>>
>>       "name": "user_id",
>>
>>       "type": "STRING"
>>
>>     }
>>
>>   ]
>>
>> }, Another Stream with same name and version exist :{
>>
>>   "streamId": "UserLoginInputStream:1.0.0",
>>
>>   "name": "UserLoginInputStream",
>>
>>   "version": "1.0.0",
>>
>>   "nickName": "login",
>>
>>   "description": "Handles event stream related to user login life cycle.",
>>
>>   "payloadData": [
>>
>>     {
>>
>>       "name": "user_id",
>>
>>       "type": "STRING"
>>
>>     }
>>
>>   ]
>>
>> }
>> and if i add the same data, save it using management console and re run
>> the product using [1], it gives a similar kind of error with regard to that
>> newly added data. then this can be fixed by adding the same data which
>> added using management console to  <CEP_HOME>
>> /samples/artifacts/sample-id/stream-definitions.xml.
>> I found that there is another stream definition file in  
>> <CEP_HOME>/repository/conf/data-bridge
>> which updates the stream-definition when runnig the samples.
>>
>> My question is there any other way, file which stores the stream
>> definition other than above mentioned locations?
>>
>> [1]
>> https://docs.wso2.com/display/CEP310/Setting+up+CEP+Samples#SettingupCEPSamples-Prerequisites
>> --
>> Shashika Prabath Karunatilaka,
>> Software Engineer,
>> WSO2, Inc: http://wso2.com/
>> mobile : +94 77 7487792
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Rajeev Sampath
> Senior Software Engineer
> WSO2, Inc.; http://www.wso2.com.
>
> Mobile:
> * +94716265766 <%2B94716265766>*
>



-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to