[
https://wso2.org/jira/browse/MASHUP-1225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=28605#action_28605
]
Ruchira Wageesha edited comment on MASHUP-1225 at 8/10/09 7:14 AM:
-------------------------------------------------------------------
passing an optional task name parameter makes sense only when it is used
within the init() method. Otherwise that shouldn't be passed and user has the
control over that to pass it or not depending on the usage of setTimeout.
was (Author: ruchira):
passing an optional task name parameter makes sense only when it is used
within the init() method. Otherwise that shouldn't pass and user has the
control over that to pass it or not depending on the usage of setTimeout.
> Error when a time-out request is sent more than once
> ----------------------------------------------------
>
> Key: MASHUP-1225
> URL: https://wso2.org/jira/browse/MASHUP-1225
> Project: WSO2 Mashup Server
> Issue Type: Bug
> Components: Admin UI
> Affects Versions: Nightly
> Environment: WinXP, JDK16, IE7
> Reporter: Yumani Ranaweera
> Assignee: Ruchira Wageesha
> Fix For: 2.0
>
>
> Steps:
> ---------
> 1. Create service in MS using the source below;
> this.serviceName = "timeout";
> toString.outputType = "String"; /* TODO: Add output type here */
> function toString()
> {
> var taskName = system.setTimeout(test, 10000, 'Timeouttest');
> session.put('timeout', taskName);
> return "Hi, my name is test";
> }
> test.visible = false;
> function test() {
> print("Hello World");
> }
> function clear() {
> session.get('timeout');
> system.clearTimeout('timeout');
> }
> 2. ?tryit the service
> 3. Send requests via 'toString' twice.
> Issue:
> ---------
> At the second instance it gives an error.
> [2009-08-04 18:16:57,546] ERROR - Name with ' Timeouttest ' is already there
> org.apache.axis2.AxisFault: Name with ' Timeouttest ' is already there
> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
> at
> org.wso2.carbon.javascript.messagereceiver.JavaScriptEngine.call(JavaScriptEngine.java:182)
> at
> org.wso2.carbon.javascript.messagereceiver.JavaScriptEngine.call(JavaScriptEngine.java:210)
> at
> org.wso2.carbon.javascript.messagereceiver.JavaScriptReceiver.invokeBusinessLogic(JavaScriptReceiver.java:189)
> 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: org.apache.synapse.task.SynapseTaskException: Name with '
> Timeouttest ' is already there
> at
> org.apache.synapse.task.TaskDescriptionRepository.validateUniqueness(TaskDescriptionRepository.java:138)
> at
> org.apache.synapse.task.TaskDescriptionRepository.addTaskDescription(TaskDescriptionRepository.java:48)
> at
> org.wso2.carbon.javascript.hostobjects.system.FunctionSchedulingManager.scheduleTask(FunctionSchedulingManager.java:113)
> at
> org.wso2.carbon.javascript.hostobjects.system.SystemHostObject.jsFunction_setTimeout(SystemHostObject.java:1089)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 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:155)
> at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:411)
> at
> org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:86)
> at org.mozilla.javascript.gen.c107._c1(timeout:6)
> at org.mozilla.javascript.gen.c107.call(timeout)
> at
> org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
> at
> org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
> at org.mozilla.javascript.gen.c107.call(timeout)
> at
> org.wso2.carbon.javascript.messagereceiver.JavaScriptEngine.call(JavaScriptEngine.java:180)
> ... 32 more
--
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