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

Error instantiating topic file QuerySource called TRECQuery

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.5
    • Fix Version/s: 3.6
    • Component/s: .querying
    • Labels:
      None

      Description

      I'm trying to retrive some queries but I had this exception:
      ERROR - Error instantiating topic file QuerySource called TRECQuery
      java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      at org.terrier.applications.TRECQuerying.getQueryParser(TRECQuerying.java:797)
      at org.terrier.applications.TRECQuerying.<init>(TRECQuerying.java:344)
      at org.terrier.applications.TrecTerrier.run(TrecTerrier.java:393)
      at org.terrier.applications.TrecTerrier.applyOptions(TrecTerrier.java:564)
      at org.terrier.applications.TrecTerrier.main(TrecTerrier.java:235)
      Caused by: java.lang.NullPointerException
      at org.terrier.structures.TRECQuery.extractQuery(TRECQuery.java:163)
      at org.terrier.structures.TRECQuery.extractQuery(TRECQuery.java:87)
      at org.terrier.structures.TRECQuery.<init>(TRECQuery.java:272)
      ... 9 more
      A problem occurred: java.lang.NullPointerException
      java.lang.NullPointerException
      at org.terrier.applications.TRECQuerying.processQueries(TRECQuerying.java:829)
      at org.terrier.applications.TrecTerrier.run(TrecTerrier.java:394)
      at org.terrier.applications.TrecTerrier.applyOptions(TrecTerrier.java:564)
      at org.terrier.applications.TrecTerrier.main(TrecTerrier.java:235)


      The Topic format is:

        TrecQueryTags.doctag=topic
        TrecQueryTags.idtag=num
        TrecQueryTags.process=title,desc
        TrecQueryTags.skip=narr

      and here is topic sample:
         <topic>
         <num>1122</num>
         <title>MRSA and wound infection</title>
         <desc>What is MRSA infection and is it dangerous?</desc>
         <narr>Documents should contain information about sternal wound infection by MRSA. They should describe the causes and the complications.
      </narr>
          
         </topic>

        Attachments

          Activity

            People

            • Assignee:
              richardm Richard McCreadie
              Reporter:
              shadisaleh shadi saleh
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: