Genesys CTI User Forum > Genesys-related Development
Service 'Email' failed in method 'Send' (ErrorCode=701 ErrorMsg=Unexpected error
tbremard:
What i see in java email server is an exception with a null pointer before trying to connect to smtp ( with iws sample i see inspection of udata and not in my version)
Ok, I do not post the code, i prefer to post the debut output if my requests and events in client side because you can see what i do with real content.
connection to interaction server:
[quote]
PID:1760, TID:000A [bdo.dll 1.0.0.2] ISrvAccs.cs: strUri: tcp://demosrv.genesyslab.com:4420
strClientName: SIP_Server_Place3
tenantId: 1
strPlaceName: Place_iWD
strPerson: demo
PID:1760, TID:000A [bdo.dll 1.0.0.2] ISrvAccs.cs: Connect(): Success
PID:1760, TID:0010 [bdo.dll 1.0.0.2] ISrvAccs.cs: --- proto_Opened ---
PID:1760, TID:000A [bdo.dll 1.0.0.2] ISrvAccs.cs: 'RequestAgentLogin' ('135')
message attributes:
attr_tenant_id [int] = 1
attr_place_id [str] = "SIP_Server_Place3"
attr_agent_id [str] = "MCR_Agent0"
attr_donot_disturb [bool] = True
PID:1760, TID:000D [bdo.dll 1.0.0.2] ISrvAccs.cs: EventForwarder
PID:1760, TID:000D [bdo.dll 1.0.0.2] ISrvAccs.cs: EventAck
PID:1760, TID:000D [bdo.dll 1.0.0.2] interaction server: Callback_InteractionServer: ----------------->('EventAck')<-----------
PID:1760, TID:000D [bdo.dll 1.0.0.2] interaction server: 'EventAck' ('125')
message attributes:
attr_ref_id [int] = 2
PID:1760, TID:000D [bdo.dll 1.0.0.2] 'EventAck' ('125')
message attributes:
attr_ref_id [int] = 2
[/quote]
then i aks IS to give me an interaction id: ( and it gives me 0370WE2HERXFJ00B )
[quote]
PID:1760, TID:000A [bdo.dll 1.0.0.2] ISrvAccs.cs: SubmitMail(False)
PID:1760, TID:000A [bdo.dll 1.0.0.2] ISrvAccs.cs: 'RequestSubmit' ('101')
message attributes:
attr_itx_subtype [str] = "OutboundNew"
attr_media_type [str] = "email"
attr_queue [str] = "E-Mail Out"
attr_itx_type [str] = "Outbound"
attr_tenant_id [int] = 1
attr_ref_id [int] = 3
PID:1760, TID:000D [bdo.dll 1.0.0.2] ISrvAccs.cs: EventForwarder
PID:1760, TID:000D [bdo.dll 1.0.0.2] ISrvAccs.cs: EventAck
PID:1760, TID:000D [bdo.dll 1.0.0.2] interaction server: Callback_InteractionServer: ----------------->('EventAck')<-----------
PID:1760, TID:000D [bdo.dll 1.0.0.2] interaction server: 'EventAck' ('125')
message attributes:
attr_ref_id [int] = 3
attr_extension [bstr] = KVList:
'InteractionId' [str] = "0370WE2HERXFJ00B"
PID:1760, TID:000D [bdo.dll 1.0.0.2] 'EventAck' ('125')
message attributes:
attr_ref_id [int] = 3
attr_extension [bstr] = KVList:
'InteractionId' [str] = "0370WE2HERXFJ00B"
PID:1760, TID:000D [bdo.dll 1.0.0.2] ItxSrv:StatusForwarder()
PID:1760, TID:000D [bdo.dll 1.0.0.2] ISrvAccs.cs: EventForwarder
PID:1760, TID:000D [bdo.dll 1.0.0.2] ISrvAccs.cs: EventCurrentAgentStatus
PID:1760, TID:000D [bdo.dll 1.0.0.2] interaction server: Callback_InteractionServer: ----------------->('EventCurrentAgentStatus')<-----------
PID:1760, TID:000D [bdo.dll 1.0.0.2] interaction server: 'EventCurrentAgentStatus' ('155')
message attributes:
attr_ref_id [int] = -1
AgentDescription = ComplexClass(AgentDescription):
attr_tenant_id [int] = 1
attr_place_id [str] = "SIP_Server_Place3"
attr_agent_id [str] = "MCR_Agent0"
attr_donot_disturb [bool] = True
attr_media_state_list [bstr] = KVList:
attr_media_capacity_list [bstr] = KVList:
PID:1760, TID:000D [bdo.dll 1.0.0.2] 'EventCurrentAgentStatus' ('155')
message attributes:
attr_ref_id [int] = -1
AgentDescription = ComplexClass(AgentDescription):
attr_tenant_id [int] = 1
attr_place_id [str] = "SIP_Server_Place3"
attr_agent_id [str] = "MCR_Agent0"
attr_donot_disturb [bool] = True
attr_media_state_list [bstr] = KVList:
attr_media_capacity_list [bstr] = KVList:
[/quote]
then i connect to contact server and insert interaction with content:
[quote]
PID:1760, TID:000A [bdo.dll 1.0.0.2] StatSrv: isConnected(): True
PID:1760, TID:000A [bdo.dll 1.0.0.2] StatSrv: 'RequestInsertInteraction' ('17')
message attributes:
InteractionAttributes =
EntityTypeId=EmailOut
Id=0370WE2HERXFJ00B
MediaTypeId=email
Status=Pending
Subject=STARK Sample e-mail subject
TenantId=1
TypeId=Outbound
EntityAttributes =
FromAddress=account@premier.com
ToAddresses=jones@demosrv.genesyslab.com
InteractionContent =
Text=This is the e-mail body.
ReferenceId = 1
PID:1760, TID:000A [bdo.dll 1.0.0.2] StatSrv: 'EventInsertInteraction' ('117')
message attributes:
InteractionId = 0370WE2HERXFJ00B
ReferenceId = 1
[/quote]
then with IS i finally send the mail to ouput queue:
[quote]
PID:1760, TID:000A [bdo.dll 1.0.0.2] ISrvAccs.cs: Itx_PlaceInQueue(0370WE2HERXFJ00B, E-Mail Out, False)
PID:1760, TID:000A [bdo.dll 1.0.0.2] ISrvAccs.cs: 'RequestChangeProperties' ('103')
message attributes:
attr_itx_id [str] = "0370WE2HERXFJ00B"
attr_added_prop [bstr] = KVList:
'FromAddress' [str] = "account@premier.com"
'To' [str] = "jones@demosrv.genesyslab.com"
'EmailAddress' [str] = "jones@demosrv.genesyslab.com"
'Subject' [str] = "stark test"
'DispositionCode.Key' [str] = "DispositionCode"
'DispositionCode.Label' [str] = "Disposition Code"
'DispositionCodeValues.Processed' [str] = "Processed"
'DispositionCodeValues.NeedsFollowUp' [str] = "Needs Follow-Up"
'ContactId' [str] = "0001Ba5SW8PJ0027"
attr_ref_id [int] = 4
PID:1760, TID:000A [bdo.dll 1.0.0.2] ISrvAccs.cs: 'RequestPlaceInQueue' ('105')
message attributes:
attr_itx_id [str] = "0370WE2HERXFJ00B"
attr_queue [str] = "E-Mail Out"
attr_ref_id [int] = 5
PID:1760, TID:000D [bdo.dll 1.0.0.2] ISrvAccs.cs: EventForwarder
PID:1760, TID:000D [bdo.dll 1.0.0.2] ISrvAccs.cs: EventCurrentAgentStatus
PID:1760, TID:000D [bdo.dll 1.0.0.2] interaction server: Callback_InteractionServer: ----------------->('EventCurrentAgentStatus')<-----------
PID:1760, TID:000D [bdo.dll 1.0.0.2] interaction server: 'EventCurrentAgentStatus' ('155')
message attributes:
attr_ref_id [int] = -1
AgentDescription = ComplexClass(AgentDescription):
attr_tenant_id [int] = 1
attr_place_id [str] = "SIP_Server_Place3"
attr_agent_id [str] = "MCR_Agent0"
attr_donot_disturb [bool] = True
attr_media_state_list [bstr] = KVList:
attr_media_capacity_list [bstr] = KVList:
PID:1760, TID:000D [bdo.dll 1.0.0.2] 'EventCurrentAgentStatus' ('155')
message attributes:
attr_ref_id [int] = -1
AgentDescription = ComplexClass(AgentDescription):
attr_tenant_id [int] = 1
attr_place_id [str] = "SIP_Server_Place3"
attr_agent_id [str] = "MCR_Agent0"
attr_donot_disturb [bool] = True
attr_media_state_list [bstr] = KVList:
attr_media_capacity_list [bstr] = KVList:
PID:1760, TID:000D [bdo.dll 1.0.0.2] reaction is removed
PID:1760, TID:000D [bdo.dll 1.0.0.2] ItxSrv:StatusForwarder()
PID:1760, TID:000D [bdo.dll 1.0.0.2] ISrvAccs.cs: EventForwarder
PID:1760, TID:000D [bdo.dll 1.0.0.2] ISrvAccs.cs: EventAck
PID:1760, TID:000D [bdo.dll 1.0.0.2] interaction server: Callback_InteractionServer: ----------------->('EventAck')<-----------
PID:1760, TID:000D [bdo.dll 1.0.0.2] interaction server: 'EventAck' ('125')
message attributes:
attr_ref_id [int] = 5
PID:1760, TID:000D [bdo.dll 1.0.0.2] 'EventAck' ('125')
message attributes:
attr_ref_id [int] = 5
PID:1760, TID:000D [bdo.dll 1.0.0.2] ItxSrv:StatusForwarder()
[/quote]
What is unbelievieble is that with IWS it works, I do what is suggested in the doc of genesys i do not have explicit errors... the only difference is that iws send lot more attached data, like if email server would wait for a specific field that i do not set without telling me wich field, this is my understanding.
tbremard:
I have :
EmailServer
8.0.100.02
C:\Program Files (x86)\GCTI\eServices 8.0.1\E-mail Server Java\E-MailServer\JavaEmailServerDriver.exe
-service GenesysEmailServer
will you tell me that this server is bugged ? and that i am working on this thing for 3 days because of a Bug of Genesys ??
IWS manages to send mail there must be extra data to add in the requests no ?
cavagnaro:
Don't think to be a bug as IWS does work fine.
What I think is the issue:
Unexpected error (null)"]|UserData=[].
Like there was no mail body or all info needed to send an email. Try to replicate all what IWS does.
tbremard:
I open a ticket on genesys support, and sent to them all the servers logs ( interaction, routing, mail, contact servers) and my PSDK logs, i wait for their analysis.
i didn't see in mail server logs that the udata was not set, indeed this is not normal, so question now is why mail server is invoked with null udata whereas it seems that i send all information to interaction server and to contact server .....
Kubig:
I do not think, that the problem will be related to any bug in Genesys component. I guess, that you have some bad configuration or deployment step. So, will see more after Genesys analyse
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version