09-04-2014 11:56 AM
Hi Team,
I am new to Cisco CallStudio and Iam facing MultipleThreadException in application and i getting error.badfetch in activity logs.
Here is the log snipet for activity logs: element,error,error.badfetch
Here is the log snippet for error log:
10.0.41.142.1408539774699.10.Record_On_The_Fly,08/20/2014 09:04:20.635, The error was: Another thread is currently working on this session. This means the original thread took too long to complete what it was doing. To prevent abnormal behaviour the original thread will exit immediately. The call should not be affected.
com.audium.server.MultipleThreadException: Another thread is currently working on this session. This means the original thread took too long to complete what it was doing. To prevent abnormal behaviour the original thread will exit immediately. The call should not be affected.
at com.audium.server.session.ControllerData.isCurrentThreadOwner(ControllerData.java:4298)
at com.audium.server.voiceElement.ActionElementBase.service(ActionElementBase.java:392)
at com.audium.server.controller.Controller.goToAction(Controller.java:2911)
at com.audium.server.controller.Controller.goToElement(Controller.java:2643)
at com.audium.server.controller.Controller.continueCall(Controller.java:2468)
at com.audium.server.controller.Controller.goToElement(Controller.java:2694)
at com.audium.server.controller.Controller.continueCall(Controller.java:2468)
at com.audium.server.controller.Controller.goToElement(Controller.java:2694)
at com.audium.server.controller.Controller.continueCall(Controller.java:2468)
at com.audium.server.controller.Controller.doPost(Controller.java:696)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
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:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
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:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)
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:689)
at java.lang.Thread.run(Thread.java:662)
Our application is:
1)Application will ask caller to record and to # after done.
2)App will playback the recoredeed messsage
3)App will ask do we need to save the file
4)If caller says yes then in app we are doing saving in ftp and then sending an email and update the table with recorded file then we are playing back the caller the recorded file name.
Here we are getting the error after caller say yes in step 3.
and also we are seeing the mail which is sent by app successfully but while playing the filename it played error. we have three things are in between audio element doing FTP,Email and Update prompt in Database then audio element to play the prompt name.
And this error is not consistency it is getting once in a day. Please help me out to get out from error.badfetch.
Awaiting for your reply.
Thanks,
Sandeep.M
Solved! Go to Solution.
09-04-2014 12:02 PM
You need to set the vxml property named fetchtimeout to a value like 30s. Do this in the voice element IMMEDIATELY before the ftp element.
In
09-04-2014 12:02 PM
You need to set the vxml property named fetchtimeout to a value like 30s. Do this in the voice element IMMEDIATELY before the ftp element.
In
09-04-2014 12:43 PM
Also if you are getting only some times of the day, you need to monitor your gateway load and see if are any errors on the vxml gateway.
Hemal
09-05-2014 07:45 AM
Thank you so much Janine for your answer.I am out of this now.
09-04-2014 01:35 PM
Increase the fetchtimeout just before the ftp element.
Hemal
09-05-2014 07:46 AM
Thanks Hemal for your reply i will look into VXML Gateway.
09-04-2014 06:46 PM
Hi,
This is probably occurring because the FTP element is taking too long to
complete.
In the meantime, the VXML Gateway is timing out and issuing a badfetch
event.
In the voice element that's immediately before the FTP, under the
Settings tab, you can set the VoiceXML Property named fetchtimeout to a
large value, something like 20s or 30s
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide