java.lang.NumberFormatException: For input string: ""

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.NumberFormatException: For input string: ""
  2. 0

    Another exception...

    GitHub | 3 years ago | talios
    java.lang.NumberFormatException: For input string: ""
  3. 0

    thread issue in Static middleware

    GitHub | 4 years ago | bckfnn
    java.lang.NumberFormatException: For input string: ""
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Weird NumberFormatException from RPC

    Google Groups | 4 years ago | Dan Vegeto
    java.lang.NumberFormatException: For input string: ""
  6. 0

    Exception when Parsing Dates in Java

    Stack Overflow | 5 years ago | Larry
    java.lang.NumberFormatException: For input string: ""

    4 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.NumberFormatException

      For input string: ""

      at java.lang.NumberFormatException.forInputString()
    2. Java RT
      DateFormat.parse
      1. java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
      2. java.lang.Long.parseLong(Long.java:424)
      3. java.lang.Long.parseLong(Long.java:461)
      4. java.text.DigitList.getLong(DigitList.java:167)
      5. java.text.DecimalFormat.parse(DecimalFormat.java:1271)
      6. java.text.SimpleDateFormat.subParse(SimpleDateFormat.java:1690)
      7. java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1124)
      8. java.text.DateFormat.parse(DateFormat.java:333)
      8 frames
    3. org.archive.crawler
      ToeThread.run
      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.settings.ComplexType.getAttribute(ComplexType.java:429)
      9. org.archive.crawler.framework.Processor.process(Processor.java:95)
      10. org.archive.crawler.framework.ToeThread.processCrawlUri(ToeThread.java:306)
      11. org.archive.crawler.framework.ToeThread.run(ToeThread.java:153)
      11 frames