Hi I am not able to handle an exception which comes from RXTX , its trace is given below
java.io.IOException: Input/output error in nativeavailable at gnu.io.RXTXPort.nativeavailable(Native Method) at gnu.io.RXTXPort$SerialInputStream.available(RXTXPort.java:1532) at org.smslib.modem.SerialModemDriver.portHasData(SerialModemDriver.java:134) at org.smslib.modem.SerialModemDriver$PortReader.process(SerialModemDriver.java:215) at org.smslib.threading.AServiceThread.run(AServiceThread.java:105) 3392 2013-09-27 19:04:02,325 [PortReader() [/dev/ttyUSB0]] ERROR org.smslib.threading.AServiceThread - Error! java.io.IOException: Input/output error in nativeavailable at gnu.io.RXTXPort.nativeavailable(Native Method) at gnu.io.RXTXPort$SerialInputStream.available(RXTXPort.java:1532) at org.smslib.modem.SerialModemDriver.portHasData(SerialModemDriver.java:134) at org.smslib.modem.SerialModemDriver$PortReader.process(SerialModemDriver.java:215) at org.smslib.threading.AServiceThread.run(AServiceThread.java:105) java.io.IOException: Input/output error in nativeavailable at gnu.io.RXTXPort.nativeavailable(Native Method) at gnu.io.RXTXPort$SerialInputStream.available(RXTXPort.java:1532) at org.smslib.modem.SerialModemDriver.portHasData(SerialModemDriver.java:134) at org.smslib.modem.SerialModemDriver$PortReader.process(SerialModemDriver.java:215) at org.smslib.threading.AServiceThread.run(AServiceThread.java:105) 3392 2013-09-27 19:04:02,325 [PortReader() [/dev/ttyUSB0]] ERROR org.smslib.threading.AServiceThread - Error! A series of above exception block runs. My program works fine . This exception is thrown when I suddenly remove the modem attached to my running application. I want a graceful termination of the program without the exception block, whenever a modem is removed and causing the service thread to stop automatically. Any clue to achieve this . Thanks in advance. -- You received this message because you are subscribed to the Google Groups "SMSLib Discussion Group" group. To view this discussion on the web visit https://groups.google.com/d/msgid/smslib/d33ab3a9-2678-4993-a99a-02802fc87dca%40googlegroups.com.
