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

SimpleXMLCollection - requested constructor not found

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 4.2
    • Fix Version/s: 5.0, 4.3
    • Component/s: None
    • Labels:
      None

      Description

      Hi, Craig

      I am having a problem. Actually two problems.

      One is that I cannot sign up the forum. I guess I am supposed to get an email from the forum system, but I didn't get any. When I tried to login, it says that my username/password is inactive.

      The other problem is that I cannot not run indexer using SimpleXMLCollection. Everything starts with 'Simple' gives me an error. The others like 'WARC09Collection' works fine.

      I checked my classpath, and tried to add it by editing bin/terrier-env.sh, but no success.

      Following is the error message:

      $> bin/trec_terrier.sh -i
      Setting TERRIER_HOME to /home/jiho/projects/TREC/terrier-core-4.2
      20:35:10.705 [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_121]
      at java.lang.Class.getConstructor(Class.java:1825) ~[na:1.8.0_121]
      at org.terrier.indexing.CollectionFactory.loadCollections(CollectionFactory.java:97) [classes/:na]
      at org.terrier.indexing.CollectionFactory.loadCollection(CollectionFactory.java:76) [classes/:na]
      at org.terrier.applications.TRECIndexing.loadCollection(TRECIndexing.java:96) [classes/:na]
      at org.terrier.applications.TRECIndexing.<init>(TRECIndexing.java:66) [classes/:na]
      at org.terrier.applications.TRECIndexing.<init>(TRECIndexing.java:54) [classes/:na]
      at org.terrier.applications.TrecTerrier.run(TrecTerrier.java:386) [classes/:na]
      at org.terrier.applications.TrecTerrier.applyOptions(TrecTerrier.java:584) [classes/:na]
      at org.terrier.applications.TrecTerrier.main(TrecTerrier.java:229) [classes/:na]
      20:35:10.708 [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 -

            Hi Jiho,

            Thanks for your bug report. Firstly, we have checked the forum and it does appear to be sending emails - perhaps it went to your spam folder?. We have activated your forum account, so that should now work fine.

            With respect to the problem with SimpleXMLCollection - this is an excellent spot. I have fixed this and committed to the 4.2 branch on the Github repo. If you simply checkout and compile from the Github repo, this should now be fixed.

            To which institution should I credit the bug report?

            Kind regards

            Craig

            Show
            craigm Craig Macdonald added a comment - Hi Jiho, Thanks for your bug report. Firstly, we have checked the forum and it does appear to be sending emails - perhaps it went to your spam folder?. We have activated your forum account, so that should now work fine. With respect to the problem with SimpleXMLCollection - this is an excellent spot. I have fixed this and committed to the 4.2 branch on the Github repo. If you simply checkout and compile from the Github repo, this should now be fixed. To which institution should I credit the bug report? Kind regards Craig
            Hide
            romanegloo Jiho Noh added a comment - - edited

            Thank you very much for all of your works.

            I've re-compiled with the command you gave before 'mvn -DskipTests package', and indexer works just fine. Thanks.
            I am a grad student at University of Kentucky. =)

            Show
            romanegloo Jiho Noh added a comment - - edited Thank you very much for all of your works. I've re-compiled with the command you gave before 'mvn -DskipTests package', and indexer works just fine. Thanks. I am a grad student at University of Kentucky. =)

              People

              • Assignee:
                craigm Craig Macdonald
                Reporter:
                romanegloo Jiho Noh
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: