} catch (Throwable e) {
- e.printStackTrace();
+ LOGGER.error("Could not perform write only for request {}", request, e);
releaseWriteOnly(writeState.getGraph());
// Serialize as '<resource index>_<cluster id>'
return "" + r + "_" + getCluster(resourceImpl);
} catch (Throwable e) {
- e.printStackTrace();
+ LOGGER.error("Could not create random access id for resource {}", resource, e);
throw new InvalidResourceReferenceException(e);
} finally {
}
} catch (NumberFormatException e) {
throw new InvalidResourceReferenceException(e);
} catch (Throwable e) {
- e.printStackTrace();
+ LOGGER.error("Could not get resource for randomAccessId {}", randomAccessId, e);
throw new InvalidResourceReferenceException(e);
} finally {
}
}
} catch (InterruptedException e) {
- e.printStackTrace();
+ LOGGER.error("Acquiring was interrupted", e);
// FIXME: Should perhaps do something else in this case ??
}
}