Author: michiel Date: 2010-02-25 23:46:27 +0100 (Thu, 25 Feb 2010) New Revision: 41176
Modified: mmbase/trunk/core/src/main/java/org/mmbase/bridge/ContextProvider.java Log: cleare exception Modified: mmbase/trunk/core/src/main/java/org/mmbase/bridge/ContextProvider.java =================================================================== --- mmbase/trunk/core/src/main/java/org/mmbase/bridge/ContextProvider.java 2010-02-25 22:45:42 UTC (rev 41175) +++ mmbase/trunk/core/src/main/java/org/mmbase/bridge/ContextProvider.java 2010-02-25 22:46:27 UTC (rev 41176) @@ -76,31 +76,36 @@ private static final List<Resolver> resolvers = new CopyOnWriteArrayList<Resolver>(); static { - for (URL url : ResourceLoader.getConfigurationRoot().getResourceList("contextproviders")) { - try { - URLConnection uc = url.openConnection(); - if (uc.getDoInput()) { - InputStream is = uc.getInputStream(); - BufferedReader reader = new BufferedReader(new InputStreamReader(is)); - String line = reader.readLine(); - while (line != null) { - line = line.trim(); - if (line.length() > 0 && ! line.startsWith("#")) { - try { - Resolver resolver = (Resolver) Class.forName(line).newInstance(); - resolvers.add(resolver); - } catch (Exception e) { - log.error("During parsing of " + url + ": " + line + ":" + e.getMessage(), e); + try { + for (URL url : ResourceLoader.getConfigurationRoot().getResourceList("contextproviders")) { + try { + URLConnection uc = url.openConnection(); + if (uc.getDoInput()) { + InputStream is = uc.getInputStream(); + BufferedReader reader = new BufferedReader(new InputStreamReader(is)); + String line = reader.readLine(); + while (line != null) { + line = line.trim(); + if (line.length() > 0 && ! line.startsWith("#")) { + try { + Resolver resolver = (Resolver) Class.forName(line).newInstance(); + resolvers.add(resolver); + } catch (Exception e) { + log.error("During parsing of " + url + ": " + line + ":" + e.getMessage(), e); + } } + line = reader.readLine(); } - line = reader.readLine(); } + } catch (Exception e) { + log.error("During parsing of " + url + ": " + e.getMessage(), e); } - } catch (Exception e) { - log.error("During parsing of " + url + ": " + e.getMessage(), e); } + + Casting.setHelper(new BridgeCaster()); + } catch (Exception e) { + log.error(e.getMessage(), e); } - Casting.setHelper(new BridgeCaster()); } /** _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs