Genesys CTI User Forum > Genesys-related Development
Service 'Email' failed in method 'Send' (ErrorCode=701 ErrorMsg=Unexpected error
tbremard:
i try to send mail with a custom app developped with PSDK,
below are the logs of E-mailServer
[code]
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 : account@premier.com
11:15:55.878 Dbg 23107 [SvcSrvW-2] <12 0370WE2HERXFJ006> Candidate 'To' addresses : [jones@demosrv.genesyslab.com]
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 : [external@premier.com, account@premier.com, brokerage@premier.com, info@premier.com, oessample@premier.com]
11:15:55.880 Dbg 23112 [SvcSrvW-2] <12 0370WE2HERXFJ006> Actual 'To' addresses : [jones@demosrv.genesyslab.com]
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.
[/code]
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 ( tbremard@ceritek.com )
cavagnaro:
Can you enable DEBUG on the SMTP connector of your ESJ app?
tbremard:
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:
[quote]
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] <pop-client-oes-sample> 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="jones@demosrv.genesyslab.com"|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="jones@demosrv.genesyslab.com"|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="account@premier.com"|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 : account@premier.com
14:18:03.632 Dbg 23107 [SvcSrvW-3] <18 0370WE2HERXFJ009> Candidate 'To' addresses : [jones@demosrv.genesyslab.com]
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 : [external@premier.com, account@premier.com, brokerage@premier.com, info@premier.com, oessample@premier.com]
14:18:03.632 Dbg 23112 [SvcSrvW-3] <18 0370WE2HERXFJ009> Actual 'To' addresses : [jones@demosrv.genesyslab.com]
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
[/quote]
update of 25th april 2013:
the exception :
[quote]
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
[/quote]
is trigerred by :
[quote]
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=[].
[/quote]
Kubig:
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
cavagnaro:
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?
Navigation
[0] Message Index
[#] Next page
Go to full version