Created by: CLAUDIO RIVAS on 07-11-2011 02:37:57 AM Hi, I'm currently running to modify a java class so the result can be writed to a log, but I have this error log once i compile: C:\Program Files\Java\jdk1.5.0_22\bin>javac -classpath c:\Cisco\CallStudio\eclip se\plugins\com.audiumcorp.studio.library.framework_7.0.2\framework.jar c:\java\M Transfer.java c:\java\MTransfer.java:212: cannot find symbol symbol : variable MiscVoiceElementUtil location: class com.audium.server.voiceElement.transfer.MTransfer VTransfer transfer = MiscVoiceElementUtil.createTransfer(md, "Mtransfer" , number, destType); ^ Note: c:\java\MTransfer.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error Does anyone knows which class can or library can I use to get this fully compiled? As always any kind of help is appreciated. Best Regards, Claudio.
Subject: Re: New Message from CLAUDIO RIVAS in Customer Voice Portal (CVP) - CVP - A Replied by: Janine Graves on 07-11-2011 08:51:06 AM you'll probably also need to incude the elements.jar into your classpath also - it's located in CallStudio\eclipse\plugins\com.audiumcorp.studio.elements.core_xxx\lib\elements.jar ----------- ---------- ------------ On 11/7/2011 2:37 AM, Cisco Developer Community Forums wrote: CLAUDIO RIVAS has created a new message in the forum "CVP - All Versions": -------------------------------------------------------------- Hi,  I'm currently running to modify a java class so the result can be writed to a log, but I have this error log once i compile:  C:\Program Files\Java\jdk1.5.0_22\bin>javac -classpath c:\Cisco\CallStudio\eclip se\plugins\com.audiumcorp.studio.library.framework_7.0.2\framework.jar c:\java\M Transfer.java c:\java\MTransfer.java:212: cannot find symbol symbol : variable MiscVoiceElementUtil location: class com.audium.server.voiceElement.transfer.MTransfer        VTransfer transfer = MiscVoiceElementUtil.createTransfer(md, "Mtransfer" , number, destType);                             ^ Note: c:\java\MTransfer.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error  Does anyone knows which class can or library can I use to get this fully compiled? As always any kind of help is appreciated.  Best Regards, Claudio. -- To respond to this post, please click the following link: <http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/4717809> or simply reply to this email. -- Janine Graves
Subject: RE: Re: New Message from CLAUDIO RIVAS in Customer Voice Portal (CVP) - CVP Replied by: CLAUDIO RIVAS on 07-11-2011 05:40:33 PM Hi,
Janine, it's good to read you again! thank you very much for your quick answer. Regarding the call studio problems view seems everything ok, no error/warning reported on that window. Do you have any other idea? I supposed that with a CallEnd class which shows the result of the Transfer element may help, but on this events seems to have problems because is showing errors on the activitylog.
Regards, Claudio.
Subject: Re: New Message from CLAUDIO RIVAS in Customer Voice Portal (CVP) - CVP - A Replied by: Janine Graves on 07-11-2011 06:11:06 PM Sent from my Verizon Wireless Phone
-----Original message----- From: Cisco Developer Community Forums <cdicuser@developer.cisco.com> To: "cdicuser@developer.cisco.com" <cdicuser@developer.cisco.com> Sent: Mon, Nov 7, 2011 22:40:34 GMT+00:00 Subject: New Message from CLAUDIO RIVAS in Customer Voice Portal (CVP) - CVP - All Versions: RE: Re: New Message from CLAUDIO RIVAS in Customer Voice Portal (CVP) - CVP
Subject: RE: Re: New Message from CLAUDIO RIVAS in Customer Voice Portal (CVP) - CVP Replied by: CLAUDIO RIVAS on 07-11-2011 07:04:57 PM Here it is Janine, sure, is the class on one of my posts in this topic, i sent you by email the class. (sorry but i can't attach on this post :S).
Thank you and regards,
Subject: RE: Re: New Message from CLAUDIO RIVAS in Customer Voice Portal (CVP) - CVP Replied by: Janine Graves on 07-11-2011 07:52:55 PM Hi Claudio, I put your java class into my studio application in the Navigator pane int MyApp/deploy/java/application/classes and then closed the app out of the workspace, and then double-clicked app.callflow to re-open it in studio. Then I was able to see your element in the Elements pane, under LocalElements/CallControl/ClayitoTransfer. I can't do a bridge transfer on my gateway, but I used a web browser to see the vxml code your element creates, and it looks like this (see below) - which I believe is what you were after.
If I were you, you should remove your java class from C:/Cisco/CallStudio/eclipse/plugins/com.audium.studio.library_common/classes - and test it within one application (as I did above) until you get it working.
Subject: RE: Call Transfer class edit and compile Replied by: CLAUDIO RIVAS on 07-11-2011 01:04:41 PM Thank you very much Janine,
I've been able to compile it, but seems it doesn't like to vxmlserver i referenced as a class used on a common transfer element but once I've place the class on the folder and refer it on the script:
Root Cause: java.lang.NoClassDefFoundError: ClayitoMTransfer (wrong name: com/audium/server/voiceElement/transfer/ClayitoMTransfer) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at com.audium.server.controller.AudiumServerConfiguration.loadLocalClasses(AudiumServerConfiguration.java:1405) at com.audium.server.controller.AudiumServerConfiguration.<init>(AudiumServerConfiguration.java:206) at com.audium.server.controller.AudiumServerConfiguration.initialize(AudiumServerConfiguration.java:841) at com.audium.server.controller.Admin.cmdUpdateApp(Admin.java:287) at com.audium.server.controller.Admin.executeCommand(Admin.java:218) at com.audium.server.controller.Admin.run(Admin.java:1247) at com.audium.server.licensing.LicenseManager.run(LicenseManager.java:212) at java.lang.Thread.run(Thread.java:595)
Error with admin application deploy,11/07/2011 11:30:52.578,There was a problem instantiating the logger class com.cisco.cvp.vxml.datafeed.DatafeedLogger. There were no problems deploying the application. This error only prevented this logger from loading. The error was: java.lang.NullPointerException java.lang.NullPointerException at com.cisco.cvp.vxml.datafeed.DatafeedLogger.initialize(DatafeedLogger.java:176) at com.audium.server.logger.ApplicationLoggerBase.init(ApplicationLoggerBase.java:98) at com.audium.server.controller.AudiumServerConfiguration.instantiateLoggers(AudiumServerConfiguration.java:468) at com.audium.server.controller.AudiumServerConfiguration.initialize(AudiumServerConfiguration.java:864) at com.audium.server.controller.Admin.deployApp(Admin.java:568) at com.audium.server.controller.Admin.cmdDeployApp(Admin.java:538) at com.audium.server.controller.Admin.executeCommand(Admin.java:220) at com.audium.server.controller.Admin.run(Admin.java:1247) at com.audium.server.licensing.LicenseManager.run(LicenseManager.java:212) at java.lang.Thread.run(Thread.java:595)
Error with admin application update,11/07/2011 11:41:37.156,There was a problem instantiating the logger class com.cisco.cvp.vxml.datafeed.DatafeedLogger. There were no problems updating the application. This error only prevented this logger from loading. The error was: java.lang.NullPointerException java.lang.NullPointerException at com.cisco.cvp.vxml.datafeed.DatafeedLogger.initialize(DatafeedLogger.java:176) at com.audium.server.logger.ApplicationLoggerBase.init(ApplicationLoggerBase.java:98) at com.audium.server.controller.AudiumServerConfiguration.instantiateLoggers(AudiumServerConfiguration.java:468) at com.audium.server.controller.AudiumServerConfiguration.initialize(AudiumServerConfiguration.java:864) at com.audium.server.controller.Admin.cmdUpdateApp(Admin.java:287) at com.audium.server.controller.Admin.executeCommand(Admin.java:218) at com.audium.server.controller.Admin.run(Admin.java:1247) at com.audium.server.licensing.LicenseManager.run(LicenseManager.java:212) at java.lang.Thread.run(Thread.java:595)
But i think this is another issue.
Regards, Claudio.
Subject: RE: Call Transfer class edit and compile Replied by: CLAUDIO RIVAS on 07-11-2011 05:05:42 PM Regarding the class file, now I'm trying to add it to the c:\Cisco\CallStudio\eclipse\plugins\com.audiumcorp.studio.library.common_6.0.1\classes folder, to display it as an element on the Element palette, but is not shown.
I've just modified the main transfer class to add a real result on the log but seems the Studio doesn't like my class, any ideas regarding a good logging tool to help on this troubleshooting?
@SuppressWarnings("unchecked") public class ClayitoMTransfer extends VoiceElementBase implements AudiumElement {
protected static final String FORM_NAME = "transferForm"; private static final String FIELD_NAME = "ClayitoMTransfer";
public ClayitoMTransfer() { }
public String getElementName() { return "Clayito Transfer"; }
public String getDescription() { return "This voice element performs a call transfer, sending the caller to a designated " + "phone number (including extension if applicable). This does not signify the end " + "of the call, however. The person who was called can hang up and the application " + "can then continue." ; }
public String getDisplayFolderName() { return "Call Control"; }
public Setting[] getSettings() throws ElementException { Setting settingArray[] = new Setting[7]; settingArray[0] = new Setting("transfer_destination", "Transfer Destination", "This setting specifies the phone number to which the voice element is to connect" + "." , true, true, true, 3); settingArray[1] = new Setting("destination_type", "Destination Type", "This setting specifies the type of transfer destination to which the voice eleme" + "nt is to connect, either tel or sip." , true, true, true, new String[] { "tel", "sip" }); settingArray[2] = new Setting("connect_timeout", "Connect Timeout", "The maximum time (in seconds) the voice element is allowed to wait for an answer" + ". Possible values are non-negative integer values without a time unit. Default =" + " 60." , true, true, true, new Integer(0), null); settingArray[3] = new Setting("max_transfer_time", "Max Transfer Time", "The maximum duration (in seconds) the transfer is allowed to last. Possible valu" + "es are non-negative integer values without a time unit. Default = 0 (means no li" + "mit). This setting only applies when Bridge is set to true." , false, true, true, new Integer(0), null); settingArray[4] = new Setting("bridge", "Bridge", "Determines whether the application remains connected to the caller after the tra" + "nsfer is initiated. Possible values are: true | false. Default = false. When set" + " to false (i.e. a blind transfer), the application redirects the caller to the c" + "allee without remaining in the connection; the transfer outcome is completely un" + "supervised. When set to true (i.e. a bridge transfer), the application stays con" + "nected to the caller and adds the callee to the connection for the duration of t" + "he transferred call." , true, true, true, 4); settingArray[5] = new Setting("transfer_audio", "Transfer Audio", "URI of audio file to be play while connecting the call.", false, true, true, 3); settingArray[6] = new Setting("aai", "aai", "A string containing data sent to an application on the far-end.", false, true, true, 3); settingArray[1].setDefaultValue("tel"); settingArray[2].setDefaultValue("60"); settingArray[3].setDefaultValue("0"); settingArray[4].setDefaultValue("false"); return settingArray; }
public String[] getAudioGroupDisplayOrder() { String displayOrder[] = new String[2]; displayOrder[0] = "Transfer Audio"; displayOrder[1] = "End"; return displayOrder; }
public HashMap getAudioGroups() throws ElementException { HashMap groups = new HashMap(2); AudioGroup audioGroupArray[] = new AudioGroup[4]; audioGroupArray[0] = new AudioGroup("initial_audio_group", "Initial", "This audio group will be played on entry into the voice element.", false, true); audioGroupArray[1] = new AudioGroup("busy_audio_group", "Busy", "This audio group will be played when the transfer fails because the designated p" + "hone number is busy." , false, true); audioGroupArray[2] = new AudioGroup("noanswer_audio_group", "NoAnswer", "This audio group will be played when the transfer fails because the designated p" + "hone number did not answer within the time allotted by noanswer_timeout setting." , false, true); audioGroupArray[3] = new AudioGroup("phone_error_audio_group", "Phone Error", "This audio group will be played when the transfer fails because of a phone error" + "." , false, true); AudioGroup endArray[] = new AudioGroup[1]; endArray[0] = new AudioGroup("done_audio_group", "Done", "This audio group will be played after the transfer, when the transfer completes " + "successfully." , false, true); groups.put("Transfer Audio", audioGroupArray); groups.put("End", endArray); return groups; }
public ExitState[] getExitStates() throws ElementException { ExitState exitStateArray[] = new ExitState[4]; exitStateArray[0] = new ExitState(1); exitStateArray[1] = new ExitState("busy", "busy", "This exit state will be returned when the transfer fails because the designated " + "phone is busy." ); exitStateArray[2] = new ExitState("noanswer", "noanswer", "This exit state will be returned when the transfer fails because the designated " + "phone number did not answer within the time alloted by the noanswer_timeout sett" + "ing." ); exitStateArray[3] = new ExitState("phone_error", "phone_error", "This exit state will be returned when the transfer fails because of a phone erro" + "r." ); return exitStateArray; }
public ElementData[] getElementData() throws ElementException { ElementData elementDataArray[] = new ElementData[1]; elementDataArray[0] = new ElementData("result", "This element data contains the response of the transfer."); return elementDataArray; }
public boolean areLocalHotlinksSupported() { return false; }
Subject: Re: New Message from CLAUDIO RIVAS in Customer Voice Portal (CVP) - CVP - A Replied by: Janine Graves on 07-11-2011 05:21:06 PM In studio/ go to window / show view / show call studio problems view.
Sent from my Verizon Wireless Phone
-----Original message----- From: Cisco Developer Community Forums <cdicuser@developer.cisco.com> To: "cdicuser@developer.cisco.com" <cdicuser@developer.cisco.com> Sent: Mon, Nov 7, 2011 22:05:43 GMT+00:00 Subject: New Message from CLAUDIO RIVAS in Customer Voice Portal (CVP) - CVP - All Versions: RE: Call Transfer class edit and compile
Subject: Re: New Message from CLAUDIO RIVAS in Customer Voice Portal (CVP) - CVP - A Replied by: Janine Graves on 07-11-2011 06:03:06 PM Check call studio error log
Sent from my Verizon Wireless Phone
-----Original message----- From: Cisco Developer Community Forums <cdicuser@developer.cisco.com> To: "cdicuser@developer.cisco.com" <cdicuser@developer.cisco.com> Sent: Mon, Nov 7, 2011 22:40:34 GMT+00:00 Subject: New Message from CLAUDIO RIVAS in Customer Voice Portal (CVP) - CVP - All Versions: RE: Re: New Message from CLAUDIO RIVAS in Customer Voice Portal (CVP) - CVP
Subject: Re: New Message from CLAUDIO RIVAS in Customer Voice Portal (CVP) - CVP - A Replied by: Janine Graves on 07-11-2011 06:19:06 PM Can you send me your java?
Sent from my Verizon Wireless Phone
-----Original message----- From: Cisco Developer Community Forums <cdicuser@developer.cisco.com> To: "cdicuser@developer.cisco.com" <cdicuser@developer.cisco.com> Sent: Mon, Nov 7, 2011 22:40:34 GMT+00:00 Subject: New Message from CLAUDIO RIVAS in Customer Voice Portal (CVP) - CVP - All Versions: RE: Re: New Message from CLAUDIO RIVAS in Customer Voice Portal (CVP) - CVP
Subject: RE: Re: New Message from CLAUDIO RIVAS in Customer Voice Portal (CVP) - CVP Replied by: CLAUDIO RIVAS on 08-11-2011 09:34:18 AM Thank you Janine,
It seems on my deployment the very first "pakage" line is causing some issues, i deleted the first line, compiled, updated and since then i can see the element on the palette.
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: