While accepting MO messages we are getting "BufferUnderFlow Exception" while decoding the message buffer using 'X-Gsm7Bit" decoder. Because of that exception Receiver thread blocked. Not accepting any messages from SMSC. Can any body suggest how this issue can be resolved?
public String getMessage() {
String useEncoding = encoding != null ? encoding : Data.ENC_GSM7BIT;
String theMessage = null;
try {
theMessage = getMessage(useEncoding);
} catch (UnsupportedEncodingException e) {
// fall back to ascii
try {
theMessage = getMessage(Data.ENC_ASCII);
} catch (UnsupportedEncodingException uee) {
// ascii is always supported
}
}
return theMessage;
}