This document was generated from CDN thread
Created by: CHARLES SMITH on 20-03-2009 04:17:04 PM
Can anyone tell me why the following Java Class fails to deploy on my VXML server?
The java code is attached.
All this code does is remove certain prompts from an Audio element if a session variable matches "Denied"
The server will not even deploy the app and the error log shows Audium Exception
Subject: RE: Custom Java Class Fails to Deploy
Replied by: Janine Graves on 20-03-2009 04:26:42 PM
If you are writing a dynamic configuration, then you must implement VoiceElementConfig
public class ProviderMainMenuConfig
implements VoiceElementConfig
{ . . .
Subject: RE: Custom Java Class Fails to Deploy
Replied by: CHARLES SMITH on 20-03-2009 05:18:47 PM
ok I figured out why it wouldn't deploy. I guess if you delete classes from your project in studio and upload them again it doens't delete them from the VXMl server. You have to go the application directory and delete them on the server. Anyway my class deploys just fine like it is. This is the error I get in the logs of the application.
Provider_Main_Menu_DEV,03/20/2009 13:04:21.110,A built-in element encountered an exception of type com.audium.server.voiceElement.ElementException. The error was: An initial_audio_group is required for Audio_01.
com.audium.server.voiceElement.ElementException: An initial_audio_group is required for Audio_01.
I have the Create Base Configuration checked. It is almost like this is saying that the intal_audio_group is not there but it is. I have 3 audio items in there. This dynamic config is going to delete the ones I do not want to play. That is the idea at least.
Subject: RE: Custom Java Class Fails to Deploy
Replied by: Janine Graves on 22-03-2009 03:06:56 PM
Hi Chuck,
In your java code, I'd expect that you should do a string comparison StringName.equalsIgnoreCase("Denied") rather than a comparison with ==. So something like this: if (elementAPI.getSessionData("Opt1").toString().equalsIgnoreCase("Denied") ) Rather than if(elementAPI.getSessionData("Opt1") == "Denied")
Also, put in some System.out.println(""); statements so you can tell what
your java code is doing. And make sure that you indeed have some audio
in the audio tab of your Studio element and that you are indeed passing
the base configuraiton. The println statements will appear in the
VxmlServer/tomcat/logs/stdout log file.
Janine