#26 BufferUnderFlow Exception while decoding MO message

open
nobody
None
5
2012-10-26
2010-07-29
Hussain Mahammad
No

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;
}

Discussion