3 Replies Latest reply: Jan 11, 2013 4:27 AM by VinayEndla RSS

    Realtime Email Sender

    846189
      I am trying to send a realtime email through a batch process.

      I have configured a BO (CM-EmailMessage), Outbound message, External system and XAI sender.

      Invocation Type - Realtime
      XAI Class - RTEMAILSNDR

      Now I am trying to send the message as below after populating the outbound message instance.

      BusinessObjectDispatcher.add(outboundMessageInst);

      I get the below exception

      - 2012-12-05 11:10:21,225 [main] ERROR (domain.integration.RealtimeOutboundMessage) Problems invoking sender : host parameter is null.
      java.lang.IllegalArgumentException: host parameter is null
           at org.apache.commons.httpclient.HttpConnection.<init>(HttpConnection.java:220)
           at org.apache.commons.httpclient.HttpConnection.<init>(HttpConnection.java:190)
           at org.apache.commons.httpclient.SimpleHttpConnectionManager.getConnection(SimpleHttpConnectionManager.java:102)
           at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:613)
           at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:497)
           at com.splwg.base.messaging.impl.RealtimeHTTPSender.attemptToSend(RealtimeHTTPSender.java:185)
           at com.splwg.base.messaging.impl.RealtimeHTTPSender.executeMethod(RealtimeHTTPSender.java:153)
           at com.splwg.base.messaging.impl.RealtimeHTTPSender.sendUsingGet(RealtimeHTTPSender.java:84)
           at com.splwg.base.messaging.impl.RealtimeHTTPSender.send(RealtimeHTTPSender.java:59)
           at com.splwg.base.domain.integration.RealtimeOutboundMessage_Impl.send(RealtimeOutboundMessage_Impl.java:380)
           at com.splwg.base.domain.integration.RealtimeOutboundMessage_Impl.create(RealtimeOutboundMessage_Impl.java:218)


      Why is it calling RealtimeHTTPSender instead of RealtimeEmailSender?