Service 'Email' failed in method 'Send' (ErrorCode=701 ErrorMsg=Unexpected error

i try to send mail with a custom app developped with PSDK,

below are the logs of E-mailServer


Application name: E-MailServer
Application type: CFGEmailServer(64)
Host name:        demosrv
Time zone:        Eastern European Time
Local time:       2013-04-23T11:09:16.470
UTC time:         2013-04-23T08:09:16.470
Start time (UTC): 2013-04-23T08:09:15.983
Running time:     0:00:00:00.487
Memory usage:     65,470,464
Host info:        Windows Server 2008 R2, 6.1, x86, 11.3-b02, Java HotSpot(TM) Server VM, mixed mode
File:             (1) C:\logs\E-Services\E-MailServer\E-MailServer_all_2.20130423_110916_464.log

11:09:16.473 Trc 04112 The Log Output of type 'C:\logs\E-Services\E-MailServer\E-MailServer_all_2' has been created and opened
1


11:15:54.618 Dbg 23022 [InSbSchd] Queue size : 0 (no new messages found).
11:15:55.848 Dbg 23192 [SvcSrvW-2] Thread 'SvcSrvW-2' registers to shutdown notification.
11:15:55.848 Trc 25096 [SvcSrvW-2] <12> Request (queued for 2 ms): Id=12|Type=Request|Service=Email|Method=Send.
11:15:55.849 Trc 25019 [SvcSrvW-2] <12 0370WE2HERXFJ006 192.168.10.99:60972> Service 'Email' method 'Send' started.
11:15:55.849 Trc 23191 [SvcSrvW-2] <12 0370WE2HERXFJ006 192.168.10.99:60972> Request: Type=Request|Service=Email|Method=Send|Parameters=[MessageDispositionNotification="false"|DeliveryStatusNotification="false"]|UserData=[RRequestedSkills=[]|MediaType="email"|RRequestedSkillCombination=""|RTargetObjectSelected="Outbox"|InteractionId="0370WE2HERXFJ006"|AssignedAt="2013-04-23T08:15:24Z"|IW_BundleUid="10001"|IW_CaseUid="1234"|ServiceType="default"|IsHeld=0|IsOnline=0|SubmitSeq="85854551"|RTenant="Environment"|DeliveredAt="2013-04-23T08:15:24Z"|TenantId=1|RVQID=""|Queue="Outbox"|InteractionType="Outbound"|MovedToQueueAt="2013-04-23T08:15:51Z"|RStrategyName="IXN_QA Review"|RVQDBID=""|PlacedInQueueAt="2013-04-23T08:15:51Z"|RTargetTypeSelected="14"|IsLocked=0|CustomerSegment="default"|SubmittedAt="2013-04-23T08:15:24Z"|RTargetRuleSelected=""|RTargetPlaceSelected=""|ReceivedAt="2013-04-23T08:15:24Z"|RTargetObjSelDBID="522"|RTargetAgentSelected=""|ServiceObjective=0|AssignedTo="MCR_Agent0"|CBR-contract_DBIDs=""|PlaceInQueueSeq="85854564"|InteractionSubtype="OutboundNew"|CBR-Interaction_cost=""|CBR-IT-path_DBIDs=""|RStrategyDBID="480"|InteractionState=1|CBR-actual_volume=""].
11:15:55.849 Dbg 23081 [SvcSrvW-2] <12 0370WE2HERXFJ006> Sender : findById 0370WE2HERXFJ006.
11:15:55.858 Dbg 23082 [SvcSrvW-2] <12 0370WE2HERXFJ006> Sender : findById done.
11:15:55.858 Dbg 23090 [SvcSrvW-2] <12 0370WE2HERXFJ006> Sender : mark as reserved 0370WE2HERXFJ006.
11:15:55.877 Dbg 23092 [SvcSrvW-2] <12 0370WE2HERXFJ006> Sender : mark as reserved done 0370WE2HERXFJ006.
11:15:55.878 Dbg 23072 [SvcSrvW-2] <12 0370WE2HERXFJ006> 'From' address : [email removed]
11:15:55.878 Dbg 23107 [SvcSrvW-2] <12 0370WE2HERXFJ006> Candidate 'To' addresses : [[email removed]]
11:15:55.880 Dbg 23107 [SvcSrvW-2] <12 0370WE2HERXFJ006> Candidate 'Cc' addresses : []
11:15:55.880 Dbg 23107 [SvcSrvW-2] <12 0370WE2HERXFJ006> Candidate 'Bcc' addresses : []
11:15:55.880 Dbg 23111 [SvcSrvW-2] <12 0370WE2HERXFJ006> Excluded addresses : [[email removed], [email removed], [email removed], [email removed], [email removed]]
11:15:55.880 Dbg 23112 [SvcSrvW-2] <12 0370WE2HERXFJ006> Actual 'To' addresses : [[email removed]]
11:15:55.880 Dbg 23112 [SvcSrvW-2] <12 0370WE2HERXFJ006> Actual 'Cc' addresses : []
11:15:55.880 Dbg 23112 [SvcSrvW-2] <12 0370WE2HERXFJ006> Actual 'Bcc' addresses : []
11:15:55.886 Trc 29998 [SvcSrvW-2] <12 0370WE2HERXFJ006> Email has: 0 attached doc(s). Total size is:0 bytes; DB read in: 5ms.
11:15:55.893 Dbg 23096 [SvcSrvW-2] <12 0370WE2HERXFJ006> Sender : unreserve 0370WE2HERXFJ006.
11:15:55.906 Dbg 23098 [SvcSrvW-2] <12 0370WE2HERXFJ006> Sender : unreserve done 0370WE2HERXFJ006.
11:15:55.908 Std 25100 [SvcSrvW-2] <12 0370WE2HERXFJ006> Service 'Email' failed in method 'Send' (ErrorCode=701 ErrorMsg=Unexpected error (null) null). 
java.lang.NullPointerException
	at com.genesyslab.icc.emailserver.outbound.EmailSender.createMimeMessage(EmailSender.java:1621)
	at com.genesyslab.icc.emailserver.outbound.EmailSender.send(EmailSender.java:561)
	at com.genesyslab.icc.emailserver.service.EmailServiceLogic.send(EmailServiceLogic.java:226)
	at com.genesyslab.icc.emailserver.service.EmailServiceImpl$3.op(EmailServiceImpl.java:219)
	at com.genesyslab.icc.emailserver.service.EmailServiceImpl.doCall(EmailServiceImpl.java:535)
	at com.genesyslab.icc.emailserver.service.EmailServiceImpl.Send(EmailServiceImpl.java:214)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at com.genesyslab.icc.util.ServiceServer.invokeService(ServiceServer.java:581)
	at com.genesyslab.icc.util.ServiceServer.process(ServiceServer.java:467)
	at com.genesyslab.icc.util.ServiceServer.access$1600(ServiceServer.java:76)
	at com.genesyslab.icc.util.ServiceServer$ThirdPartyProtocolConnection$RequestHandler.run(ServiceServer.java:1413)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at com.genesyslab.util.concurrent16.NamedThreadFactory$1.run(NamedThreadFactory.java:55)
	at java.lang.Thread.run(Unknown Source)

11:15:55.908 Trc 25020 [SvcSrvW-2] <12 0370WE2HERXFJ006> Service 'Email' method 'Send' ended, processing time (ms): 59.
11:15:55.908 Std 25080 [SvcSrvW-2] <12> Exception message: Unexpected error (null).
11:15:55.909 Trc 25097 [SvcSrvW-2] <12> Response: Id=12|Type=Fault|Service=Email|Method=Send|Parameters=[FaultCode="701"|FaultString="08:15:55.908 Server: E-MailServer Msg: Unexpected error (null)"]|UserData=[].
11:15:55.909 Trc 25098 [SvcSrvW-2] <12> 'Email.Send' (request id 12) handling duration : 63 ms.




any suggestion ?
it seems there is a field which is missing, but no clue on which field.
the server is correctly configured since with interaction workspace there is no problem


ps: if you are Genesys engineer in Paris send me your cv, i give you a job ( [email removed] )

Can you enable DEBUG on the SMTP connector of your ESJ app?

helo,

could you please tell me on which application, which key and wich value should i set to do what you suggest ?

i tried to set on
E-MailServer
in smtp-client section :
enable-debug = TRUE

and nothing changes:

Application name: E-MailServer Application type: CFGEmailServer(64) Host name: demosrv Time zone: Eastern European Time Local time: 2013-04-23T14:17:21.262 UTC time: 2013-04-23T11:17:21.262 Start time (UTC): 2013-04-23T09:34:38.235 Running time: 0:01:42:43.027 Memory usage: 65,470,464 Host info: Windows Server 2008 R2, 6.1, x86, 11.3-b02, Java HotSpot(TM) Server VM, mixed mode File: (1) C:\logs\E-Services\E-MailServer\E-MailServer_all_4.20130423_141721_262.log

14:17:21.262 Trc 04112 The Log Output of type ‘C:\logs\E-Services\E-MailServer\E-MailServer_all_4’ has been created and opened

14:18:03.553 Dbg 23005 [MsgIn-4] Inbound messaging client finished.
14:18:03.607 Dbg 23192 [SvcSrvW-3] Thread ‘SvcSrvW-3’ registers to shutdown notification.
14:18:03.608 Trc 25096 [SvcSrvW-3] <18> Request (queued for 3 ms): Id=18|Type=Request|Service=Email|Method=Send.
14:18:03.609 Trc 25019 [SvcSrvW-3] <18 0370WE2HERXFJ009 192.168.10.99:61788> Service ‘Email’ method ‘Send’ started.
14:18:03.610 Trc 23191 [SvcSrvW-3] <18 0370WE2HERXFJ009 192.168.10.99:61788> Request: Type=Request|Service=Email|Method=Send|Parameters=[MessageDispositionNotification=“false”|DeliveryStatusNotification=“false”]|UserData=[RRequestedSkillCombination=“”|MediaType=“email”|DispositionCode.Label=“Disposition Code”|InteractionId=“0370WE2HERXFJ009”|IW_BundleUid=“10001”|ServiceType=“default”|IsHeld=0|IsOnline=0|RTenant=“Environment”|SubmitSeq=“85854630”|DeliveredAt=“2013-04-23T11:17:37Z”|RVQID=“”|EmailAddress=“[email removed]”|Queue=“Outbox”|InteractionType=“Outbound”|MovedToQueueAt=“2013-04-23T11:17:59Z”|DispositionCodeValues.Processed=“Processed”|PlacedInQueueAt=“2013-04-23T11:17:59Z”|IsLocked=0|CustomerSegment=“default”|RTargetRuleSelected=“”|RTargetPlaceSelected=“”|To=“[email removed]”|RTargetObjSelDBID=“522”|ReceivedAt=“2013-04-23T11:17:37Z”|RTargetAgentSelected=“”|CBR-contract_DBIDs=“”|InteractionSubtype=“OutboundNew”|CBR-IT-path_DBIDs=“”|CBR-actual_volume=“”|RRequestedSkills=|RTargetObjectSelected=“Outbox”|IW_CaseUid=“1234”|AssignedAt=“2013-04-23T11:17:37Z”|DispositionCode.Key=“DispositionCode”|TenantId=1|RStrategyName=“IXN_QA Review”|RVQDBID=“”|RTargetTypeSelected=“14”|SubmittedAt=“2013-04-23T11:17:37Z”|Subject=“stark test”|ServiceObjective=0|AssignedTo=“MCR_Agent0”|DispositionCodeValues.NeedsFollowUp=“Needs Follow-Up”|CBR-Interaction_cost=“”|PlaceInQueueSeq=“85854644”|FromAddress=“[email removed]”|ContactId=“0001Ba5SW8PJ0027”|RStrategyDBID=“480”|InteractionState=1].
14:18:03.610 Dbg 23081 [SvcSrvW-3] <18 0370WE2HERXFJ009> Sender : findById 0370WE2HERXFJ009.
14:18:03.616 Dbg 23082 [SvcSrvW-3] <18 0370WE2HERXFJ009> Sender : findById done.
14:18:03.616 Dbg 23090 [SvcSrvW-3] <18 0370WE2HERXFJ009> Sender : mark as reserved 0370WE2HERXFJ009.
14:18:03.631 Dbg 23092 [SvcSrvW-3] <18 0370WE2HERXFJ009> Sender : mark as reserved done 0370WE2HERXFJ009.
14:18:03.631 Dbg 23072 [SvcSrvW-3] <18 0370WE2HERXFJ009> ‘From’ address : [email removed]
14:18:03.632 Dbg 23107 [SvcSrvW-3] <18 0370WE2HERXFJ009> Candidate ‘To’ addresses : [[email removed]]
14:18:03.632 Dbg 23107 [SvcSrvW-3] <18 0370WE2HERXFJ009> Candidate ‘Cc’ addresses :
14:18:03.632 Dbg 23107 [SvcSrvW-3] <18 0370WE2HERXFJ009> Candidate ‘Bcc’ addresses :
14:18:03.632 Dbg 23111 [SvcSrvW-3] <18 0370WE2HERXFJ009> Excluded addresses : [[email removed], [email removed], [email removed], [email removed], [email removed]]
14:18:03.632 Dbg 23112 [SvcSrvW-3] <18 0370WE2HERXFJ009> Actual ‘To’ addresses : [[email removed]]
14:18:03.632 Dbg 23112 [SvcSrvW-3] <18 0370WE2HERXFJ009> Actual ‘Cc’ addresses :
14:18:03.632 Dbg 23112 [SvcSrvW-3] <18 0370WE2HERXFJ009> Actual ‘Bcc’ addresses :
14:18:03.636 Trc 29998 [SvcSrvW-3] <18 0370WE2HERXFJ009> Email has: 0 attached doc(s). Total size is:0 bytes; DB read in: 4ms.
14:18:03.642 Dbg 23096 [SvcSrvW-3] <18 0370WE2HERXFJ009> Sender : unreserve 0370WE2HERXFJ009.
14:18:03.655 Dbg 23098 [SvcSrvW-3] <18 0370WE2HERXFJ009> Sender : unreserve done 0370WE2HERXFJ009.
14:18:03.655 Std 25100 [SvcSrvW-3] <18 0370WE2HERXFJ009> Service ‘Email’ failed in method ‘Send’ (ErrorCode=701 ErrorMsg=Unexpected error (null) null).
java.lang.NullPointerException
at com.genesyslab.icc.emailserver.outbound.EmailSender.createMimeMessage(EmailSender.java:1621)
at com.genesyslab.icc.emailserver.outbound.EmailSender.send(EmailSender.java:561)
at com.genesyslab.icc.emailserver.service.EmailServiceLogic.send(EmailServiceLogic.java:226)
at com.genesyslab.icc.emailserver.service.EmailServiceImpl$3.op(EmailServiceImpl.java:219)
at com.genesyslab.icc.emailserver.service.EmailServiceImpl.doCall(EmailServiceImpl.java:535)
at com.genesyslab.icc.emailserver.service.EmailServiceImpl.Send(EmailServiceImpl.java:214)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.genesyslab.icc.util.ServiceServer.invokeService(ServiceServer.java:581)
at com.genesyslab.icc.util.ServiceServer.process(ServiceServer.java:467)
at com.genesyslab.icc.util.ServiceServer.access$1600(ServiceServer.java:76)
at com.genesyslab.icc.util.ServiceServer$ThirdPartyProtocolConnection$RequestHandler.run(ServiceServer.java:1413)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at com.genesyslab.util.concurrent16.NamedThreadFactory$1.run(NamedThreadFactory.java:55)
at java.lang.Thread.run(Unknown Source)

14:18:03.655 Trc 25020 [SvcSrvW-3] <18 0370WE2HERXFJ009> Service ‘Email’ method ‘Send’ ended, processing time (ms): 45.
14:18:03.655 Std 25080 [SvcSrvW-3] <18> Exception message: Unexpected error (null).
14:18:03.655 Trc 25097 [SvcSrvW-3] <18> Response: Id=18|Type=Fault|Service=Email|Method=Send|Parameters=[FaultCode=“701”|FaultString=“11:18:03.655 Server: E-MailServer Msg: Unexpected error (null)”]|UserData=.
14:18:03.656 Trc 25098 [SvcSrvW-3] <18> ‘Email.Send’ (request id 18) handling duration : 52 ms.
14:18:08.225 Dbg 23018 [InPrSchd] Queue size : 0 LowWaterMark : 20.
14:18:08.225 Dbg 23019 [InPrSchd] Instant throughput : 0.00 msg/s
14:18:08.225 Dbg 23019 [InPrSchd] Average throughput : 0.00 msg/s
14:18:08.225 Dbg 23020 [InPrSchd] Looking up messages to process in database…
14:18:08.228 Dbg 23021 [InPrSchd] Found 0 matching messages in database in 3 ms

update of 25th april 2013:

the exception :

14:18:03.655 Std 25100 [SvcSrvW-3] <18 0370WE2HERXFJ009> Service 'Email' failed in method 'Send' (ErrorCode=701 ErrorMsg=Unexpected error (null) null). java.lang.NullPointerException

is trigerred by :

14:18:03.655 Trc 25097 [SvcSrvW-3] <18> Response: Id=18|Type=Fault|Service=Email|Method=Send|Parameters=[FaultCode="701"|FaultString="11:18:03.655 Server: E-MailServer Msg: Unexpected error (null)"]|UserData=[].

What type of corporate email server are you using (Exchange,Lotus,…)? I know about know issue in currently version of ESJ (8.1.2xx.x), which generates that error. Fix is planned to next version 8.1.3

The fact you don’t see SMTP debug means that it is failing even before communicating with the server…
Can you post the code you are using to try to send the email?

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:

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

then i aks IS to give me an interaction id: ( and it gives me 0370WE2HERXFJ00B )

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:

then i connect to contact server and insert interaction with content:

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=[email removed]
ToAddresses=[email removed]

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

then with IS i finally send the mail to ouput queue:

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] = "[email removed]" 'To' [str] = "[email removed]" 'EmailAddress' [str] = "[email removed]" '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()

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.

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 ?

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.

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 …

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

