Support Article
CTI Link Event Errors
SA-58762
Summary
Jtapi Rule-Service-Java instances defined in Pega-CTI:07-31-01 cause Java compile errors which blocks CTI implementation. When linking to Avaya, the user is able to send login and logout commands, however, cannot receive events from the CTI server.
On logging in to the the application, error related to the CTILinkEvent services occur. On resaving the service rules to the application ruleset and changing the Event Data parameter to EventData, the error does not occur. However, processing of the event does not complete.
Error Messages
Compile failed: ----------
1. ERROR in /CTILinkEvent/Jtapi.java (at line 728)
public String ProvInServiceEv(String Event Data) throws Exception, PRApplicationException {
^^^^^^
Syntax error on token "String", invalid Modifiers
----------
2. ERROR in /CTILinkEvent/Jtapi.java (at line 731)
reqParams.add(Event Data);
^
Syntax error, insert "new ClassType ( )" to complete Expression
----------
3. ERROR in /CTILinkEvent/Jtapi.java (at line 731)
reqParams.add(Event Data);
^
Syntax error, insert ";" to complete Statement
----------
4. ERROR in /CTILinkEvent/Jtapi.java (at line 731)
reqParams.add(Event Data);
^
Syntax error, insert "}" to complete MethodBody
----------
5. ERROR in /CTILinkEvent/Jtapi.java (at line 731)
reqParams.add(Event Data);
^^^^^^^^^^^^^^^
Return type for the method is missing
----------
6. ERROR in /CTILinkEvent/Jtapi.java (at line 731)
reqParams.add(Event Data);
^^^^^^^^^^^^^^^
This method requires a body instead of a semicolon
----------
7. ERROR in /CTILinkEvent/Jtapi.java (at line 731)
reqParams.add(Event Data);
^^^^^
Event cannot be resolved to a type
----------
8. ERROR in /CTILinkEvent/Jtapi.java (at line 732)
ArrayList resList = null;
^
Syntax error on token ";", , expected
----------
9. ERROR in /CTILinkEvent/Jtapi.java (at line 741)
return retval;
^^^^^^
Syntax error on token "return", byte expected
----------
10. ERROR in /CTILinkEvent/Jtapi.java (at line 742)
}
^
Syntax error on token "}", delete this token
----------
10 problems (10 errors)
Compile failed.
Steps to Reproduce
Log in with Pega Call with an agent ID extension and password.
Root Cause
The parameter name was modified from Event Data to EventData in CTILinkEvent Java services
With the service class set to ApplicationGateway, the QueryRequest Rule-Service-Java caused the error.
With the service class set to Jtapi, all Java services that used this parameter displayed the error. This occurs even though the parameter was not passed to the service activity.
Resolution
Apply HFix-44209.
Tags:
Published November 29, 2018 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.