Author: chris.laprun(a)jboss.com
Date: 2011-05-04 10:03:00 -0400 (Wed, 04 May 2011)
New Revision: 6447
Modified:
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/invoker/RegistrationCheckingPortletInvoker.java
Log:
- destructionScheduledFor now catches and logs all exceptions.
Modified:
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/invoker/RegistrationCheckingPortletInvoker.java
===================================================================
---
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/invoker/RegistrationCheckingPortletInvoker.java 2011-05-04
13:59:51 UTC (rev 6446)
+++
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/invoker/RegistrationCheckingPortletInvoker.java 2011-05-04
14:03:00 UTC (rev 6447)
@@ -23,6 +23,8 @@
package org.gatein.wsrp.producer.invoker;
+import org.gatein.common.logging.Logger;
+import org.gatein.common.logging.LoggerFactory;
import org.gatein.pc.api.NoSuchPortletException;
import org.gatein.pc.api.Portlet;
import org.gatein.pc.api.PortletContext;
@@ -59,6 +61,7 @@
{
/** Registration Manager */
private RegistrationManager registrationManager;
+ private static final Logger log =
LoggerFactory.getLogger(RegistrationCheckingPortletInvoker.class);
public void setRegistrationManager(RegistrationManager registrationManager)
{
@@ -345,8 +348,12 @@
{
failures = super.destroyClones(portletContexts);
}
- catch (PortletInvokerException e)
+ catch (Exception e)
{
+ if (log.isDebugEnabled())
+ {
+ log.debug("Couldn't destroy clones", e);
+ }
return Vote.negativeVote("Couldn't destroy clones: " +
failures);
}
}
Show replies by date