Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-2944

Parser exception in indexer of the question pool

    XMLWordPrintable

    Details

      Description

      Solution:

      • Don't index empty file
      • Show the file path if there is an exception
      2017-07-20 20:19:03,430 [schedulerFactoryBean_Worker-5] ERROR QTI21QPoolServiceProvider - OLAT::ERROR ^%^ N96-E39 ^%^ org.olat.ims.qti21.pool ^%^ n/a ^%^ n/a ^%^ n/a
      >>>stack of 1.cause::org.xml.sax.SAXParseException: Premature end of file.
      -> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
         at org.olat.ims.qti21.pool.QTI21QPoolServiceProvider.extractTextContent(QTI21QPoolServiceProvider.java:224)
         at org.olat.modules.qpool.manager.QuestionItemDocumentFactory.createDocument(QuestionItemDocumentFactory.java:108)
         at org.olat.search.service.indexer.QuestionItemIndexer.fullIndex(QuestionItemIndexer.java:86)
         at org.olat.search.service.indexer.JmsIndexer.fullIndex(JmsIndexer.java:250)
         at org.olat.search.service.indexer.Index.startFullIndex(Index.java:85)
         at org.olat.search.service.indexer.SearchIndexingJob.executeWithDB(SearchIndexingJob.java:55)
         at org.olat.core.commons.services.scheduler.JobWithDB.executeInternal(JobWithDB.java:59)
         at org.springframewo[...]
      

        Attachments

          Activity

            People

            Assignee:
            srosse Stéphane Rossé
            Reporter:
            srosse Stéphane Rossé
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 minutes
                2m