[ 
https://wso2.org/jira/browse/MASHUP-1220?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yumani Ranaweera closed MASHUP-1220.
------------------------------------


Checked against Keith's comments. It worked.

Closing the defect.

> Error when executing following code on feed, entry, feed reader..
> -----------------------------------------------------------------
>
>                 Key: MASHUP-1220
>                 URL: https://wso2.org/jira/browse/MASHUP-1220
>             Project: WSO2 Mashup Server
>          Issue Type: Bug
>          Components: HostObjects
>    Affects Versions: Nightly
>         Environment: WinXP, JDK16, IE7
>            Reporter: Yumani Ranaweera
>            Assignee: Keith Godwin Chapman
>             Fix For: 2.0
>
>
>  The code is as below:
> ==================
> function Feed(){
> //Creating the Feed
> var feed = new Feed();
> feed.feedType = "rss_2.0";
> feed.title = "This is a test Feed";
> feed.description = "This feed demonstrates the use of Feed host object to 
> create an RSS 2.0 feed.";
> feed.link = "http://mashups.wso2.org/rss20.xml";;
> //Creating Entries in the Feed
> var entry = new Entry();
> entry.title = "This is a test entry.";
> entry.description = "This is a sample entry demonstrating the use of the 
> Entry host object.";
> feed.insertEntry(entry);
> var entry2 = new Entry();
> entry2.title = "This is another test entry.";
> entry2.description = "This is a sample entry demonstrating the use of the 
> Entry host object.";
> feed.insertEntry(entry2);
> // Writing the newly created Feed to a File
> var result = feed.writeTo("test-created-rss-feed.xml");
> }
> Error from ?tryit :
> ============
> <soapenv:Detail>
> <Exception>
> org.apache.axis2.AxisFault
>       at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
>       at 
> org.wso2.carbon.jsservices.messagereceiver.JavaScriptEngine.call(JavaScriptEngine.java:186)
>       at 
> org.wso2.carbon.jsservices.messagereceiver.JavaScriptEngine.call(JavaScriptEngine.java:210)
>       at 
> org.wso2.carbon.jsservices.messagereceiver.JavaScriptReceiver.invokeBusinessLogic(JavaScriptReceiver.java:195)
>       at 
> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
>       at 
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
>       at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:178)
>       at 
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)
>       at 
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>       at 
> org.eclipse.equinox.http.helper.FilterServletAdaptor$FilterChainImpl.doFilter(FilterServletAdaptor.java:56)
>       at 
> org.wso2.carbon.jsservices.custom.ui.CustomUIServletFilter.doFilter(CustomUIServletFilter.java:166)
>       at 
> org.eclipse.equinox.http.helper.FilterServletAdaptor.service(FilterServletAdaptor.java:37)
>       at 
> org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
>       at 
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
>       at 
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:67)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>       at org.wso2.carbon.bridge.BridgeServlet.service(BridgeServlet.java:132)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>       at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
>       at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>       at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
>       at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
>       at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>       at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
>       at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
>       at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
>       at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
>       at 
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
>       at 
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
>       at 
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
>       at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
>       at java.lang.Thread.run(Thread.java:619)
> Caused by: java.lang.StackOverflowError
>       at 
> org.mozilla.javascript.IdScriptableObject.get(IdScriptableObject.java:374)
>       at 
> org.mozilla.javascript.ImporterTopLevel.get(ImporterTopLevel.java:128)
>       at 
> org.mozilla.javascript.ScriptableObject.getProperty(ScriptableObject.java:1544)
>       at 
> org.mozilla.javascript.ScriptRuntime.topScopeName(ScriptRuntime.java:1708)
>       at org.mozilla.javascript.ScriptRuntime.name(ScriptRuntime.java:1610)
>       at org.mozilla.javascript.gen.c89._c1(Feed2:3)
>       at org.mozilla.javascript.gen.c89.call(Feed2)
>       at org.mozilla.javascript.BaseFunction.construct(BaseFunction.java:308)
>       at 
> org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime.java:2132)
>       at org.mozilla.javascript.gen.c89._c1(Feed2:3)
>       at org.mozilla.javascript.gen.c89.call(Feed2)
>       at org.mozilla.javascript.BaseFunction.construct(BaseFunction.java:308)
>       at 
> org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime.java:2132)
>       at org.mozilla.javascript.gen.c89._c1(Feed2:3)
>       at org.mozilla.javascript.gen.c89.call(Feed2)
>       at org.mozilla.javascript.BaseFunction.construct(BaseFunction.java:308)
>       at 
> org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime.java:2132)
>       at org.mozilla.javascript.gen.c89._c1(Feed2:3)
>       at org.mozilla.javascript.gen.c89.call(Feed2)
>       at org.mozilla.javascript.BaseFunction.construct(BaseFunction.java:308)
>       at 
> org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime.java:2132)
>       at org.mozilla.javascript.gen.c89._c1(Feed2:3)
>       at org.mozilla.javascript.gen.c89.call(Feed2)
>       at org.mozilla.javascript.BaseFunction.construct(BaseFunction.java:308)
>       at 
> org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime.java:2132)
>       at org.mozilla.javascript.gen.c89._c1(Feed2:3)
>       at org.mozilla.javascript.gen.c89.call(Feed2)
>       at org.mozilla.javascript.BaseFunction.construct(BaseFunction.java:308)
>       at 
> org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime.java:2132)
>       at org.mozilla.javascript.gen.c89._c1(Feed2:3)
>       at org.mozilla.javascript.gen.c89.call(Feed2)
>       at org.mozilla.javascript.BaseFunction.construct(BaseFunction.java:308)
>       at 
> org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime.java:2132)
>       at org.mozilla.javascript.gen.c89._c1(Feed2:3)
>       at org.mozilla.javascript.gen.c89.call(Feed2)
>            .
>            .
>            .
>            .
>            .
>            .
>            .
>       at org.mozilla.javascript.BaseFunction.construct(BaseFunction.java:308)
>       at 
> org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime.java:2132)
>       at org.mozilla.javascript.gen.c89._c1(Feed2:3)
>       at org.mozilla.javascript.gen.c89.call(Feed2)
>       at org.mozilla.javascript.BaseFunction.construct(BaseFunction.java:308)
> </Exception>
> </soapenv:Detail>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

_______________________________________________
Mashup-dev mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to