cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
181
Views
0
Helpful
2
Replies

UCCX Scripting issue with a custom Jar file

lanou
Enthusiast
Enthusiast

Dear members,

I have the below very basic script that is working just fine.

1.png

I'm trying to test a custom jar file "add" that has a basic method "sum" that returns the sum of 2 integers.

Here is the Java class:

import java.util.*;
import java.lang.*;
import java.io.*;
public class add

{
public static int sum(int n, int m)
{

int a=n;
int b=m;
int c=a+b;
return c;
}
}

I created the Jar file and uploaded it to UCCX under Document Management\default \classpath and added it under Selected Classpath Entries

2.png

 

3.png

After restarting UCCX Engine Service, UCCX Administration service and UCCX Script Editor, I was able to define a variable of type add.

4.png

But as soon as the variable is defined, the script stopped working and if I do Reactive Debugging, I see that the call is not hitting the script either.

I have attached the MIVR logs.

Has anyone faced a similar issue? 

Any help is highly appreciated.

2 REPLIES 2

alexstev
Cisco Employee
Cisco Employee

 

Hi @lanou,

 

It could be a bug. Have you tried searching the Cisco Bug Search Tool? --> https://bst.cloudapps.cisco.com/bugsearch

 

Hello Alex,

Thanks for taking the time to respond.

Turned out that the CCX engine was active on the secondary server and I was testing with the primary one. The issue was solved after restarting the engine on the secondary server.

Getting Started

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: