Uploaded image for project: 'OODT (Retired)'
  1. OODT (Retired)
  2. OODT-430

CrawlerBeansPropHandler throws IndexOutOfBoundsException when parsing boolean command line options like noRecur

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.4
    • 0.4
    • crawler

    Description

      Executing the crawler with --noRecur command line option throws the following exception:

      Executed command:
      java ... --operation --launchAutoCrawler... --productPath /var/kat/data.. --noRecur

      Output:
      Setting property 'StdProductCrawler.filemgrUrl'
      Setting property 'MetExtractorProductCrawler.filemgrUrl'
      Setting property 'AutoDetectProductCrawler.filemgrUrl'
      Setting property 'StdProductCrawler.clientTransferer'
      Setting property 'MetExtractorProductCrawler.clientTransferer'
      Setting property 'AutoDetectProductCrawler.clientTransferer'
      Setting property 'AutoDetectProductCrawler.mimeExtractorRepo'
      Setting property 'MoveMetadataFileToFailureDir.toDir'
      Setting property 'MovePushpullMetFileToFailureDir.toDir'
      Setting property 'MoveDataFileToFailureDir.toDir'
      Exception in thread "main" java.lang.RuntimeException: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
      at org.apache.oodt.cas.cli.CmdLineUtility.run(CmdLineUtility.java:191)
      at org.apache.oodt.cas.crawl.CrawlerLauncher.main(CrawlerLauncher.java:36)
      Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
      at java.util.ArrayList.rangeCheck(ArrayList.java:571)
      at java.util.ArrayList.get(ArrayList.java:349)
      at org.apache.oodt.cas.crawl.cli.option.handler.CrawlerBeansPropHandler.handleOption(CrawlerBeansPropHandler.java:56)
      at org.apache.oodt.cas.cli.util.CmdLineUtils.handle(CmdLineUtils.java:1034)
      at org.apache.oodt.cas.cli.CmdLineUtility.handle(CmdLineUtility.java:383)
      at org.apache.oodt.cas.cli.CmdLineUtility.execute(CmdLineUtility.java:328)
      at org.apache.oodt.cas.cli.CmdLineUtility.run(CmdLineUtility.java:187)
      ... 1 more

      Attachments

        Activity

          People

            lmzxq.tom Thomas Bennett
            lmzxq.tom Thomas Bennett
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: