Activity Service - skip invalid posts

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9674 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2008-07-08 09:48:44 +00:00
parent 4399c07b8b
commit 33f47abeef

View File

@@ -164,7 +164,10 @@ public class PostLookup
catch (JSONException e) catch (JSONException e)
{ {
// log error, but consume exception (skip this post) // log error, but consume exception (skip this post)
logger.error(e); logger.error("Skipping activity post " + activityPost.getId() + ": " + e);
postDaoService.updatePostStatus(activityPost.getId(), ActivityPostDAO.STATUS.ERROR);
postDaoService.commitTransaction();
} }
catch (SQLException e) catch (SQLException e)
{ {