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] )