Re: [Dev] [AppFactory] Intermittent issue that appear in all AppFactory setups

2013-05-13 Thread Asanka Dissanayake
Hi, Found a possible reason for this issue. There are some ajax calls in some Template.jag files written for page loading event without using $(document).ready().I m going to fix this and patch the staging.Then we can go through logs again and confirm whether it is fixed. cheers!! On Mon, May

Re: [Dev] [AppFactory] Intermittent issue that appear in all AppFactory setups

2013-05-13 Thread Manjula Rathnayake
Hi AsankaD, Please check places where we have used jagg.post() too. thank you. On Mon, May 13, 2013 at 11:35 AM, Asanka Dissanayake asan...@wso2.comwrote: Hi, Found a possible reason for this issue. There are some ajax calls in some Template.jag files written for page loading event without

Re: [Dev] [AppFactory] Intermittent issue that appear in all AppFactory setups

2013-05-12 Thread Asanka Dissanayake
Hi All, I tried this using a RestClient. I could reproduce this by not sending the Content-Type header with the request. AFAIT, dropping headers might be the reason. On Fri, May 10, 2013 at 4:59 PM, Asanka Dissanayake asan...@wso2.comwrote: Hi All, I got the same issue when calling ,

Re: [Dev] [AppFactory] Intermittent issue that appear in all AppFactory setups

2013-05-12 Thread Asanka Dissanayake
Hi, Checked the logs on staging for past few days.There are number of occurances of this issue .But not in the file mentioned in the beginning of this thread. In this thread, file is /appmgt/site/blocks/application/add/ajax/add.jag. But in the staging,there are several files have been subjected to

Re: [Dev] [AppFactory] Intermittent issue that appear in all AppFactory setups

2013-05-10 Thread Asanka Dissanayake
Hi All, I got the same issue when calling , /appmgt/site/blocks/user/login/ajax/login.jag action parameter is passed.I checked with a log in the module. this is the reason for https://wso2.org/jira/browse/APPFAC-875 cheers On Wed, May 8, 2013 at 1:21 AM, Dilshan Edirisuriya

[Dev] [AppFactory] Intermittent issue that appear in all AppFactory setups

2013-05-07 Thread Manjula Rathnayake
Hi all, Following intermittent error is noticed. Any idea/clue please. ERROR {org.jaggeryjs.jaggery.core.manager.WebAppManager} - org.mozilla.javascript.JavaScriptException: Error: No action specified (/appmgt/site/blocks/application/add/ajax/add.jag#140)

Re: [Dev] [AppFactory] Intermittent issue that appear in all AppFactory setups

2013-05-07 Thread Nuwan Bandara
whats in (/appmgt/site/blocks/application/add/ajax/add.jag#140 Regards, /Nuwan On Tue, May 7, 2013 at 1:55 PM, Manjula Rathnayake manju...@wso2.comwrote: Hi all, Following intermittent error is noticed. Any idea/clue please. ERROR {org.jaggeryjs.jaggery.core.manager.WebAppManager} -

Re: [Dev] [AppFactory] Intermittent issue that appear in all AppFactory setups

2013-05-07 Thread Manjula Rathnayake
Hi Nuwan, Please note that this is intermittent. Here the error is action is missing in incoming httpRequest. But Why this become intermittent? var mod, obj, result, action = request.getParameter(action), site = require(/site/conf/site.json); // line 140 else { throw

Re: [Dev] [AppFactory] Intermittent issue that appear in all AppFactory setups

2013-05-07 Thread Nuwan Bandara
Am sure during those intermittent cases the action is not sent, this is pretty trivial code block, if the item is not in the request then its throwing the error. Regards, /Nuwan On Tue, May 7, 2013 at 2:06 PM, Manjula Rathnayake manju...@wso2.comwrote: Hi Nuwan, Please note that this is

Re: [Dev] [AppFactory] Intermittent issue that appear in all AppFactory setups

2013-05-07 Thread Manjula Rathnayake
Hi Nuwan, Please find the corresponding code block in template.jag which do the post to above page. Here we are setting the action. Any possible scenario that above block get executed without these post parameters? function createApplicationSubmit(){

Re: [Dev] [AppFactory] Intermittent issue that appear in all AppFactory setups

2013-05-07 Thread Dilshan Edirisuriya
Hi Manjula, jagg.post is a wrapper function for jQuery.ajax. There are possible ways this could get failed. It seems the data parameter required for jquery post is not properly created in this scenario. If so it will go as null and will result this kind of error. Possible reproducible scenarios