@Override public void fireRecoverablePduException(RecoverablePduException recoverablePduException) { tracer.warning("Received fireRecoverablePduException", recoverablePduException); Pdu partialPdu = recoverablePduException.getPartialPdu(); SmppTransactionImpl smppServerTransaction = (SmppTransactionImpl) partialPdu.getReferenceObject(); if (smppServerTransaction == null) { tracer.severe(String.format( "Rx : fireRecoverablePduException for SmppSessionImpl=%s but SmppTransactionImpl is null", this.esme.getName()), recoverablePduException); return; } try { smppServerResourceAdaptor.fireEvent(EventsType.RECOVERABLE_PDU_EXCEPTION, smppServerTransaction.getActivityHandle(), recoverablePduException); } catch (Exception e) { tracer.severe(String.format( "Received fireRecoverablePduException. Error while processing RecoverablePduException=%s", recoverablePduException), e); } finally { if (smppServerTransaction != null) { smppServerResourceAdaptor.endActivity(smppServerTransaction); } } }
protected void doBind(DefaultSmppSession session, SmppSessionConfiguration config, SmppSessionHandler sessionHandler) throws SmppTimeoutException, SmppChannelException, SmppBindException, UnrecoverablePduException, InterruptedException { // create the bind request we'll use (may throw an exception) BaseBind bindRequest = createBindRequest(config); BaseBindResp bindResp = null; try { // attempt to bind to the SMSC // session implementation handles error checking, version negotiation, and can be discarded bindResp = session.bind(bindRequest, config.getBindTimeout()); } catch (RecoverablePduException e) { // if a bind fails, there really is no recovery... throw new UnrecoverablePduException(e.getMessage(), e); } }
@Override public void fireRecoverablePduException(RecoverablePduException e) { testingForm.addMessage("RecoverablePduException", e.toString()); }
} catch (RecoverablePduException e) { if (e.getPartialPdu() == null) { e.setPartialPdu(pdu);
throw new RecoverablePduException("Request was cancelled"); } else { throw new UnrecoverablePduException("Unable to sendRequestAndGetResponse successfully (future was in strange state)");
} catch (RecoverablePduException e) { if (e.getPartialPdu() == null) { e.setPartialPdu(pdu);
throw new RecoverablePduException("Request was cancelled"); } else { throw new UnrecoverablePduException("Unable to sendRequestAndGetResponse successfully (future was in strange state)");
} catch (RecoverablePduException e) { if (e.getPartialPdu() == null) { e.setPartialPdu(pdu);
protected void doBind(DefaultSmppSession session, SmppSessionConfiguration config, SmppSessionHandler sessionHandler) throws SmppTimeoutException, SmppChannelException, SmppBindException, UnrecoverablePduException, InterruptedException { // create the bind request we'll use (may throw an exception) BaseBind bindRequest = createBindRequest(config); BaseBindResp bindResp = null; try { // attempt to bind to the SMSC // session implementation handles error checking, version negotiation, and can be discarded bindResp = session.bind(bindRequest, config.getBindTimeout()); } catch (RecoverablePduException e) { // if a bind fails, there really is no recovery... throw new UnrecoverablePduException(e.getMessage(), e); } }
throw new RecoverablePduException("Request was cancelled"); } else { throw new UnrecoverablePduException("Unable to sendRequestAndGetResponse successfully (future was in strange state)");
} catch (RecoverablePduException e) { if (e.getPartialPdu() == null) { e.setPartialPdu(pdu);
protected void doBind(DefaultSmppSession session, SmppSessionConfiguration config, SmppSessionHandler sessionHandler) throws SmppTimeoutException, SmppChannelException, SmppBindException, UnrecoverablePduException, InterruptedException { // create the bind request we'll use (may throw an exception) BaseBind bindRequest = createBindRequest(config); BaseBindResp bindResp = null; try { // attempt to bind to the SMSC // session implementation handles error checking, version negotiation, and can be discarded bindResp = session.bind(bindRequest, config.getBindTimeout()); logger.debug("Bound to esme systemId=" + config.getSystemId()); } catch (RecoverablePduException e) { // if a bind fails, there really is no recovery... throw new UnrecoverablePduException(e.getMessage(), e); } }
throw new RecoverablePduException("Request was cancelled"); } else { throw new UnrecoverablePduException("Unable to sendRequestAndGetResponse successfully (future was in strange state)");
protected void doBind(DefaultSmppSession session, SmppSessionConfiguration config, SmppSessionHandler sessionHandler) throws SmppTimeoutException, SmppChannelException, SmppBindException, UnrecoverablePduException, InterruptedException { // create the bind request we'll use (may throw an exception) BaseBind bindRequest = createBindRequest(config); BaseBindResp bindResp = null; try { // attempt to bind to the SMSC // session implementation handles error checking, version negotiation, and can be discarded bindResp = session.bind(bindRequest, config.getBindTimeout()); } catch (RecoverablePduException e) { // if a bind fails, there really is no recovery... throw new UnrecoverablePduException(e.getMessage(), e); } }