08-03-2015 04:22 AM
Hi.. We are trying to use the Call Studio Email element in a really simple VXML application. We have followed the guides exactly however keep getting an error. Here is the content of context.xml:
<Context>
<!-- Default set of monitored resources -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<Manager pathname="" />
<Resource name="mail/emailtest" type="javax.mail.Session" mail.smtp.host="198.207.88.116"/>
</Context>
and here is the error we see:
10.100.206.6.1438594446636.0.LAB_EMAIL,08/03/2015 10:34:06.668, The error was: A built-in element encountered an exception of type java.lang.ClassCastException. The root cause was: java.lang.ClassCastException: javax.mail.Session cannot be cast to javax.mail.Session
com.audium.server.AudiumException: A built-in element encountered an exception of type java.lang.ClassCastException.
at com.audium.server.voiceElement.ActionElementBase.service(ActionElementBase.java:416)
at com.audium.server.controller.Controller.goToAction(Controller.java:3927)
at com.audium.server.controller.Controller.goToElement(Controller.java:3563)
at com.audium.server.controller.Controller.enterVoiceApplication(Controller.java:1495)
at com.audium.server.controller.Controller.newCall(Controller.java:1381)
at com.audium.server.controller.Controller.doPost(Controller.java:705)
at com.audium.server.controller.Controller.doGet(Controller.java:487)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
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:224)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
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:987)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1600)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.ClassCastException: javax.mail.Session cannot be cast to javax.mail.Session
at com.audium.server.action.email.EmailActionUtil.getMailSession(EmailActionUtil.java:73)
at com.audium.server.action.email.EmailActionUtil.doAction(EmailActionUtil.java:111)
at com.audium.server.action.email.EmailAction.doAction(EmailAction.java:136)
at com.audium.server.voiceElement.ActionElementBase.service(ActionElementBase.java:390)
... 23 more
Any tips would be appreciated!
Solved! Go to Solution.
08-04-2015 02:25 PM
Hi,
The fix for the Studio Email element to work in CVP 10.5 and 11 is to delete the file
C:\Cisco\CVP\VXMLServer\Tomcat\webapps\CVP\WEB-INF\lib\mail.jar and restart VXML Server service.
That fix is somewhere in some TAC case, but I didn't find it, someone else found it for me.
I hope posting it here makes it easier for people to find.
Thanks Kristian for finding this!
08-03-2015 09:27 AM
I've tested the email element with CVP 10.5 also (and 11) and received
the same error(s).
I think there's a bug.
Can someone at Cisco please test this and come up with a fix?
08-04-2015 04:17 AM
Thanks for responding Janine.
Can someone from Cisco comment please?
08-04-2015 02:25 PM
Hi,
The fix for the Studio Email element to work in CVP 10.5 and 11 is to delete the file
C:\Cisco\CVP\VXMLServer\Tomcat\webapps\CVP\WEB-INF\lib\mail.jar and restart VXML Server service.
That fix is somewhere in some TAC case, but I didn't find it, someone else found it for me.
I hope posting it here makes it easier for people to find.
Thanks Kristian for finding this!
08-04-2015 08:44 PM
Glad I could help
08-05-2015 01:20 AM
Thanks both! Workaround tested and problem solved...
08-06-2015 02:26 AM
The Cisco TAC Feedback was the following:
“For your reference, a defect has been already opened to well document “Email element configuration steps” and this is fixed in 11.(0). The bug ID is CSCuu90065.”
12-29-2015 08:17 PM
Hi,
For this, are we able to see any errors returned from SMTP if the request was unsuccessful? What we are seeing at the moment is the request to SMTP is successful but the email doesnt go out
Thanks!
-JT-
01-04-2016 12:10 AM
Check the following:
Thanks Tim
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