diff options
author | beckerdo <beckerdo@13f79535-47bb-0310-9956-ffa450edef68> | 2009-03-06 16:49:42 +0000 |
---|---|---|
committer | beckerdo <beckerdo@13f79535-47bb-0310-9956-ffa450edef68> | 2009-03-06 16:49:42 +0000 |
commit | 02aef1e531c4f274ebcb929cb5cee16c01a08cd4 (patch) | |
tree | f075af3b579791218e64fb9e4353fc57b50200dd | |
parent | b4e0125c4c64954c5af9711ca725470ba4a2a007 (diff) |
TUSCANY-2871 ClassCastException using atom-abdera binding
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@750972 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | branches/sca-java-1.x/samples/feed-aggregator/src/main/java/feed/AggregatorImpl.java | 19 | ||||
-rw-r--r-- | branches/sca-java-1.x/samples/feed-aggregator/src/main/resources/FeedAggregator.composite | 2 |
2 files changed, 16 insertions, 5 deletions
diff --git a/branches/sca-java-1.x/samples/feed-aggregator/src/main/java/feed/AggregatorImpl.java b/branches/sca-java-1.x/samples/feed-aggregator/src/main/java/feed/AggregatorImpl.java index 70e05b3bb3..7b2edb2e6a 100644 --- a/branches/sca-java-1.x/samples/feed-aggregator/src/main/java/feed/AggregatorImpl.java +++ b/branches/sca-java-1.x/samples/feed-aggregator/src/main/java/feed/AggregatorImpl.java @@ -85,22 +85,33 @@ public class AggregatorImpl implements org.apache.tuscany.sca.binding.atom.colle if (atomFeed1 != null) { try { entries.addAll(atomFeed1.getFeed().getEntries()); - } catch (Exception e) {} + } catch (Exception e) { + int x = 0; + } } if (atomFeed2 != null) { try { entries.addAll(atomFeed2.getFeed().getEntries()); - } catch (Exception e) {} + } catch (Exception e) { + int x = 0; + + } } if (rssFeed1 != null) { try { entries.addAll(atomFeed(rssFeed1.getFeed()).getEntries()); - } catch (Exception e) {} + } catch (Exception e) { + int x = 0; + + } } if (rssFeed2 != null) { try { entries.addAll(atomFeed(rssFeed2.getFeed()).getEntries()); - } catch (Exception e) {} + } catch (Exception e) { + int x = 0; + + } } // Sort entries by updated date diff --git a/branches/sca-java-1.x/samples/feed-aggregator/src/main/resources/FeedAggregator.composite b/branches/sca-java-1.x/samples/feed-aggregator/src/main/resources/FeedAggregator.composite index 8a3a53b4d5..c79df7fbd7 100644 --- a/branches/sca-java-1.x/samples/feed-aggregator/src/main/resources/FeedAggregator.composite +++ b/branches/sca-java-1.x/samples/feed-aggregator/src/main/resources/FeedAggregator.composite @@ -49,7 +49,7 @@ <implementation.java class="feed.AggregatorImpl"/> <reference name="sort" target="Sort"/>
<reference name="atomFeed1"> - <tuscany:binding.atom uri="http://www.oreillynet.com/pub/feed/35"/> + <tuscany:binding.atom uri="http://apache-tuscany.blogspot.com/feeds/posts/default"/> </reference> <reference name="atomFeed2"> <tuscany:binding.atom uri="http://feeds.feedburner.com/blogspot/Dcni?format=xml"/> |