From: <jt...@hy...> - 2008-06-24 22:45:33
|
Author: jtravis Date: 2008-06-24 15:45:30 -0700 (Tue, 24 Jun 2008) New Revision: 9873 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=9873 Modified: trunk/src/org/hyperic/hq/livedata/server/session/LiveDataManagerEJBImpl.java Log: Fix new exception being thrown by livedata Modified: trunk/src/org/hyperic/hq/livedata/server/session/LiveDataManagerEJBImpl.java =================================================================== --- trunk/src/org/hyperic/hq/livedata/server/session/LiveDataManagerEJBImpl.java 2008-06-24 20:35:29 UTC (rev 9872) +++ trunk/src/org/hyperic/hq/livedata/server/session/LiveDataManagerEJBImpl.java 2008-06-24 22:45:30 UTC (rev 9873) @@ -34,6 +34,7 @@ import org.hyperic.hq.product.server.session.ProductManagerEJBImpl; import org.hyperic.hq.livedata.agent.client.LiveDataCommandsClient; import org.hyperic.hq.livedata.agent.client.LiveDataCommandsClientFactory; +import org.hyperic.hq.agent.AgentRemoteException; import org.hyperic.hq.appdef.shared.AppdefEntityID; import org.hyperic.hq.appdef.shared.AgentNotFoundException; import org.hyperic.hq.appdef.shared.AppdefEntityNotFoundException; @@ -236,7 +237,11 @@ ConfigResponse config = getConfig(subject, cmd); String type = getType(subject, cmd); - res = client.getData(id, type, cmd.getCommand(), config); + try { + res = client.getData(id, type, cmd.getCommand(), config); + } catch(AgentRemoteException e) { + throw new LiveDataException("Exception executing liveData", e); + } if (cacheTimeout != NO_CACHE) { putElement(cmd, res); |