Not sure.. If it relates to the refactoring, then it should be common for all hostobjects, not just File. I couldn't even reproduce the issue locally.
Lalaji, Can you please update/build relevant components again and check whether you are still getting it. On Fri, Jun 8, 2012 at 7:58 PM, Nuwan Bandara <nu...@wso2.com> wrote: > Hi Ruchira, > > Can this be a consequence of recent Mashup + Jaggery re-factoring ? > > Regards, > /Nuwan > > > On Fri, Jun 8, 2012 at 6:18 PM, Lalaji Sureshika <lal...@wso2.com> wrote: > >> Hi, >> >> With today's [08/06/12] built APIManager pack,when a user tries to *add >> an API with a thumbnail* for it,following error shown in the console >> and adding of API is failing. >> >> We are using the *Request HostObject 'getFile' *method to retrieve >> thumbnail from the form submit. Is there any code changes happened lately >> for the request host object or what am I missing here? >> >> Appreciate any help regarding this. >> >> >> [1] Caused by: org.mozilla.javascript.EvaluatorException: Constructor for >> "File" not found. (/apiprovider/site/blocks/item-add/ajax/add.jag#5) >> at >> org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:109) >> at org.mozilla.javascript.Context.reportRuntimeError(Context.java:922) >> at org.mozilla.javascript.Context.reportRuntimeError(Context.java:978) >> at org.mozilla.javascript.Context.reportRuntimeError1(Context.java:941) >> at >> org.mozilla.javascript.ScriptRuntime.getExistingCtor(ScriptRuntime.java:1179) >> at org.mozilla.javascript.Context.newObject(Context.java:1403) >> at >> org.wso2.carbon.hostobjects.web.RequestHostObject.parseMultipart(RequestHostObject.java:362) >> at >> org.wso2.carbon.hostobjects.web.RequestHostObject.parse(RequestHostObject.java:330) >> at >> org.wso2.carbon.hostobjects.web.RequestHostObject.jsFunction_getParameter(RequestHostObject.java:293) >> at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:597) >> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:160) >> at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:411) >> at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66) >> at >> org.wso2.carbon.rhino.site.blocks.item_add.ajax.c0._c1(/apiprovider/site/blocks/item-add/ajax/add.jag:5) >> at >> org.wso2.carbon.rhino.site.blocks.item_add.ajax.c0.call(/apiprovider/site/blocks/item-add/ajax/add.jag) >> at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:57) >> at >> org.wso2.carbon.rhino.site.blocks.item_add.ajax.c0._c0(/apiprovider/site/blocks/item-add/ajax/add.jag:4) >> at >> org.wso2.carbon.rhino.site.blocks.item_add.ajax.c0.call(/apiprovider/site/blocks/item-add/ajax/add.jag) >> at >> org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:401) >> at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3003) >> at >> org.wso2.carbon.rhino.site.blocks.item_add.ajax.c0.call(/apiprovider/site/blocks/item-add/ajax/add.jag) >> at >> org.wso2.carbon.rhino.site.blocks.item_add.ajax.c0.exec(/apiprovider/site/blocks/item-add/ajax/add.jag) >> at >> org.wso2.carbon.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:476) >> >> >> >> -- >> Lalaji Sureshika >> >> Software Engineer >> WSO2 Inc. >> >> >> > > > -- > *Thanks & Regards, > > Nuwan Bandara > Associate Technical Lead & Member, MC, Development Technologies > WSO2 Inc. - lean . enterprise . middleware | http://wso2.com > blog : http://nuwanbando.com; email: nu...@wso2.com; phone: +94 11 763 > 9629 > * > <http://www.nuwanbando.com/> > -- *Ruchira Wageesha Senior Software Engineer & Member, Management Committee, Development Technologies* *WSO2 Inc. - lean . enterprise . middleware | wso2.com* * email: ruch...@wso2.com, blog: ruchirawageesha.blogspot.com, mobile: +94 77 5493444*
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev