Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-1516

Downgrade Rome dependency to 0.9 to avoid nasty NPE

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: 1.12
    • Component/s: parser
    • Labels:
      None

      Description

      As documented in this thread Nutch's parse-tika uses Rome 1.0, this is inherited directly from the Tika pom.xml for the same depenency.
      A downgrade is required.

      java.lang.Exception: java.lang.ExceptionInInitializerError
              at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:354)
      Caused by: java.lang.ExceptionInInitializerError
              at com.sun.syndication.io.SyndFeedInput.build(SyndFeedInput.java:136)
              at org.apache.tika.parser.feed.FeedParser.parse(FeedParser.java:70)
              at org.apache.nutch.parse.tika.TikaParser.getParse(TikaParser.java:105)
              at org.apache.nutch.parse.ParseUtil.parse(ParseUtil.java:95)
              at org.apache.nutch.parse.ParseSegment.map(ParseSegment.java:101)
              at org.apache.nutch.parse.ParseSegment.map(ParseSegment.java:44)
              at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:50)
              at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:430)
              at org.apache.hadoop.mapred.MapTask.run(MapTask.java:366)
              at org.apache.hadoop.mapred.LocalJobRunner$Job$MapTaskRunnable.run(LocalJobRunner.java:223)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
              at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
              at java.util.concurrent.FutureTask.run(FutureTask.java:138)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
              at java.lang.Thread.run(Thread.java:662)
      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.java:74)
              at com.sun.syndication.io.impl.PropertiesLoader.getPropertiesLoader(PropertiesLoader.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:59)
              ... 16 more
      

        Attachments

        1. TIKA-1516.patch
          0.4 kB
          Lewis John McGibbney

          Issue Links

            Activity

              People

              • Assignee:
                lewismc Lewis John McGibbney
                Reporter:
                lewismc Lewis John McGibbney
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: