Yahoo weather module doesn't work

Description

The example for the Yahoo weather module does not work. To reproduce:

URL url = new URL("http://xml.weather.yahoo.com/forecastrss/ITXX0090.xml");
SyndFeed feed = null;
try {
feed = new SyndFeedInput().build(new XmlReader(url));
} catch (Exception e) { }

YWeatherFeedModule yfeed = (YWeatherFeedModule) feed.getModule( YWeatherFeedModule.URI );
// yFeed is NULL here

Environment

None

Attachments

2

Activity

Show:

JohnJ September 26, 2012 at 9:11 AM

The problem is that there are no entries in rome.properties:

rss_2.0.feed.ModuleParser.classes=com.sun.syndication.feed.module.yahooweather.io.WeatherModuleParser
rss_2.0.item.ModuleParser.classes=com.sun.syndication.feed.module.yahooweather.io.WeatherModuleParser
rss_2.0.feed.ModuleGenerator.classes=com.sun.syndication.feed.module.yahooweather.io.WeatherModuleGenerator
rss_2.0.item.ModuleGenerator.classes=com.sun.syndication.feed.module.yahooweather.io.WeatherModuleGenerator

See attached rome.properties and the fixed rome-modules-1.1.jar

Details

Assignee

Reporter

Priority

Created September 20, 2012 at 3:21 PM
Updated September 26, 2012 at 9:11 AM