java.lang.ClassCastException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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.)
    via by Gordon Mohr,
    • java.lang.ClassCastException: java.lang.String at org.archive.crawler.frontier.WorkQueueFrontier.kickUpdate(WorkQueueFrontier.java:454) at org.archive.crawler.framework.CrawlController.kickUpdate(CrawlController.java:1201) at org.archive.crawler.admin.CrawlJobHandler.kickUpdate(CrawlJobHandler.java:1239) at org.archive.crawler.jspc.admin.jobs.configure_jsp._jspService(UnknownSource) 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(WebApplicationHandler.java:342) at org.archive.crawler.admin.ui.RootFilter.doFilter(RootFilter.java:67) at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.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(WebApplicationContext.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)
    No Bugmate found.