myGrid
  1. myGrid
  2. TAV-728

Add Unknown Host Exception in PluginManager

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.7.1
    • Component/s: None
    • Labels:
      None

      Description

      A user had a typo in a hostname from where he hoped to retrieve a plugin. The
      Taverna error message was missleading, just indicating that there was no
      plugin at that site rather than stating that the site did not exist:

      In
      ./taverna-update-manager/src/main/java/net/sf/taverna/update/plugin/PluginManager.java
      at line 386 introduce an extra catch for the
      UnknownHostException... something alike

      try {
      statusCode = client.executeMethod(getPlugins);
      } catch (java.net.UnknownHostException e) {
      logger.warn("Could not fetch plugins from host non-existing nost.",e);
      return plugins;
      } catch (IOException e) {
      logger.warn("Could not fetch plugins " + pluginsXML, e);
      return plugins;
      }

        Activity

          People

          • Assignee:
            Ian Dunlop
            Reporter:
            Ian Dunlop
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: