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

URI is not hierarchical exception when location model resource is inside a jar in classpath

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.11
    • 1.12
    • parser
    • None
    • location model file is placed inside a fat Jar (with all the dependencies)

    Description

      Stacktrace
      The following error happens when location NER model resource is packaged inside a jar and GeoTopicParser is enabled.
      
      Caused by: java.lang.IllegalArgumentException: URI is not hierarchical
      	at java.io.File.<init>(File.java:418)
      	at org.apache.tika.parser.geo.topic.GeoParserConfig.<init>(GeoParserConfig.java:33)
      	at org.apache.tika.parser.geo.topic.GeoParser.<init>(GeoParser.java:54)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
      	at java.lang.Class.newInstance(Class.java:442)
      	at org.apache.tika.config.TikaConfig$XmlLoader.loadOne(TikaConfig.java:559)
      	at org.apache.tika.config.TikaConfig$XmlLoader.loadOverall(TikaConfig.java:492)
      	at org.apache.tika.config.TikaConfig.<init>(TikaConfig.java:166)
      	at org.apache.tika.config.TikaConfig.<init>(TikaConfig.java:149)
      	at org.apache.tika.config.TikaConfig.<init>(TikaConfig.java:142)
      	at org.apache.tika.config.TikaConfig.<init>(TikaConfig.java:138)
      	at edu.usc.cs.ir.cwork.tika.Parser.<init>(Parser.java:45)
      
      

      Refernces :
      http://stackoverflow.com/questions/18055189/why-my-uri-is-not-hierarchical

      Attachments

        Activity

          People

            Unassigned Unassigned
            thammegowda Thamme Gowda
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: