Hi,

Can you please run the standard SendMessage example with full debug on, and
post or send me the complete log file?

On 5 August 2010 18:12, Darren <[email protected]> wrote:

> Does anyone know how to solve an issue where I receive a connection
> about exception?
> I'm using a MultiTech IP Modem.
>
> It seems to occur when I try to send a SMS message. Here is the code
> for my message sending:
>
> public String sendMessage(OutboundTextMessage message) {
>    try {
>        while (true) {
>            if (service != null && service.getServiceStatus() ==
> ServiceStatus.STARTED)
>                break;
>
>            if (!initializing)
>                startup();
>        }
>
>        for (int i = 0; i < 3; i++) {
>            OutboundMessage outbound = new OutboundMessage(
>                message.getRecipient(), message.getText());
>
>            outbound.setStatusReport(message.getStatusReport());
>            outbound.setPriority(message.getPriority());
>
>            if (service.sendMessage(outbound))
>               return outbound.getRefNo();
>        }
>    } catch (Exception e) {
>        logger.error(e.getMessage());
>    }
>
>    return null;
> }
>
> And here is a snippet from the log file.
>
> 1161821373 2010-08-05 08:25:04,086 [SMSLib-AsyncNotifier :
> +447974459040] DEBUG org.smslib.helper.Logger  - GTW: +447974459040:
> AsyncNotifier thread ended.
> 1161821373 2010-08-05 08:25:04,086 [SMSLib-AsyncMessageProcessor :
> +447974459040] DEBUG org.smslib.helper.Logger  - GTW: +447974459040:
> AsyncMessageProcessor thread ended.
> 1161821373 2010-08-05 08:25:04,086 [SMSlib-ModemReader-+447974459040]
> DEBUG org.smslib.helper.Logger  - GTW: +447974459040: ModemReader
> thread ended.
> 1161821373 2010-08-05 08:25:04,086 [WatchDog] INFO
> org.smslib.helper.Logger  - GTW: +447974459040: Closing:
> 10.101.102.220 @5000
> 1161821373 2010-08-05 08:25:04,086 [Thread-42479] DEBUG
> org.smslib.helper.Logger  - GTW: +447974459040: Peeker stopped.
> 1161821373 2010-08-05 08:25:04,086 [NotifyQueueManager] DEBUG
> org.smslib.helper.Logger  - NotifyQueueManager end...
> 1161821373 2010-08-05 08:25:04,086 [WatchDog] ERROR
> org.smslib.helper.Logger  - Error while starting Gateway:
> +447974459040
> java.net.SocketException: Software caused connection abort: socket
> write error
>        at java.net.SocketOutputStream.socketWrite0(Native Method)
>        at java.net.SocketOutputStream.socketWrite(Unknown Source)
>        at java.net.SocketOutputStream.write(Unknown Source)
>        at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
>        at java.io.BufferedOutputStream.flush(Unknown Source)
>        at
>
> org.apache.commons.net.telnet.TelnetClient._flushOutputStream(TelnetClient.java:
> 80)
>        at
>
> org.apache.commons.net.telnet.TelnetOutputStream.flush(TelnetOutputStream.java:
> 143)
>        at java.io.FilterOutputStream.flush(Unknown Source)
>        at org.smslib.modem.IPModemDriver.write(IPModemDriver.java:141)
>        at org.smslib.modem.AModemDriver.write(AModemDriver.java:299)
>        at org.smslib.modem.athandler.ATHandler.reset(ATHandler.java:87)
>        at org.smslib.modem.AModemDriver.connect(AModemDriver.java:119)
>        at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:186)
>        at org.smslib.Service$WatchDog.process(Service.java:1499)
>        at org.smslib.threading.AServiceThread.run(AServiceThread.java:117)
>
> --
> You received this message because you are subscribed to the Google Groups
> "SMSLib User Group" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<smslib%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/smslib?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"SMSLib User Group" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/smslib?hl=en.

Reply via email to