ret.create();
// TODO: handle returning errors as response message,
// javax.ejb.ObjectNotFoundException and the others thrown...
} catch (NotFoundException e) {
// This actually can not happen here
throw new CADoesntExistsException(e);
} catch (IllegalKeyStoreException e) {
throw new IllegalKeyException(e);
} catch (NoSuchProviderException e) {
log.error("NoSuchProvider provider: ", e);
} catch (InvalidKeyException e) {
log.error("Invalid key in request: ", e);
} catch (NoSuchAlgorithmException e) {
log.error("No such algorithm: ", e);
} catch (CRLException e) {
log.error("Cannot create response message: ", e);
} catch (IOException e) {
log.error("Cannot create response message: ", e);
} catch (CATokenOfflineException ctoe) {
String msg = intres.getLocalizedMessage("error.catokenoffline", ca.getSubjectDN());
log.error(msg, ctoe);
logSession.log(admin, ca.getCAId(), LogConstants.MODULE_CA, new java.util.Date(), null, null, LogConstants.EVENT_ERROR_GETLASTCRL, msg, ctoe);
throw new CADoesntExistsException(msg);
}
log.trace("<getCRL(IRequestMessage)");
return ret;
}