java.lang.ClassCastException: java.lang.String

JIRA | Gordon Mohr | 10 years ago
  1. 0

    Igor reports getting the following exception via the web UI after making config changes in a long-running crawl: == An error occured java.lang.ClassCastException: java.lang.String java.lang.ClassCastException: java.lang.String at org.archive.crawler.frontier.WorkQueueFrontier.kickUpdate(WorkQueueFrontier .java:454) at org.archive.crawler.framework.CrawlController.kickUpdate(CrawlController.ja va:1201) at org.archive.crawler.admin.CrawlJobHandler.kickUpdate(CrawlJobHandler.java:1 239) 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) at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicati onHandler.java:334) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHand ler.java:286) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) at org.mortbay.http.HttpContext.handle(HttpContext.java:1807) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContex t.java:525) at org.mortbay.http.HttpContext.handle(HttpContext.java:1757) at org.mortbay.http.HttpServer.service(HttpServer.java:879) at org.mortbay.http.HttpConnection.service(HttpConnection.java:789) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:300) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511) == Looks like the code in WorkQueuesFrontier.kickUpdate that un-retires queues in case they've been given a new higher budget isn't dereferencing the key it gets back from the queue -- instead again polling the queue of retiredQueues, expecting to get a queue. (The conversion to queues-of-string-keys from queues-of-workqueue-objects wasn't completed right, and the problem has been lurking because we've never had config changes with a non-empty set of retired queues previously.)

    JIRA | 10 years ago | Gordon Mohr
    java.lang.ClassCastException: java.lang.String
  2. 0

    Vector and AbstractTableModel

    Oracle Community | 1 decade ago | 843805
    java.lang.ClassCastException: java.lang.String
  3. 0

    get the row id of an spinner item populated from database

    Stack Overflow | 4 years ago | user1381760
    java.lang.ClassCastException: java.lang.String
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to upload Byte array (image) on facebook wall with android application?

    Stack Overflow | 4 years ago | TKumar
    java.lang.ClassCastException: java.lang.String
  6. 0

    Android-unable to post picture to wall using facebook sdk

    Stack Overflow | 5 years ago | Zahary
    java.lang.ClassCastException: java.lang.String

    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.ClassCastException

      java.lang.String

      at org.archive.crawler.frontier.WorkQueueFrontier.kickUpdate()
    2. org.archive.crawler
      configure_jsp._jspService
      1. org.archive.crawler.frontier.WorkQueueFrontier.kickUpdate(WorkQueueFrontier.java:454)
      2. org.archive.crawler.framework.CrawlController.kickUpdate(CrawlController.java:1201)
      3. org.archive.crawler.admin.CrawlJobHandler.kickUpdate(CrawlJobHandler.java:1239)
      4. org.archive.crawler.jspc.admin.jobs.configure_jsp._jspService(UnknownSource)
      4 frames
    3. GWT dev
      HttpJspBase.service
      1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
      1 frame
    4. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      1 frame
    5. 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
    6. org.archive.crawler
      RootFilter.doFilter
      1. org.archive.crawler.admin.ui.RootFilter.doFilter(RootFilter.java:67)
      1 frame
    7. Jetty Server
      ServletHandler.handle
      1. org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334)
      2. org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:286)
      3. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
      3 frames
    8. org.mortbay.http
      HttpContext.handle
      1. org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
      1 frame
    9. Jetty Server
      WebApplicationContext.handle
      1. org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)
      1 frame
    10. org.mortbay.http
      SocketListener.handleConnection
      1. org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
      2. org.mortbay.http.HttpServer.service(HttpServer.java:879)
      3. org.mortbay.http.HttpConnection.service(HttpConnection.java:789)
      4. org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960)
      5. org.mortbay.http.HttpConnection.handle(HttpConnection.java:806)
      6. org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218)
      6 frames
    11. Jetty Util
      ThreadPool$PoolThread.run
      1. org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:300)
      2. org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)
      2 frames