Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
Created by: null on 12-10-2006 07:24:25 PM I have a custom voice element which use TTS engine to play some of the audio. This custom voice element always work I restart the apache and test it. Whenever I use the updatecommonclasses.bat script to update the java classes, this custom element won't work, but al the remaining custom element which don't use TTS works fine.
Is something wrong with my TTS configuration or the updatecommonclasses script.
Appreciate your input.
Thanks in advance.
Subject: RE: TTS Engine && Update Common Classes Replied by: null on 12-10-2006 07:28:33 PM Its not a new custom element, as I said before..I am using audio element, and using dynamic configuration to add the audio elements to be played. Its not a new custom element.
Subject: RE: TTS Engine && Update Common Classes Replied by: Vance Vagell on 12-10-2006 07:54:37 PM Hi Ravindra,
Note that Audium applications (including custom components like dynamic configurations) do not directly interact with the TTS server. Instead, Call Services generates VoiceXML that instructs the voice browser in what to request from the TTS server. Therefore, unless there is a TTS configuration issue on your voice browser, that cannot be the problem.
In regards to the updateCommonClasses admin script, it is used to reload custom classes from AUDIUM_HOME/common. Is your custom dynamic configuration stored in that location? If so, what errors are you seeing (e.g. how do you know it does not work) when you run that admin script?
If your custom dynamic config class is not stored in AUDIUM_HOME/common, but is instead under a particular voice application (e.g. AUDIUM_HOME/applications/APP_NAME/java/application), please run the updateApp script for that particular application instead.
Regards, Vance
Subject: error.txt Replied by: null on 12-10-2006 08:09:09 PM I have around 10 applications that use some java classes. Thats why I have placed the jar file under common/lib. In order to update the java class for all the apps, I am running updatecommonclasses.bat. Attached is the error I am getting. It's always throws this error in this part of call flow i(which uses TTS) if I use updatecommonclasses.bat to update the java classes. If I restart the application, the whole application works fine.
Appreciate your response.
Subject: RE: error.txt Replied by: Vance Vagell on 13-10-2006 09:36:55 PM Hi Ravindra,
Could you please confirm that you do not also have copies of this custom class within any deployed voice applications, or in any location other than AUDIUM_HOME/common/lib?
Regards, Vance
Subject: RE: error.txt Replied by: null on 17-10-2006 08:29:15 PM Vance, I don't have the copies of this custom class anywhere else in the server. All I have is only one jar file for all my custom classes in common\lib.
Appreciate your response.
Ravi.
Subject: RE: error.txt Replied by: Vance Vagell on 18-10-2006 02:58:41 PM Hi Ravi,
Thank you for the clarification. After further reviewing the attached error file, it seems that your Dynamic Configuration class is accessible (since the exception actually occurs [i:19e0db2583]within[/i:19e0db2583] the class itself). However, some action that the class is performing fails. Could you please describe what this class is doing on line 40?
As the above stack trace line shows, this should be part of your getConfig() method. If your class is retrieving an object from session data on that line, the problem discussed in the following Audium Knowledge Base article may be the culprit:
in which case the solution is to include those object's class files in AUDIUM_HOME/common as well. If this is not the case, please provide some additional detail about what line 40 is doing.
Regards, Vance
Subject: RE: error.txt Replied by: null on 18-10-2006 10:24:02 PM In this class, I am getting a object stored in the session variable and using this object to play some dynamic audio. But I already have this class in a jar file in Audium/Common/lib as it said in Knowlege article, but still getting this error. I only get this exception if I use updatecommonclasses, if I restart the apache the application works fine with the new changes.
Thanks
Subject: RE: error.txt Replied by: Vance Vagell on 31-10-2006 07:32:02 PM Hi Ravi,
The ClassCastException you are seeing occurs when Call Services tries to apply a cast to a class that was loaded by an application-level classloader (see this Audium Knowledge Base article for more information about Call Services classloaders). Since Call Services's (as opposed to the application's) classloader does not have access to that class, the exception is thrown. Normally, the solution is to store such custom classes in the AUDIUM_HOME/common directory, which ensures that they are loaded by the higher-level classloader instead of the application classloader.
Please check the following:
Is your custom class that encounters this problem also present in any voice application's directory, in addition to AUDIUM_HOME/common? If so, try removing those application-level versions of the class.
Do any of your classes in AUDIUM_HOME/common depend on classes or libraries that are only available in a voice application's directory? If so, try moving those dependencies into AUDIUM_HOME/common as well.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: