Thanks JohnBiggs and MichaelHerman2 for your prompt replies.
I again rechecked JTAPI Trace logs and there I can see a generic exception thrown by AES, but this exception is not propagated to custom client application (developed using ecsjtapi.jar file).
I can see following login request in JTAPI Trace log file.
2023-05-31 11:59:11,131 [AWT-EventQueue-0] INFO com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - Sent InvokeID 29 for TSProvider[#1]@585e8cf4
2023-05-31 11:59:11,131 [AWT-EventQueue-0] DEBUG com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - CSTASetAgentState ::=
2023-05-31 11:59:11,131 [AWT-EventQueue-0] DEBUG com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - {
2023-05-31 11:59:11,131 [AWT-EventQueue-0] DEBUG com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - device "1002"
2023-05-31 11:59:11,131 [AWT-EventQueue-0] DEBUG com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - agentMode 0 < AM_LOG_IN >
2023-05-31 11:59:11,131 [AWT-EventQueue-0] DEBUG com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - agentID "2101"
2023-05-31 11:59:11,131 [AWT-EventQueue-0] DEBUG com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - agentGroup "5500"
2023-05-31 11:59:11,131 [AWT-EventQueue-0] DEBUG com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - agentPassword "1234"
2023-05-31 11:59:11,131 [AWT-EventQueue-0] DEBUG com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - }
2023-05-31 11:59:11,131 [AWT-EventQueue-0] DEBUG com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - TsapiPrivate ::=
2023-05-31 11:59:11,131 [AWT-EventQueue-0] DEBUG com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - {
2023-05-31 11:59:11,131 [AWT-EventQueue-0] DEBUG com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - vendor "ECS"
2023-05-31 11:59:11,131 [AWT-EventQueue-0] DEBUG com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - data 2 0 57 0 30 6 a 1 1 2 1 0
2023-05-31 11:59:11,131 [AWT-EventQueue-0] DEBUG com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - tsType 89
2023-05-31 11:59:11,131 [AWT-EventQueue-0] DEBUG com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - }
CSTAUniversalFailure response in jtapi trace logs but it did not send to client application.
2023-05-31 11:59:11,420 [GetEventThread] INFO com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - Received invokeID 29 for TSProvider[#1]@585e8cf4
2023-05-31 11:59:11,420 [GetEventThread] DEBUG com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - CSTAUniversalFailureConfEvent ::=
2023-05-31 11:59:11,420 [GetEventThread] DEBUG com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - {
2023-05-31 11:59:11,420 [GetEventThread] DEBUG com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - error 1 < GENERIC_OPERATION >
2023-05-31 11:59:11,420 [GetEventThread] DEBUG com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - }
2023-05-31 11:59:11,421 [GetEventThread] INFO com.avaya.jtapi.tsapi.tsapiInterface.TsapiEventQueue - Putting event CSTAEvent[CSTAUniversalFailureConfEvent]@6aa3aa95. EVENT Q SIZE = 1 MAX Q SIZE = 1 for TSProvider[#1]@585e8cf4
2023-05-31 11:59:11,421 [DistributeCSTAEvent] INFO com.avaya.jtapi.tsapi.tsapiInterface.TsapiEventQueue - Getting event CSTAEvent[CSTAUniversalFailureConfEvent]@6aa3aa95 for TSProvider[#1]@585e8cf4
2023-05-31 11:59:11,421 [DistributeCSTAEvent] INFO com.avaya.jtapi.tsapi.tsapiInterface.TSInvokeID - Handling INVOKE ID 29 for TSProvider[#1]@585e8cf4
2023-05-31 11:59:11,421 [DistributeCSTAEvent] INFO com.avaya.jtapi.tsapi.tsapiInterface.TSInvokeID - DONE handling INVOKE ID 29 for TSProvider[#1]@585e8cf4
Further logs shows agent is in NOT_READY state
023-05-31 11:59:11,421 [AWT-EventQueue-0] INFO com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - Sent InvokeID 30 for TSProvider[#1]@585e8cf4
2023-05-31 11:59:11,421 [AWT-EventQueue-0] DEBUG com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - CSTAQueryAgentState ::=
2023-05-31 11:59:11,421 [AWT-EventQueue-0] DEBUG com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - {
2023-05-31 11:59:11,421 [AWT-EventQueue-0] DEBUG com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - device "1002"
2023-05-31 11:59:11,421 [AWT-EventQueue-0] DEBUG com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - }
2023-05-31 11:59:11,421 [AWT-EventQueue-0] DEBUG com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - TsapiPrivate ::=
2023-05-31 11:59:11,421 [AWT-EventQueue-0] DEBUG com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - {
2023-05-31 11:59:11,421 [AWT-EventQueue-0] DEBUG com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - vendor "ECS"
2023-05-31 11:59:11,422 [AWT-EventQueue-0] DEBUG com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - data 2 0 10 0 30 6 16 4 35 35 30 30
2023-05-31 11:59:11,422 [AWT-EventQueue-0] DEBUG com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - tsType 89
2023-05-31 11:59:11,422 [AWT-EventQueue-0] DEBUG com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - }
2023-05-31 11:59:11,807 [GetEventThread] INFO com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - Received invokeID 30 for TSProvider[#1]@585e8cf4
2023-05-31 11:59:11,807 [GetEventThread] DEBUG com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - CSTAQueryAgentStateConfEvent ::=
2023-05-31 11:59:11,807 [GetEventThread] DEBUG com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - {
2023-05-31 11:59:11,807 [GetEventThread] DEBUG com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - agentState 0 < AG_NOT_READY >
2023-05-31 11:59:11,807 [GetEventThread] DEBUG com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - }
2023-05-31 11:59:11,807 [GetEventThread] DEBUG com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - TsapiPrivate ::=
2023-05-31 11:59:11,807 [GetEventThread] DEBUG com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - {
2023-05-31 11:59:11,807 [GetEventThread] DEBUG com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - vendor "ECS"
2023-05-31 11:59:11,808 [GetEventThread] DEBUG com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - data 2 0 68 0 30 f a 1 1 a 1 1 2 1 0 a 1 ff 2 1 0
2023-05-31 11:59:11,808 [GetEventThread] DEBUG com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - tsType 34
2023-05-31 11:59:11,808 [GetEventThread] DEBUG com.avaya.jtapi.tsapi.tsapiInterface.TsapiSession - }
2023-05-31 11:59:11,808 [GetEventThread] INFO com.avaya.jtapi.tsapi.tsapiInterface.TsapiEventQueue - Putting event CSTAEvent[CSTAQueryAgentStateConfEvent]@583359d3. EVENT Q SIZE = 1 MAX Q SIZE = 1 for TSProvider[#1]@585e8cf4
2023-05-31 11:59:11,808 [DistributeCSTAEvent] INFO com.avaya.jtapi.tsapi.tsapiInterface.TsapiEventQueue - Getting event CSTAEvent[CSTAQueryAgentStateConfEvent]@583359d3 for TSProvider[#1]@585e8cf4
2023-05-31 11:59:11,808 [DistributeCSTAEvent] DEBUG com.avaya.jtapi.tsapi.csta1.LucentPrivateData - LucentV6QueryAgentStateConfEvent ::=
2023-05-31 11:59:11,808 [DistributeCSTAEvent] DEBUG com.avaya.jtapi.tsapi.csta1.LucentPrivateData - {
2023-05-31 11:59:11,808 [DistributeCSTAEvent] DEBUG com.avaya.jtapi.tsapi.csta1.LucentPrivateData - workMode 1 < WM_AUX_WORK >
2023-05-31 11:59:11,809 [DistributeCSTAEvent] DEBUG com.avaya.jtapi.tsapi.csta1.LucentPrivateData - talkState 1 < TS_IDLE >
2023-05-31 11:59:11,809 [DistributeCSTAEvent] DEBUG com.avaya.jtapi.tsapi.csta1.LucentPrivateData - reasonCode 0
2023-05-31 11:59:11,809 [DistributeCSTAEvent] DEBUG com.avaya.jtapi.tsapi.csta1.LucentPrivateData - pendingWorkMode -1 < WM_NONE >
2023-05-31 11:59:11,809 [DistributeCSTAEvent] DEBUG com.avaya.jtapi.tsapi.csta1.LucentPrivateData - pendingReasonCode 0
2023-05-31 11:59:11,809 [DistributeCSTAEvent] DEBUG com.avaya.jtapi.tsapi.csta1.LucentPrivateData - }
2023-05-31 11:59:11,809 [DistributeCSTAEvent] INFO com.avaya.jtapi.tsapi.tsapiInterface.TSInvokeID - Handling INVOKE ID 30 for TSProvider[#1]@585e8cf4
2023-05-31 11:59:11,809 [DistributeCSTAEvent] INFO com.avaya.jtapi.tsapi.tsapiInterface.TSInvokeID - DONE handling INVOKE ID 30 for TSProvider[#1]@585e8cf4
And finally jtapi sent below events
2023-05-31 11:59:11,809 [AWT-EventQueue-0] INFO com.avaya.jtapi.tsapi.impl.core.TSAgent - constructing TSAgent with agentKey=TSAgentKey(1002,5500,2101) for TSProvider[#1]@585e8cf4
2023-05-31 11:59:11,809 [AWT-EventQueue-0] DEBUG com.avaya.jtapi.tsapi.impl.core.TSProviderImpl - Before creating TSDevice again for device TSDevice[1002]@1c228911 check for IsExternal : false
2023-05-31 11:59:11,809 [AWT-EventQueue-0] DEBUG com.avaya.jtapi.tsapi.impl.core.TSProviderImpl - Before creating TSDevice again for device TSDevice[5500]@701dec7c check for IsExternal : false
2023-05-31 11:59:11,809 [AWT-EventQueue-0] INFO com.avaya.jtapi.tsapi.impl.core.TSAgent - ParentAgent Object TSAgentKey(1002,null,2101) being created for provider TSProvider[#1]@585e8cf4
2023-05-31 11:59:11,809 [AWT-EventQueue-0] DEBUG com.avaya.jtapi.tsapi.impl.monitor.TsapiAddressMonitor - Getting TsapiAddressMonitor lock to deliver events for listener jtapiex.MyAddressListener@2fa14b41
2023-05-31 11:59:11,809 [AWT-EventQueue-0] TRACE com.avaya.jtapi.tsapi.impl.LucentV7AgentImpl - com.avaya.jtapi.tsapi.impl.LucentV7AgentImpl@3ad632f7 constructed.
2023-05-31 11:59:11,809 [AWT-EventQueue-0] TRACE com.avaya.jtapi.tsapi.impl.LucentACDAddressImpl - com.avaya.jtapi.tsapi.impl.LucentACDAddressImpl@701dec7c constructed.
2023-05-31 11:59:11,809 [AWT-EventQueue-0] DEBUG com.avaya.jtapi.tsapi.impl.monitor.TsapiAddressMonitor - ADDRESSNOTREADYEVENT for TSAgent[TSAgentKey(1002,5500,2101)]@3ad632f7 for listener jtapiex.MyAddressListener@2fa14b41
2023-05-31 11:59:11,809 [AWT-EventQueue-0] TRACE com.avaya.jtapi.tsapi.impl.LucentV7AgentImpl - com.avaya.jtapi.tsapi.impl.LucentV7AgentImpl@3ad632f7 constructed.
2023-05-31 11:59:11,809 [AWT-EventQueue-0] TRACE com.avaya.jtapi.tsapi.impl.LucentACDAddressImpl - com.avaya.jtapi.tsapi.impl.LucentACDAddressImpl@701dec7c constructed.
2023-05-31 11:59:11,810 [AWT-EventQueue-0] DEBUG com.avaya.jtapi.tsapi.impl.monitor.TsapiTerminalMonitor - Getting TsapiTerminalMonitor lock to deliver events for listener jtapiex.MyTerminalListener@2cea850e
2023-05-31 11:59:11,810 [AWT-EventQueue-0] DEBUG com.avaya.jtapi.tsapi.impl.monitor.TsapiTerminalMonitor - meta event BEGIN: cause (100) for jtapiex.MyTerminalListener@2cea850e
2023-05-31 11:59:11,810 [AWT-EventQueue-0] TRACE com.avaya.jtapi.tsapi.impl.LucentV7AgentImpl - com.avaya.jtapi.tsapi.impl.LucentV7AgentImpl@3ad632f7 constructed.
2023-05-31 11:59:11,810 [AWT-EventQueue-0] TRACE com.avaya.jtapi.tsapi.impl.LucentV5TerminalExImpl - com.avaya.jtapi.tsapi.impl.LucentV5TerminalExImpl@1c228911 constructed.
2023-05-31 11:59:11,810 [AWT-EventQueue-0] TRACE com.avaya.jtapi.tsapi.impl.LucentV7AgentImpl - com.avaya.jtapi.tsapi.impl.LucentV7AgentImpl@3ad632f7 constructed.
2023-05-31 11:59:11,810 [AWT-EventQueue-0] TRACE com.avaya.jtapi.tsapi.impl.LucentV5TerminalExImpl - com.avaya.jtapi.tsapi.impl.LucentV5TerminalExImpl@1c228911 constructed.
2023-05-31 11:59:11,810 [AWT-EventQueue-0] DEBUG com.avaya.jtapi.tsapi.impl.monitor.TsapiTerminalMonitor - TERMINALNOTREADYEVENT for TSAgent[TSAgentKey(1002,5500,2101)]@3ad632f7 for listener jtapiex.MyTerminalListener@2cea850e
2023-05-31 11:59:11,810 [AWT-EventQueue-0] DEBUG com.avaya.jtapi.tsapi.impl.monitor.TsapiTerminalMonitor - meta event END for jtapiex.MyTerminalListener@2cea850e eventList size=1
2023-05-31 11:59:11,810 [AWT-EventQueue-0] TRACE com.avaya.jtapi.tsapi.impl.LucentV7AgentImpl - com.avaya.jtapi.tsapi.impl.LucentV7AgentImpl@3ad632f7 constructed.
2023-05-31 11:59:11,810 [pool-2-thread-8] TRACE com.avaya.jtapi.tsapi.impl.monitor.TsapiAddressMonitor - --> run[]: com.avaya.jtapi.tsapi.impl.monitor.TsapiAddressMonitor@2959d104
2023-05-31 11:59:11,810 [AWT-EventQueue-0] TRACE com.avaya.jtapi.tsapi.impl.LucentV5TerminalExImpl - <-- addAgent[LucentAddress agentAddress, ACDAddress acdAddress, int initialState, int workMode, int reasonCode, String agentID, String password]: com.avaya.jtapi.tsapi.impl.LucentV5TerminalExImpl@1c228911
In our application we used
addAgent api which throws TsapiInvalidArgumentException, TsapiInvalidStateException exceptions. Application has handled these exception along with InvalidArgumentException and generic Exception.
My question is if JTAPI is receiving
CSTAUniversalFailureConfEvent then why it is not forwading it to client application.