Unable to Map Application after updation of custom jar

Version 1
    This document was generated from CDN thread

    Created by: Binny Mathew on 21-02-2013 12:18:55 AM
     Hi All,
    A UCCX script has been mapped to an application name (for eg. TestApp) and its working fine. On project requirement, we introduced a new java method (getGreetingPrompt) in the working jar and uploaded the jar in Class path of UCCX Server. Once restarting UCCX Engine and Administration, the admin site doesn’t allows us to map the updated aef script file against the application name. When looked into the RTMT – MADM logs, it shows that
     
    268584: Feb 21 11:01:41.435 IST %MADM-SCRIPT_MGR-3-UNABLE_LOAD_SCRIPT:Unable to load script: Script=/ServionUtility/ServionUtility.aef,Exception=java.io.IOException: undefined method: getGreetingPrompt for class: com.servion.fielddata.GetFieldData
     
     
    But the same script gets executed doing “Referesh All”  in the Application Manangement. The below log(Custom logs) shows that the same getGreetingPrompt method gets executed properly.
     
    11:10:42,838  INFO Servion Utility Application ::140 - getGreetingPrompt : flowCode :
    11:10:42,849  INFO Servion Utility Application ::155 - getGreetingPrompt : PromptId returned from Class: null
    11:10:42,849 DEBUG Servion Utility Application ::? - spelling[105000000002 :: ServionUtility.aef :: GreetingFlow - Global_DynamicPrompt :] ..
     
    Added to the above one, even if we change the method signature of any java method we were not able to map the script in the application management. But the change of method signature gets reflected in the Script editor by closing and re-opending.
     
    Any clue on the above behaviours as to why the changes gets reflected in the script editor and script gets executed properly. But not allowing us to map the script against the application in the Application Management.  Attached CustomLog & MADM log for reference.
     
    Thanks
    Binny

    Subject: RE: Unable to Map Application after updation of custom jar
    Replied by: Sharik M on 15-03-2013 04:31:50 AM
    Hi Binny,
           This is desired behavior as any any modification done to custom jars of the script will change the associated script which requiresa application refresh which actualy updates the UCCX Filesystem from the DB .
     
     
    Regards
    Sharik Saigal M

    Subject: RE: Unable to Map Application after updation of custom jar
    Replied by: Binny Mathew on 19-03-2013 05:18:23 AM
    Thanks Shariq,
    But in this case once you do any changes you will never be able to map my application back, in this case i can not even map my application to a different trigger right?
    So this is an expected behavior with UCCX.
    Rgds/Binny

    Subject: RE: Unable to Map Application after updation of custom jar
    Replied by: Sharik M on 19-03-2013 08:29:56 AM
    Hi Binny,          Currently this is the implementation this is a good enhancement to have  and an enhancement is  created to handle this condition  
    Regards Sharik Saigal M

    Subject: RE: Unable to Map Application after updation of custom jar
    Replied by: Binny Mathew on 02-04-2013 06:20:08 AM
    Thanks Sharik,
    I got your point. Also would like to inform all that if after any changes in the Jar you are ableto load the script again in your editor and teh changes are working fine also, Do not bother about the script not getting mapped.
    As when you restart the Server itself this issue will go. Seems the sync is not happening. But this should not  affect the development part of your script.
    Rgds/Binny