From f7ccf2e7654356563977467b3d9a6d8d975df94d Mon Sep 17 00:00:00 2001 From: Dave Hladky Date: Thu, 14 Mar 2013 15:59:39 -0500 Subject: [PATCH] Issue #1769 Try catches to try to trap hs-pid error happening during CAVE crash of FFMP table Change-Id: I7bc3eb18a72753cc9847601aabab23cd32d109a1 Former-commit-id: c57d5574ef3ce050f7d8278a6de90e6aecbaf22e [formerly 9b495681ec99c5f953026e794ac6094afde5c936 [formerly 8b498ee96ab7309bc3cb70a4f93e05c0af60c824]] Former-commit-id: 9b495681ec99c5f953026e794ac6094afde5c936 Former-commit-id: a1c4148918fdd200653b1417fad4841bf96cf587 --- .../ffmp/ui/rsc/FFMPDataGenerator.java | 95 ++++++++++++------- 1 file changed, 59 insertions(+), 36 deletions(-) diff --git a/cave/com.raytheon.uf.viz.monitor.ffmp/src/com/raytheon/uf/viz/monitor/ffmp/ui/rsc/FFMPDataGenerator.java b/cave/com.raytheon.uf.viz.monitor.ffmp/src/com/raytheon/uf/viz/monitor/ffmp/ui/rsc/FFMPDataGenerator.java index 030fdd6eb5..694b925e88 100644 --- a/cave/com.raytheon.uf.viz.monitor.ffmp/src/com/raytheon/uf/viz/monitor/ffmp/ui/rsc/FFMPDataGenerator.java +++ b/cave/com.raytheon.uf.viz.monitor.ffmp/src/com/raytheon/uf/viz/monitor/ffmp/ui/rsc/FFMPDataGenerator.java @@ -213,27 +213,39 @@ public class FFMPDataGenerator { .getCwa())) || (domain.isPrimary() && fmdb .isPrimaryCwa())) { - - setFFMPRow(fbd.get(key), tData, - false, cwa); - - if (virtualBasin != null) { - for (Long id : ft - .getVirtualGageBasinLookupIds( - siteKey, - key, - huc, - resource.basinTableDlg - .getRowName())) { - setFFMPRow( - virtualBasin - .get(id), - tData, true, domain - .getCwa()); - } - } - } - } + try { + setFFMPRow(fbd.get(key), tData, + false, cwa); + } catch (Exception e) { + statusHandler.handle( + Priority.PROBLEM, + "Couldn't create table row" + + e); + } + if (virtualBasin != null) { + for (Long id : ft + .getVirtualGageBasinLookupIds( + siteKey, + key, + huc, + resource.basinTableDlg + .getRowName())) { + try { + setFFMPRow( + virtualBasin + .get(id), + tData, true, + domain.getCwa()); + } catch (Exception e) { + statusHandler + .handle(Priority.PROBLEM, + "Couldn't create table row" + + e); + } + } + } + } + } } else { /* @@ -262,7 +274,10 @@ public class FFMPDataGenerator { setFFMPRow(fbd.get(key), tData, isVGB, null); } catch (Exception e) { - e.printStackTrace(); + statusHandler.handle( + Priority.PROBLEM, + "Couldn't create table row" + + e); } } } @@ -290,20 +305,28 @@ public class FFMPDataGenerator { // virtual basin if (virtualBasin != null) { for (Long id : ft - .getVirtualGageBasinLookupIds( - siteKey, - key, - huc, - resource.basinTableDlg - .getRowName())) { - setFFMPRow( - virtualBasin - .get(id), - tData, true, null); - } - } - } - } + .getVirtualGageBasinLookupIds( + siteKey, + key, + huc, + resource.basinTableDlg + .getRowName())) { + try { + setFFMPRow( + virtualBasin + .get(id), + tData, true, + null); + } catch (Exception e) { + statusHandler + .handle(Priority.PROBLEM, + "Couldn't create table row" + + e); + } + } + } + } + } } } }