java.lang.ArrayIndexOutOfBoundsException: 437

JIRA | (sourceforge) | 10 years ago
  1. 0

    I have encountered two types of error due to editing configuration of running crawls that have TimespanCriteria refinements. The first appears in the errors log, the second from the edit configuration UI. Each of my crawls had two refinements that operate on disjoint times of the day to simply change the min-delay. The full exceptions for each are below. HOW TO RECREATE --------------- Create a crawl with two TimespanCriteria refinements, one from 1030-1600 and the other from 1601-2000 that change only the min-delay. Start the crawl, then go to "Jobs -> Edit Configuration". Change anything, and click "Finished". Wait while for a while and watch the logs. In the errors log: 2006-07-19T21:56:21.845Z -5 65145 http://www.someserver.com/page2 RLLL http://www.someserver.com/page1 text/html #037 20060719215120589+301214 Z6BXQIEJEWV7F3FDZ2W6CFNZ7B7UUUYI http://www.someserver.com/ timeTrunc,err=java.lang.NumberFormatException java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:4 8) at java.lang.Long.parseLong(Long.java:424) at java.lang.Long.parseLong(Long.java:461) at java.text.DigitList.getLong(DigitList.java:167) at java.text.DecimalFormat.parse(DecimalFormat.java:1271) at java.text.SimpleDateFormat.subParse(SimpleDateFormat.java:1690) at java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1124) at java.text.DateFormat.parse(DateFormat.java:333) at org.archive.crawler.settings.refinements.TimespanCriteria.isWithinRefinemen tBounds(TimespanCriteria.java:73) at org.archive.crawler.settings.refinements.Refinement.isWithinRefinementBound s(Refinement.java:90) at org.archive.crawler.settings.SettingsHandler.getRefinementsForSettings(Sett ingsHandler.java:296) at org.archive.crawler.settings.SettingsHandler.getSettings(SettingsHandler.ja va:271) at org.archive.crawler.settings.ComplexType.getSettingsFromObject(ComplexType. java:331) at org.archive.crawler.settings.ComplexType.getSettingsFromObject(ComplexType. java:371) at org.archive.crawler.settings.ComplexType.getAttribute(ComplexType.java:449) at org.archive.crawler.settings.ComplexType.getAttribute(ComplexType.java:429) at org.archive.crawler.framework.Processor.process(Processor.java:95) at org.archive.crawler.framework.ToeThread.processCrawlUri(ToeThread.java:306) at org.archive.crawler.framework.ToeThread.run(ToeThread.java:153) Or, from the edit configuration UI: java.lang.ArrayIndexOutOfBoundsException: 437 at sun.util.calendar.BaseCalendar.getCalendarDateFromFixedDate(BaseCalendar.ja va:436) at java.util.GregorianCalendar.computeFields(GregorianCalendar.java:2080) at java.util.GregorianCalendar.computeTime(GregorianCalendar.java:2471) at java.util.Calendar.updateTime(Calendar.java:2260) at java.util.Calendar.complete(Calendar.java:1305) at java.util.Calendar.get(Calendar.java:1088) at java.text.SimpleDateFormat.subFormat(SimpleDateFormat.java:899) at java.text.SimpleDateFormat.format(SimpleDateFormat.java:806) at java.text.SimpleDateFormat.format(SimpleDateFormat.java:778) at java.text.DateFormat.format(DateFormat.java:314) at org.archive.crawler.settings.refinements.TimespanCriteria.isWithinRefinemen tBounds(TimespanCriteria.java:73) at org.archive.crawler.settings.refinements.Refinement.isWithinRefinementBound s(Refinement.java:90) at org.archive.crawler.settings.SettingsHandler.getRefinementsForSettings(Sett ingsHandler.java:296) at org.archive.crawler.settings.SettingsHandler.getSettings(SettingsHandler.ja va:271) at org.archive.crawler.settings.ComplexType.getSettingsFromObject(ComplexType. java:331) at org.archive.crawler.settings.ComplexType.getSettingsFromObject(ComplexType. java:371) at org.archive.crawler.settings.ComplexType.getAttribute(ComplexType.java:449) at org.archive.crawler.url.canonicalize.BaseRule.isEnabled(BaseRule.java:68) at org.archive.crawler.url.Canonicalizer.canonicalize(Canonicalizer.java:90) at org.archive.crawler.url.Canonicalizer.canonicalize(Canonicalizer.java:65) at org.archive.crawler.frontier.AbstractFrontier.canonicalize(AbstractFrontier .java:969) at org.archive.crawler.frontier.AbstractFrontier.canonicalize(AbstractFrontier .java:988) at org.archive.crawler.frontier.WorkQueueFrontier.schedule(WorkQueueFrontier.j ava:363) at org.archive.crawler.frontier.AbstractFrontier.loadSeeds(AbstractFrontier.ja va:550) at org.archive.crawler.framework.CrawlScope.kickUpdate(CrawlScope.java:244) at org.archive.crawler.deciderules.DecidingScope.kickUpdate(DecidingScope.java :76) at org.archive.crawler.framework.CrawlController.kickUpdate(CrawlController.ja va:1630) at org.archive.crawler.admin.CrawlJob.kickUpdate(CrawlJob.java:1948) at org.archive.crawler.admin.CrawlJobHandler.kickUpdate(CrawlJobHandler.java:1 154) at org.archive.crawler.jspc.admin.jobs.configure_jsp._jspService(Unknown Source) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358) at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicati onHandler.java:342) at org.archive.crawler.admin.ui.RootFilter.doFilter(RootFilter.java:67)

    JIRA | 10 years ago | (sourceforge)
    java.lang.ArrayIndexOutOfBoundsException: 437
  2. 0

    Stack trace on Civcraft

    GitHub | 2 years ago | ttk2
    java.lang.ArrayIndexOutOfBoundsException: 14
  3. 0

    Occasional ArrayIndexOutOfBoundsException due to SimpleDateFormat use

    GitHub | 2 years ago | mdeeks
    java.lang.ArrayIndexOutOfBoundsException: -2147483648
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Testing multi threads call for SimpleDateFormat

    Stack Overflow | 3 years ago | Abbin Varghese
    java.lang.ArrayIndexOutOfBoundsException: 965
  6. 0

    Reproducing SimpleDateFormat non-thread safety in tests

    Stack Overflow | 4 years ago | bunnyjesse112
    java.lang.ArrayIndexOutOfBoundsException: 514

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      437

      at sun.util.calendar.BaseCalendar.getCalendarDateFromFixedDate()
    2. Java RT
      DateFormat.format
      1. sun.util.calendar.BaseCalendar.getCalendarDateFromFixedDate(BaseCalendar.java:436)
      2. java.util.GregorianCalendar.computeFields(GregorianCalendar.java:2080)
      3. java.util.GregorianCalendar.computeTime(GregorianCalendar.java:2471)
      4. java.util.Calendar.updateTime(Calendar.java:2260)
      5. java.util.Calendar.complete(Calendar.java:1305)
      6. java.util.Calendar.get(Calendar.java:1088)
      7. java.text.SimpleDateFormat.subFormat(SimpleDateFormat.java:899)
      8. java.text.SimpleDateFormat.format(SimpleDateFormat.java:806)
      9. java.text.SimpleDateFormat.format(SimpleDateFormat.java:778)
      10. java.text.DateFormat.format(DateFormat.java:314)
      10 frames
    3. org.archive.crawler
      configure_jsp._jspService
      1. org.archive.crawler.settings.refinements.TimespanCriteria.isWithinRefinementBounds(TimespanCriteria.java:73)
      2. org.archive.crawler.settings.refinements.Refinement.isWithinRefinementBounds(Refinement.java:90)
      3. org.archive.crawler.settings.SettingsHandler.getRefinementsForSettings(SettingsHandler.java:296)
      4. org.archive.crawler.settings.SettingsHandler.getSettings(SettingsHandler.java:271)
      5. org.archive.crawler.settings.ComplexType.getSettingsFromObject(ComplexType.java:331)
      6. org.archive.crawler.settings.ComplexType.getSettingsFromObject(ComplexType.java:371)
      7. org.archive.crawler.settings.ComplexType.getAttribute(ComplexType.java:449)
      8. org.archive.crawler.url.canonicalize.BaseRule.isEnabled(BaseRule.java:68)
      9. org.archive.crawler.url.Canonicalizer.canonicalize(Canonicalizer.java:90)
      10. org.archive.crawler.url.Canonicalizer.canonicalize(Canonicalizer.java:65)
      11. org.archive.crawler.frontier.AbstractFrontier.canonicalize(AbstractFrontier.java:969)
      12. org.archive.crawler.frontier.AbstractFrontier.canonicalize(AbstractFrontier.java:988)
      13. org.archive.crawler.frontier.WorkQueueFrontier.schedule(WorkQueueFrontier.java:363)
      14. org.archive.crawler.frontier.AbstractFrontier.loadSeeds(AbstractFrontier.java:550)
      15. org.archive.crawler.framework.CrawlScope.kickUpdate(CrawlScope.java:244)
      16. org.archive.crawler.deciderules.DecidingScope.kickUpdate(DecidingScope.java:76)
      17. org.archive.crawler.framework.CrawlController.kickUpdate(CrawlController.java:1630)
      18. org.archive.crawler.admin.CrawlJob.kickUpdate(CrawlJob.java:1948)
      19. org.archive.crawler.admin.CrawlJobHandler.kickUpdate(CrawlJobHandler.java:1154)
      20. org.archive.crawler.jspc.admin.jobs.configure_jsp._jspService(UnknownSource)
      20 frames
    4. GWT dev
      HttpJspBase.service
      1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
      1 frame
    5. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      1 frame
    6. Jetty Server
      WebApplicationHandler$Chain.doFilter
      1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
      2. org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:342)
      2 frames
    7. org.archive.crawler
      RootFilter.doFilter
      1. org.archive.crawler.admin.ui.RootFilter.doFilter(RootFilter.java:67)
      1 frame