Hi Chandana,

Thanks for the respond. I'll create an UI automation test case and will
update the result.

Thanks,
Sithumini

On Thu, Mar 5, 2015 at 2:55 PM, Chandana Napagoda <chand...@wso2.com> wrote:

> HI Sithumini,
>
> According to the stacktrace this SOF error is coming form the UI laye[1]r.
> So I think you need to write an UI automation test case for this use case.
>
> [1] ID: [0] [Greg] [2015-03-05 14:45:08,790] ERROR
> {org.apache.tiles.jsp.taglib.RenderTagSupport} -  Error during rendering
> {org.apache.tiles.jsp.taglib.RenderTagSupport}
> java.lang.StackOverflowError
>     at
> org.apache.catalina.session.StandardSession.isValid(StandardSession.java:637)
>     at
> org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:536)
>     at
> javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:259)
>     at
> org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:571)
>     at
> javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:259)
>     at
> org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:571)
>     at
> javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:259)
>     at
> org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:571)
>     at
> org.wso2.carbon.context.internal.CarbonContextDataHolder.getCurrentCarbonContextHolder(CarbonContextDataHolder.java:533)
>     at
> org.wso2.carbon.context.internal.CarbonContextDataHolder.getCurrentCarbonContextHolder(CarbonContextDataHolder.java:568)
>
> Regards,
> Chandana
>
> On Thu, Mar 5, 2015 at 12:00 PM, Sithumini Senevirathne <
> sithumi...@wso2.com> wrote:
>
>> Hi Chandana,
>>
>> Can you please share the test case, you have written?
>>>
>>>>
>>>>
>> Please find the test case at [1].
>>
>> [1]
>> https://github.com/Sithumini/Registry1103TestCase/blob/master/Registry1103TestCase.java
>>
>> Hi Sanath,
>>
>>
>>> As we discussed yesterday, did you check with GReg team about why the
>>>> option to set the  endpoint name and version is not available in the method
>>>> you are using ? Can that have a impact to this behavior?
>>>>
>>>
>>
>> Yes, I discussed that problem with chandana. His suggestion was to create
>> the endpoint using GenericArtifactManager not using the EndpointManager.
>> And now this problem is solved.  As instructed endpoint is created
>> using GenericArtifactManager and endpoint name and the version is set. I
>> think that doesn't have an impact on this behaviour.
>>
>> Thanks,
>> Sithumini
>>
>>
>>
>>
>>
>>
>>
>>
>> Thanks and Best Regards,
>>>>
>>>> Saneth Dharmakeerthi
>>>> Senior Software Engineer
>>>> WSO2, Inc.
>>>> Mobile: +94772325511
>>>>
>>>> On Wed, Mar 4, 2015 at 10:29 PM, Sithumini Senevirathne <
>>>> sithumi...@wso2.com> wrote:
>>>>
>>>>> Hi Sagara,
>>>>>
>>>>> Yes, I have already talked to them.
>>>>>
>>>>> Thanks,
>>>>> Sithumini
>>>>>
>>>>> On Wed, Mar 4, 2015 at 9:51 PM, Sagara Gunathunga <sag...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>>
>>>>>> Did you talk to Krishantha or someone from automation team about the
>>>>>> issue ?
>>>>>>
>>>>>> Thanks !
>>>>>>
>>>>>> On Wed, Mar 4, 2015 at 9:28 PM, Sithumini Senevirathne <
>>>>>> sithumi...@wso2.com> wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> Currently I am working on writing a test case.
>>>>>>> The problem context is when login to the registry through a tenant
>>>>>>> user and when we create an endpoint then SOF errors are thrown. Errors 
>>>>>>> can
>>>>>>> be found in carbon.log file.
>>>>>>>
>>>>>>> So in test case I followed below steps.
>>>>>>>
>>>>>>>    - Created an tenant.
>>>>>>>    - Logged in to the registry through the tenant.
>>>>>>>    - Added an endpoint using registry GenericArtifactManager.
>>>>>>>    - Read the log file to find the error.
>>>>>>>
>>>>>>> But here SOF error is not thrown. Then I manually add an endpoint
>>>>>>> and found the SOF error was thrown. Even the endpoint added through the
>>>>>>> code was not listed in the registry management console metadata list. 
>>>>>>> But
>>>>>>> both endpoints have been created at the correct path.
>>>>>>>
>>>>>>> location of endpoint add in test case code level :
>>>>>>>
>>>>>>> /_system/governance/mediation/mediationdata/endpoint/endpoint1/1.0.0/endpoint
>>>>>>>
>>>>>>> location of manually added endpoint :
>>>>>>>
>>>>>>> /_system/governance/mediation/mediationdata/endpoint/TestEndpoint1/2.0.0/endpoint
>>>>>>>
>>>>>>> This behaviour has become a blocker for this test.
>>>>>>> Can someone explain me the reason for this behaviour? Is there other
>>>>>>> way to overcome this?
>>>>>>>
>>>>>>>
>>>>>>> Thank you,
>>>>>>> Sithumini
>>>>>>> --
>>>>>>> --
>>>>>>> Sithumini Senevirathne
>>>>>>> Software Engineer
>>>>>>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>>>>>>
>>>>>>> email: sithumi...@wso2.com,   mobile: +94 756977999
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Sagara Gunathunga
>>>>>>
>>>>>> Senior Technical Lead; WSO2, Inc.;  http://wso2.com
>>>>>> V.P Apache Web Services;    http://ws.apache.org/
>>>>>> Linkedin; http://www.linkedin.com/in/ssagara
>>>>>> Blog ;  http://ssagara.blogspot.com
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> --
>>>>> Sithumini Senevirathne
>>>>> Software Engineer
>>>>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>>>>
>>>>> email: sithumi...@wso2.com,   mobile: +94 756977999
>>>>>
>>>>> _______________________________________________
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> *Chandana Napagoda*
>>> Senior Software Engineer
>>> WSO2 Inc. - http://wso2.org
>>>
>>> *Email  :  chand...@wso2.com <chand...@wso2.com>**Mobile : +94718169299
>>> <%2B94718169299>*
>>>
>>> *Blog  :    http://cnapagoda.blogspot.com
>>> <http://cnapagoda.blogspot.com>*
>>>
>>>
>>
>>
>> --
>> --
>> Sithumini Senevirathne
>> Software Engineer
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> email: sithumi...@wso2.com,   mobile: +94 756977999
>>
>
>
>
> --
> *Chandana Napagoda*
> Senior Software Engineer
> WSO2 Inc. - http://wso2.org
>
> *Email  :  chand...@wso2.com <chand...@wso2.com>**Mobile : +94718169299
> <%2B94718169299>*
>
> *Blog  :    http://cnapagoda.blogspot.com <http://cnapagoda.blogspot.com>*
>
>


-- 
-- 
Sithumini Senevirathne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

email: sithumi...@wso2.com,   mobile: +94 756977999
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to