Droids seems like a very interesting project upon which I'd like to
base some of my custom web crawlers - but I'm running into this error
when I try to run the examples. The file droids-core/src/test/java/
org/apache/droids/examples/SimpleRuntime.java, for example, throws
this exception. I've spent awhile trying to figure out what the
problem is, to no avail.
I've verified with TCPDump that running the example never initiates
any HTTP activity. I'm running droids-trunk, svn revision 754973, on
Mac OSX 10.5.6.
Can anyone point me in the right direction?
2009-03-16 14:24:04,107 INFO [main] - <Number of concurrent workers: 5>
2009-03-16 14:24:04,113 INFO [main] - <Finshed invocation, waiting for
workers to finish.>
2009-03-16 14:24:04,113 INFO [pool-1-thread-2] - <SHUTTING DOWN>
2009-03-16 14:24:04,114 INFO [pool-1-thread-2] - <All threads have
finished. (elapsed: 8)>
2009-03-16 14:24:04,114 INFO [pool-1-thread-2] - <FINISHED!!!>
2009-03-16 14:24:04,760 WARN [pool-1-thread-1] - <Connection pool shut
down.>
java.lang.IllegalStateException: Connection pool shut down.
at
org
.apache
.http
.impl.conn.tsccm.ConnPoolByRoute.getEntryBlocking(ConnPoolByRoute.java:
284)
at org.apache.http.impl.conn.tsccm.ConnPoolByRoute
$1.getPoolEntry(ConnPoolByRoute.java:238)
at org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager
$1.getConnection(ThreadSafeClientConnManager.java:175)
at
org
.apache
.http
.impl
.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:324)
at
org
.apache
.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:
555)
at
org
.apache
.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:
487)
at
org
.apache
.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:
465)
at
org
.apache
.droids
.protocol
.http.HttpClientContentLoader.exists(HttpClientContentLoader.java:58)
at org.apache.droids.norobots.NoRobotClient.parse(NoRobotClient.java:
98)
at
org
.apache.droids.protocol.http.HttpProtocol.isAllowed(HttpProtocol.java:
102)
at
org
.apache
.droids.robot.crawler.CrawlingWorker.execute(CrawlingWorker.java:53)
at
org
.apache
.droids.robot.crawler.CrawlingWorker.execute(CrawlingWorker.java:36)
at org.apache.droids.impl.MultiThreadedTaskMaster
$WorkerRunner.run(MultiThreadedTaskMaster.java:280)
at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:637)
2009-03-16 14:24:04,764 INFO [pool-1-thread-1] - <SHUTTING DOWN>
2009-03-16 14:24:04,764 INFO [pool-1-thread-1] - <All threads have
finished. (elapsed: 658)>
2009-03-16 14:24:04,764 INFO [pool-1-thread-1] - <FINISHED!!!>