They won’t help…they are support not Professional Services. They will never review your code, that is your job unless you hire someone from Genesys to do that job.

tbremard,

Could you please check if you applications stores correctly email content (body) in UCS? Email Server fails in the createMimeMessage method because some variable is null…

R.

Hi René,

for me content is correctly stored in UCS , to verify i asked to get content today of my interaction:

15:07:02.327 Dbg 09900 Reference 1 added to the message 'RequestGetInteractionContent' ('21') message attributes: InteractionId = 0370WE2HERXFJ00B IncludeAttachments = True IncludeBinaryContent = False ReferenceId = 1

15:07:02.507 Dbg 09900 Sending message to OpenMedia.ExternalService[tcp://demosrv.genesyslab.com:4400/(Socket#612)]
‘Request3rdServer’ (‘500’)
message attributes:
Request [bstr] = KVList:
‘Version’ [str] = “1.0”
‘AppName’ [str] = “”
‘AppType’ [str] = “Contact Server”
‘Service’ [str] = “OMInteractions”
‘Method’ [str] = “GetInteractionContent”
‘Parameters’ [bstr] = KVList:
‘InteractionId’ [str] = “0370WE2HERXFJ00B”
‘IncludeBinaryContent’ [str] = “FALSE”
‘IncludeAttachments’ [str] = “TRUE”

ReferenceId [int] = 1

15:07:02.511 Dbg 09900 OpenMedia.ExternalService[tcp://demosrv.genesyslab.com:4400/(Socket#612)]: Waiting for response on message…
‘RequestGetInteractionContent’ (‘21’)
message attributes:
InteractionId = 0370WE2HERXFJ00B
IncludeAttachments = True
IncludeBinaryContent = False
ReferenceId = 1

15:07:02.512 Dbg 09900 248 bytes has been sent to Socket#612, remained: 0 bytes
15:07:02.571 Dbg 09900 590 bytes has been received on Socket#612
15:07:02.574 Dbg 09900 New message #501
15:07:02.628 Dbg 09900 Completed handling OpenMedia.ExternalService[tcp://demosrv.genesyslab.com:4400/(Socket#612)] message…
‘Event3rdServerResponse’ (‘501’)
message attributes:
Request [bstr] = KVList:
‘Service’ [str] = “OMInteractions”
‘Method’ [str] = “GetInteractionContent”
‘Parameters’ [bstr] = KVList:
‘InteractionContent’ [bstr] = KVList:
‘Text’ [str] = “This is the e-mail body.”

		'InteractionAttributes' [bstr] = KVList: 
			'ThreadId' [str] = "000DDa8Q9WJA001Y"
			'EntityTypeId' [int] = 1
			'CanBeParent' [str] = "true"
			'TenantId' [int] = 1
			'StartDate' [str] = "2013-04-24T06:31:33.263Z"
			'TypeId' [str] = "Outbound"
			'CreatorAppId' [int] = 161
			'MediaTypeId' [str] = "email"
			'Subject' [str] = "STARK Sample e-mail subject"
			'Status' [int] = 1
			'Id' [str] = "0370WE2HERXFJ00B"

		'Attachments' [bstr] = KVList: 

		'EntityAttributes' [bstr] = KVList: 
			'ToAddresses' [str] = "[email removed]"
			'FromAddress' [str] = "[email removed]"

UserData [bstr] = KVList:
ReferenceId [int] = 1

15:07:02.744 Dbg 09900 OpenMedia.ExternalService[tcp://demosrv.genesyslab.com:4400/(Socket#612)]: Response is received.
‘EventGetInteractionContent’ (‘121’)
message attributes:
InteractionContent =
Text=This is the e-mail body.

InteractionAttributes =
CanBeParent=True
CreatorAppId=161
EntityTypeId=EmailOut
Id=0370WE2HERXFJ00B
MediaTypeId=email
StartDate=24/04/2013 06:31:33
Status=Pending
Subject=STARK Sample e-mail subject
TenantId=1
TypeId=Outbound
ThreadId=000DDa8Q9WJA001Y

EntityAttributes =
FromAddress=[email removed]
ToAddresses=[email removed]

ReferenceId = 1

15:07:02.745 Dbg 09900 -------------------Current State-------------------
15:07:02.745 Dbg 09900 ChannelState:Opened, ConnectionState:Opened
15:07:02.746 Dbg 09900 SocketID=612, Connected=True, AddressFamily=InterNetwork
15:07:02.746 Dbg 09900 Socket#612 having 0 bytes for send
15:07:02.747 Dbg 09900 ---------------------------------------------------
15:07:02.748 Dbg 09900 PID:1904, TID:0009 [bdo.dll 1.0.0.2] StatSrv: ‘RequestGetInteractionContent’ (‘21’)
message attributes:
InteractionId = 0370WE2HERXFJ00B
IncludeAttachments = True
IncludeBinaryContent = False
ReferenceId = 1

15:07:02.760 Trc 09900 PID:1904, TID:0009 [bdo.dll 1.0.0.2] StatSrv: I AM PARENT !
15:07:02.763 Dbg 09900 PID:1904, TID:0009 [bdo.dll 1.0.0.2] StatSrv: ‘EventGetInteractionContent’ (‘121’)
message attributes:
InteractionContent =
Text=This is the e-mail body.

InteractionAttributes =
CanBeParent=True
CreatorAppId=161
EntityTypeId=EmailOut
Id=0370WE2HERXFJ00B
MediaTypeId=email
StartDate=24/04/2013 06:31:33
Status=Pending
Subject=STARK Sample e-mail subject
TenantId=1
TypeId=Outbound
ThreadId=000DDa8Q9WJA001Y

EntityAttributes =
FromAddress=[email removed]
ToAddresses=[email removed]

ReferenceId = 1

Genesys support didn’t provided any usefull help, they only managed to ask me the email server version i use ( which is mentionned in the logs I gave them)

Are you using IWS, GAD or some other own agents application?

He is developing something Kubig.
As told you, Genesys Support will never review source code.

In this case, yes..support never help you with custom code. You have to develop it yourself as clearly as possible :wink:

yes , this is my own source code.

there is a problem of course in my source code, the point is that api have all requested parameters, and servers ack all message without problem.

i initiated my code by reversing the logs of servers in verbose all status.
and i give parameters which should be ok and there is problem…
my source code is useless because in the logs i give you see all the requests with all the parameters.

problem is not to review source code problem is that i set parameters as required and system doesn’t work.

I cannot agree, in case there is a lot of own integration/developing applications, which works with eServices layer succesfully ( we have develop similiar app too) and I guess, that most of developers proceed same step by step or using same doc.It is very important to know how Genesys exactly works and how to achieve your needs, without these knowledge is not possible to develop “good” application

I have some news from Genesys, but not the answer …

De : [email removed] [mailto:[email removed]] Envoyé : mercredi 1 mai 2013 15:11 À : [email removed] Objet : SR# 602522 - eservice sendmail with psdk

Dear Thierry,
I’ve made Tier 3 request on your problem.
Best Regards,
Roman
Genesys Technical Support
http://genesyslab.com/support

I obtained a correct answer from genesys which allow me to sendmail now:

De : [email removed] [mailto:[email removed]] Envoyé : mardi 21 mai 2013 13:01 À : [email removed] Objet : Notification: SR# 602522 requires your update - "eservice sendmail with psdk"

Dear Thierry,

We need your help to resolve your Service Request (SR) as quickly as possible. We are waiting for information from you regarding SR# 602522. The information that we were expecting from you is as follows:

1-5CAOQP: Dear Thierry,

Update from Tier 3:

Engineering has identified the problem, It’s incorrectly created new outbound email interaction - missing Subtype Attribute with corresponding field Interaction.SubtypeID = NULL.

For the customer’s case it should be I guess “OutboundNew”.

So the customer should take care about this attribute/field and populate that in their application/desktop for new created outbound email.

Developers are going to extend checking the fields on possible “NULL” in next ESJ/UCS versions.

That problem was classified as “Minor” and will not be implemented before next GA release.
Best Regards,
Roman Kolosha
Genesys Technical Support
http://genesyslab.com/support