catch (WrongLengthOfStringException exc) {
myLog.error ("query - failed creating address", exc);
return SmppMessageStateType.eUnknown;
}
QuerySMResp response = null;
try {
myLog.debug ("query - calling getSession ().query");
response = getSession ().query (request);
}
catch (ValueNotSetException exc) {
myLog.error ("query - value not set", exc);
return SmppMessageStateType.eUnknown;
}
catch (WrongSessionStateException exc) {
myLog.error ("query - session state wrong", exc);
return SmppMessageStateType.eUnknown;
}
catch (TimeoutException exc) {
myLog.error ("query - timeout establishing connection", exc);
return SmppMessageStateType.eUnknown;
}
catch (PDUException exc) {
myLog.error ("query - exception in pdu", exc);
return SmppMessageStateType.eUnknown;
}
catch (IOException exc) {
myLog.error ("query - io exception (socket problem?)", exc);
return SmppMessageStateType.eUnknown;
}
if (response == null) {
return SmppMessageStateType.eUnknown;
}
else {
myLog.debug ("query - received response: {}", response.debugString ());
return SmppMessageStateType.decode (response.getMessageState ());
}
}