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 <[email protected]>wrote: > 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 <[email protected]>wrote: > >> 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 could be >> clicking on the submit button before page loads (dom loads), invalid values >> for dom entries which you are reading etc. Not always true but could >> happen. Try to log all the request parameters which you are passing from UI >> and see whether it is reaching the backend by logging. In this scenario >> other parameters also will be empty. >> >> Alternatively this could also be because of the dataType. jagg.post >> wrapper does not pass the dataType here so it will be a guess from the >> server side. Try to set the data type explicitly as well. >> >> Regards, >> >> Dilshan >> >> >> On Tue, May 7, 2013 at 2:42 PM, Manjula Rathnayake <[email protected]>wrote: >> >>> 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(){ >>> jagg.post("../blocks/application/add/ajax/add.jag", { >>> * action:"createNewApplication*", >>> >>> applicationName:$("#applicationName").attr('value'), >>> >>> applicationKey:$("#applicationKey").attr('value'), >>> >>> applicationDescription:$("#applicationDescription").attr('value'), >>> >>> applicationType:$("#applicationType").attr('value'), >>> >>> repositoryType:$("#repositoryType").attr('value'), >>> userName:$("#userName").attr('value') >>> }, >>> ... >>> >>> thank you. >>> >>> >>> >>> On Tue, May 7, 2013 at 2:22 PM, Nuwan Bandara <[email protected]> wrote: >>> >>>> 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 >>>> <[email protected]>wrote: >>>> >>>>> 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 new Error("No action specified"); >>>>> } >>>>> >>>>> >>>>> thank you. >>>>> >>>>> >>>>> >>>>> On Tue, May 7, 2013 at 1:58 PM, Nuwan Bandara <[email protected]> wrote: >>>>> >>>>>> whats in (/appmgt/site/blocks/application/add/ajax/add.jag#140 >>>>>> >>>>>> Regards, >>>>>> /Nuwan >>>>>> >>>>>> >>>>>> On Tue, May 7, 2013 at 1:55 PM, Manjula Rathnayake <[email protected] >>>>>> > wrote: >>>>>> >>>>>>> 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) >>>>>>> {org.jaggeryjs.jaggery.core.manager.WebAppManager} >>>>>>> org.jaggeryjs.scriptengine.exceptions.ScriptException: >>>>>>> org.mozilla.javascript.JavaScriptException: Error: No action specified >>>>>>> (/appmgt/site/blocks/application/add/ajax/add.jag#140) >>>>>>> at >>>>>>> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:446) >>>>>>> at >>>>>>> org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:191) >>>>>>> at >>>>>>> org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:269) >>>>>>> at >>>>>>> org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29) >>>>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:755) >>>>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) >>>>>>> at >>>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) >>>>>>> at >>>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) >>>>>>> at >>>>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) >>>>>>> at >>>>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) >>>>>>> at >>>>>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) >>>>>>> at >>>>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) >>>>>>> at >>>>>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) >>>>>>> at >>>>>>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:177) >>>>>>> at >>>>>>> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:161) >>>>>>> at >>>>>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936) >>>>>>> at >>>>>>> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57) >>>>>>> at >>>>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) >>>>>>> at >>>>>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) >>>>>>> at >>>>>>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004) >>>>>>> at >>>>>>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) >>>>>>> at >>>>>>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653) >>>>>>> at >>>>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) >>>>>>> at >>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) >>>>>>> at java.lang.Thread.run(Thread.java:722) >>>>>>> Caused by: org.mozilla.javascript.JavaScriptException: Error: No >>>>>>> action specified (/appmgt/site/blocks/application/add/ajax/add.jag#140) >>>>>>> at >>>>>>> org.jaggeryjs.rhino.appmgt.site.blocks.application.add.ajax.c0._c1(/appmgt/site/blocks/application/add/ajax/add.jag:140) >>>>>>> at >>>>>>> org.jaggeryjs.rhino.appmgt.site.blocks.application.add.ajax.c0.call(/appmgt/site/blocks/application/add/ajax/add.jag) >>>>>>> at >>>>>>> org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:57) >>>>>>> at >>>>>>> org.jaggeryjs.rhino.appmgt.site.blocks.application.add.ajax.c0._c0(/appmgt/site/blocks/application/add/ajax/add.jag:9) >>>>>>> at >>>>>>> org.jaggeryjs.rhino.appmgt.site.blocks.application.add.ajax.c0.call(/appmgt/site/blocks/application/add/ajax/add.jag) >>>>>>> at >>>>>>> org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:401) >>>>>>> at >>>>>>> org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3003) >>>>>>> at >>>>>>> org.jaggeryjs.rhino.appmgt.site.blocks.application.add.ajax.c0.call(/appmgt/site/blocks/application/add/ajax/add.jag) >>>>>>> at >>>>>>> org.jaggeryjs.rhino.appmgt.site.blocks.application.add.ajax.c0.exec(/appmgt/site/blocks/application/add/ajax/add.jag) >>>>>>> at >>>>>>> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:441) >>>>>>> ... 24 more >>>>>>> >>>>>>> >>>>>>> thank you. >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Manjula Rathnayaka >>>>>>> Software Engineer >>>>>>> WSO2, Inc. >>>>>>> Mobile:+94 77 743 1987 >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> *Thanks & Regards, >>>>>> >>>>>> Nuwan Bandara >>>>>> Associate Technical Lead & Member, MC, Development Technologies >>>>>> WSO2 Inc. - lean . enterprise . middleware | http://wso2.com >>>>>> blog : http://nuwanbando.com; email: [email protected]; phone: +94 11 >>>>>> 763 9629 >>>>>> * >>>>>> <http://www.nuwanbando.com/> >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Manjula Rathnayaka >>>>> Software Engineer >>>>> WSO2, Inc. >>>>> Mobile:+94 77 743 1987 >>>>> >>>> >>>> >>>> >>>> -- >>>> *Thanks & Regards, >>>> >>>> Nuwan Bandara >>>> Associate Technical Lead & Member, MC, Development Technologies >>>> WSO2 Inc. - lean . enterprise . middleware | http://wso2.com >>>> blog : http://nuwanbando.com; email: [email protected]; phone: +94 11 763 >>>> 9629 >>>> * >>>> <http://www.nuwanbando.com/> >>>> >>> >>> >>> >>> -- >>> Manjula Rathnayaka >>> Software Engineer >>> WSO2, Inc. >>> Mobile:+94 77 743 1987 >>> >>> _______________________________________________ >>> Dev mailing list >>> [email protected] >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > > *Asanka Dissanayake > Software Engineer* > *WSO2 Inc. - lean . enterprise . middleware | wso2.com* > * > email: [email protected] <[email protected]>, blog: > cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com mobile: +94 71 > 8373821* > -- *Asanka Dissanayake Software Engineer* *WSO2 Inc. - lean . enterprise . middleware | wso2.com* * email: [email protected] <[email protected]>, blog: cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com mobile: +94 71 8373821*
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
