Skip to main content

NPE with rome 1.0.0

  • From: <lewis.mcgibbney@...>
  • To: users@...
  • Subject: NPE with rome 1.0.0
  • Date: Fri, 9 Nov 2012 14:18:44 +0000 (GMT)

Hi All,

Over at Apache Nutch, we use rome 1.0.0 for parsing feeds. The Parser
[0] throws the NPE as below when parsing the following RSS file [1]

{code}
lewis@lewis-desktop:~/ASF/trunk/runtime/local$ ./bin/nutch plugin feed
org.apache.nutch.parse.feed.FeedParser latest.xml
Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
va:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
rImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.apache.nutch.plugin.PluginRepository.main(PluginRepository.java:421
)
Caused by: java.lang.ExceptionInInitializerError
        at
com.sun.syndication.io.SyndFeedInput.build(SyndFeedInput.java:136)
        at
org.apache.nutch.parse.feed.FeedParser.getParse(FeedParser.java:118)
        at
org.apache.nutch.parse.feed.FeedParser.main(FeedParser.java:211)
        ... 5 more
Caused by: java.lang.NullPointerException
        at
java.util.Properties$LineReader.readLine(Properties.java:418)
        at java.util.Properties.load0(Properties.java:337)
        at java.util.Properties.load(Properties.java:325)
        at
com.sun.syndication.io.impl.PropertiesLoader.<init>(PropertiesLoader.ja
va:74)
        at
com.sun.syndication.io.impl.PropertiesLoader.getPropertiesLoader(Proper
tiesLoader.java:46)
        at
com.sun.syndication.io.impl.PluginManager.<init>(PluginManager.java:54)
        at
com.sun.syndication.io.impl.PluginManager.<init>(PluginManager.java:46)
        at
com.sun.syndication.feed.synd.impl.Converters.<init>(Converters.java:40
)
        at
com.sun.syndication.feed.synd.SyndFeedImpl.<clinit>(SyndFeedImpl.java:5
9)
        ... 8 more

{code}

I'm new to rome and haven't debugged the code yet but thought that
whilst I do that I would ask onlist. Additionally, I've checked the
Jira and don't see anything similar.

Any suggestions are very much appreciated.

Kind regards

Lewis

[0]
http://svn.apache.org/repos/asf/nutch/trunk/src/plugin/feed/src/java/or
g/apache/nutch/parse/feed/FeedParser.java
[1] http://www.scotland.gov.uk/rss/publications/latest.xml


NPE with rome 1.0.0

lewis.mcgibbney 11/09/2012

Re: NPE with rome 1.0.0

Lewis John Mcgibbney 11/09/2012

Re: NPE with rome 1.0.0

Nick Lothian 11/16/2012

Re: NPE with rome 1.0.0

Lewis John Mcgibbney 11/16/2012

Re: NPE with rome 1.0.0

Nick Lothian 11/18/2012

Re: NPE with rome 1.0.0

Lewis John Mcgibbney 11/20/2012
 
 
Close
loading
Please Confirm
Close