Hi Chanaka,

With all due respect, I tried the updated configuration in the wiki and it
didn't work for me. Then I applied the provided patch and tried the
scenario it didn't work either. Afterwards, I did some debugging to see
what is exactly happening.

When we refer the localentry within sequence mediator it calls
getSequence[1] method which replaces the Entry object's value with
Mediator object.
So, by the time the serializeEntry [2] method is called it gets a Mediator
object rather the expected OMElement. That's where the root cause of the
problem lies. It's not associate with <description> element.

*Note* : As mentioned in a previous mail, This only happens when we use the
source view and hit update.

Therefore, AFAIU, the bug is with the ESB-4.8.0's code not in the
documentation.

Nevertheless, were you able to test the complete scenario ? maybe I am
missing out something. So, please do correct me if I am wrong :).

[1]
https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/dependencies/synapse/2.1.2-wso2v2/modules/core/src/main/java/org/apache/synapse/config/SynapseConfiguration.java


[2]
https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/dependencies/synapse/2.1.2-wso2v2/modules/core/src/main/java/org/apache/synapse/config/xml/EntrySerializer.java


On Sun, Dec 8, 2013 at 7:54 AM, Chanaka Fernando <chana...@wso2.com> wrote:

> Hi Shafreen,
>
> This is not merely a bug in ESB. It is a bug in sample synapse
> configuration. In the local entry definition, <description> tag is missing
> in the synapse configuration. If you include this tag it will work without
> any issue.
>
> @Maduranga: try using the following configuration.
>
>    <localEntry key="local-entry-sequence-key">
>
>       <sequence name="dynamic_sequence">
>          <log level="custom">
>             <property name="message" value="*** Test Message 1 ***"/>
>          </log>
>       </sequence>
>       <description/>
>    </localEntry>
>
> @Samisa: Issue has been fixed. Documentation has been updated and the
> patch file has been attached to the jira.
>
>
> Thanks,
> Chanaka
>
>
>
> On Fri, Dec 6, 2013 at 1:16 AM, Shafreen Anfar <shafr...@wso2.com> wrote:
>
>> Hi Samisa,
>>
>> No. It is a bug in ESB-4.8.0 and we filed the below JIRA to track this
>> bug.
>> https://wso2.org/jira/browse/ESBJAVA-2822
>>
>>
>> On Fri, Dec 6, 2013 at 11:19 AM, Samisa Abeysinghe <sam...@wso2.com>wrote:
>>
>>> Is the bug in the sample?
>>>
>>> Thanks,
>>> Samisa...
>>>
>>>
>>> Samisa Abeysinghe
>>>
>>> Vice President Training
>>>
>>> WSO2 Inc.
>>> http://wso2.com
>>>
>>>
>>>
>>> On Fri, Dec 6, 2013 at 11:17 AM, Shafreen Anfar <shafr...@wso2.com>wrote:
>>>
>>>> Hi Maduranga,
>>>>
>>>> I tried it with ESB-4.8.0 and I also came-across the same issue. It
>>>> seems there is a bug. However, the problem occurs when you refer the
>>>> localentry from the sequence element, which is not a valid use-case.
>>>> Because you can simply define a sequence and refer it without using a
>>>> localentry. It is there for the sake of the sample 14.
>>>>
>>>> Anyway, it seems there is a bug.
>>>>
>>>>
>>>> On Tue, Dec 3, 2013 at 1:27 PM, Samisa Abeysinghe <sam...@wso2.com>wrote:
>>>>
>>>>> ESB 4.8.0 will be released soon (the pack is final)
>>>>>
>>>>> So try with the latest version and if it does not work, then file a
>>>>> bug in Jira.
>>>>>
>>>>> Thanks,
>>>>> Samisa...
>>>>>
>>>>>
>>>>> Samisa Abeysinghe
>>>>>
>>>>> Vice President Training
>>>>>
>>>>> WSO2 Inc.
>>>>> http://wso2.com
>>>>>
>>>>>
>>>>>
>>>>> On Tue, Dec 3, 2013 at 1:01 PM, Maduranga Siriwardena <
>>>>> madura...@wso2.com> wrote:
>>>>>
>>>>>> Hi all,
>>>>>> I'm a intern of WSO2. I downloaded ESB 4.8.0 from atuwa [1] (Later I
>>>>>> realized that the latest released version is 4.7.0) So I followed samples
>>>>>> given in 4.7.0 documentation (with ESB version 4.8.0). In the sample 14
>>>>>> [2], when I add the bellow xml part in the synapse file and update from
>>>>>> source view, sequence element disappears. But still the expected log 
>>>>>> entry
>>>>>> is made. But if I just click update again, without making any changes, 
>>>>>> the
>>>>>> expected log entry is not made. Can someone please help me understand 
>>>>>> what
>>>>>> is happening here?
>>>>>>
>>>>>> <localEntry key="local-enrty-sequence-key">
>>>>>>          <sequence name="dynamic_sequence">
>>>>>>              <log level="custom">
>>>>>>                  <property name="message" value="*** Test Message 1
>>>>>> ***"/>
>>>>>>              </log>
>>>>>>          </sequence>
>>>>>>  </localEntry>
>>>>>>
>>>>>>
>>>>>> [1] http://atuwa.private.wso2.com/products/ESB/wso2esb-4.8.0.zip
>>>>>> [2]
>>>>>> http://docs.wso2.org/display/ESB470/Sample+14%3A+Sequences+and+Endpoints+as+Local+Registry+Items
>>>>>>
>>>>>> Thank you.
>>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Regards,
>>>> *Shafreen*
>>>> Software Engineer
>>>> WSO2 Inc
>>>> Mobile : 077-556-395-1
>>>>
>>>
>>>
>>
>>
>> --
>> Regards,
>> *Shafreen*
>> Software Engineer
>> WSO2 Inc
>> Mobile : 077-556-395-1
>>
>> _______________________________________________
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> --
> Chanaka Fernando
> Technical Lead
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 773337238
> Blog : http://soatutorials.blogspot.com
> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
> Twitter:https://twitter.com/chanakaudaya
> Wordpress:http://chanakaudaya.wordpress.com
>
>
>
>


-- 
Regards,
*Shafreen*
Software Engineer
WSO2 Inc
Mobile : 077-556-395-1
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to