Revision: 4783
          http://sourceforge.net/p/jump-pilot/code/4783
Author:   edso
Date:     2016-01-13 10:49:14 +0000 (Wed, 13 Jan 2016)
Log Message:
-----------
deactivated the error handling here. it leads to an infinite stack loop
 "show error, close errordialog, new render of taskframe, show error..."
when trying to open a project containing a wms layer that can't be connected 
for some reason.

Modified Paths:
--------------
    core/trunk/src/com/vividsolutions/wms/WMService.java

Modified: core/trunk/src/com/vividsolutions/wms/WMService.java
===================================================================
--- core/trunk/src/com/vividsolutions/wms/WMService.java        2016-01-13 
10:41:23 UTC (rev 4782)
+++ core/trunk/src/com/vividsolutions/wms/WMService.java        2016-01-13 
10:49:14 UTC (rev 4783)
@@ -138,7 +138,7 @@
       parser = new ParserWMS1_3();
     }
 
-    try {
+//    try {
       String requestUrlString = this.serverUrl + req;
       URL requestUrl = new URL(requestUrlString);
 
@@ -175,24 +175,28 @@
         cap.setGetMapURL(url1);
       }
 
-    } catch (FileNotFoundException e) {
-      JOptionPane.showMessageDialog(null, I18N.getMessage(
-          "com.vividsolutions.wms.WMService.WMS-Not-Found",
-          new Object[] { e.getLocalizedMessage() }), I18N
-          .get("com.vividsolutions.wms.WMService.Error"),
-          JOptionPane.ERROR_MESSAGE);
-      throw e;
-    } catch (final WMSException e) {
-      ErrorDialog.show(null, "WMS Error", e.getMessage(), e.getSource());
-      throw e;
-    } catch (IOException e) {
-      JOptionPane.showMessageDialog(null, I18N.getMessage(
-          "com.vividsolutions.wms.WMService.WMS-IO-Error", new Object[] {
-              e.getClass().getSimpleName(), e.getLocalizedMessage() }), I18N
-          .get("com.vividsolutions.wms.WMService.Error"),
-          JOptionPane.ERROR_MESSAGE);
-      throw e;
-    }
+    // [2016.01 ede] deactivated the error handling here as it leads to an
+    // infinite stack loop when trying to open a project containing a wms layer
+    // that can't be connected for some reason show error, close errordialog,
+    // new render of taskframe, show error...
+    //    } catch (FileNotFoundException e) {
+//      JOptionPane.showMessageDialog(null, I18N.getMessage(
+//          "com.vividsolutions.wms.WMService.WMS-Not-Found",
+//          new Object[] { e.getLocalizedMessage() }), I18N
+//          .get("com.vividsolutions.wms.WMService.Error"),
+//          JOptionPane.ERROR_MESSAGE);
+//      throw e;
+//    } catch (final WMSException e) {
+//      ErrorDialog.show(null, "WMS Error", e.getMessage(), e.getSource());
+//      throw e;
+//    } catch (IOException e) {
+//      JOptionPane.showMessageDialog(null, I18N.getMessage(
+//          "com.vividsolutions.wms.WMService.WMS-IO-Error", new Object[] {
+//              e.getClass().getSimpleName(), e.getLocalizedMessage() }), I18N
+//          .get("com.vividsolutions.wms.WMService.Error"),
+//          JOptionPane.ERROR_MESSAGE);
+//      throw e;
+//    }
   }
 
   /**


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to