It looks like native IO exception which comes from OS driver. Which version of RXTX do you use?
пятница, 27 сентября 2013 г., 16:49:16 UTC+3 пользователь Sumeet написал: > > 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/71707713-7bef-4b2e-a26f-db4d037c697d%40googlegroups.com.
