Uploaded image for project: 'Terrier Core'
  1. Terrier Core
  2. TR-482

Facing this issue while indexing SimpleXMLCollection

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: 4.2
    • Fix Version/s: None
    • Component/s: .indexing
    • Labels:

      Description

      Hello, I am facing this issue while indexing XML collections

      Ps: I am new to terrier

      Set TERRIER_HOME to be D:\terrier42
      13:49:23.133 [main] ERROR o.terrier.indexing.CollectionFactory - ERROR: First Collection class named org.terrier.indexing.SimpleXMLCollection - requested constructor not found
      java.lang.NoSuchMethodException: org.terrier.indexing.SimpleXMLCollection.<init>(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
              at java.lang.Class.getConstructor0(Class.java:3082) ~[na:1.8.0_144]
              at java.lang.Class.getConstructor(Class.java:1825) ~[na:1.8.0_144]
              at org.terrier.indexing.CollectionFactory.loadCollections(CollectionFactory.java:97) [terrier-core-4.2-jar-with-dependencies.jar:na]
              at org.terrier.indexing.CollectionFactory.loadCollection(CollectionFactory.java:76) [terrier-core-4.2-jar-with-dependencies.jar:na]
              at org.terrier.applications.TRECIndexing.loadCollection(TRECIndexing.java:96) [terrier-core-4.2-jar-with-dependencies.jar:na]
              at org.terrier.applications.TRECIndexing.<init>(TRECIndexing.java:66) [terrier-core-4.2-jar-with-dependencies.jar:na]
              at org.terrier.applications.TRECIndexing.<init>(TRECIndexing.java:54) [terrier-core-4.2-jar-with-dependencies.jar:na]
              at org.terrier.applications.TrecTerrier.run(TrecTerrier.java:386) [terrier-core-4.2-jar-with-dependencies.jar:na]
              at org.terrier.applications.TrecTerrier.applyOptions(TrecTerrier.java:584) [terrier-core-4.2-jar-with-dependencies.jar:na]
              at org.terrier.applications.TrecTerrier.main(TrecTerrier.java:229) [terrier-core-4.2-jar-with-dependencies.jar:na]
      13:49:23.133 [main] ERROR o.terrier.applications.BatchIndexing - Collection class named SimpleXMLCollection not found, aborting
      A problem occurred: java.lang.NullPointerException
      java.lang.NullPointerException
              at org.terrier.structures.indexing.Indexer.index(Indexer.java:341)
              at org.terrier.applications.TRECIndexing.index(TRECIndexing.java:154)
              at org.terrier.applications.TrecTerrier.run(TrecTerrier.java:389)
              at org.terrier.applications.TrecTerrier.applyOptions(TrecTerrier.java:584)
              at org.terrier.applications.TrecTerrier.main(TrecTerrier.java:229)

        Attachments

          Issue Links

            Activity

            Hide
            craigm Craig Macdonald added a comment -

            This is already fixed. You can checkout and build a copy from Github:
            https://github.com/terrier-org/terrier-core
            (mvn -DskipTests package)

            Craig

            Show
            craigm Craig Macdonald added a comment - This is already fixed. You can checkout and build a copy from Github: https://github.com/terrier-org/terrier-core (mvn -DskipTests package) Craig

              People

              • Assignee:
                craigm Craig Macdonald
                Reporter:
                HaseebRKhan Haseeb ur Rehman Khan
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: