VIVO-230 Make the log messages more explicit, so we have a chance of diagnosing this.

This commit is contained in:
j2blake 2014-01-15 16:43:40 -05:00
parent 73f7604920
commit 95538e4c8a
2 changed files with 2 additions and 2 deletions

View file

@ -51,7 +51,7 @@ public abstract class JsonObjectProducer extends JsonProducer {
try { try {
jsonObject = process(); jsonObject = process();
} catch (Exception e) { } catch (Exception e) {
log.error("Failed to create JSON response" + e); log.error("Failed to create JSON response", e);
errorMessage = e.toString(); errorMessage = e.toString();
resp.setStatus(500 /* HttpURLConnection.HTTP_SERVER_ERROR */); resp.setStatus(500 /* HttpURLConnection.HTTP_SERVER_ERROR */);
} }

View file

@ -80,7 +80,7 @@ public abstract class JsonProducer {
VClass vclass = vreq.getWebappDaoFactory().getVClassDao() VClass vclass = vreq.getWebappDaoFactory().getVClassDao()
.getVClassByURI(uri); .getVClassByURI(uri);
if (vclass == null) { if (vclass == null) {
log.error("Couldn't retrieve vclass "); log.error("Couldn't retrieve vclass '" + uri + "'");
throw new IllegalStateException("Class " + uri + " not found"); throw new IllegalStateException("Class " + uri + " not found");
} }
return vclass; return vclass;