mohankreddy / crawler4j

Automatically exported from code.google.com/p/crawler4j
0 stars 0 forks source link

Null pointer when trying to start the crawler controller several times (One after another) #89

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to launch a crawler, and after it finishes, wait and release it again.

What is the expected output? What do you see instead?

I hope to run normally, but generates a database exception ..

What version of the product are you using? On what operating system?

The last version to the svn. Windows xp.

Please provide any additional information below.

I have something like this:

public class Controller {
        public static void main(String[] args) throws Exception {
                CrawlController controller = new CrawlController("/data/crawl/root");
                controller.addSeed("http://www.ics.uci.edu/");
                controller.start(MyCrawler.class, 1);  

                while (true){
                  Threath.sleep(60000)
                  controller.start(MyCrawler.class, 10);  
                }

}

And does not work. I tried to create a new object Controller but did not work 
either.

Original issue reported on code.google.com by dei...@gmail.com on 25 Oct 2011 at 6:44

GoogleCodeExporter commented 9 years ago
I have the same issue. Can ganjisaffar@gmail.com comment on this please? Thanks.

Original comment by victor.w...@gmail.com on 10 Nov 2011 at 4:14

GoogleCodeExporter commented 9 years ago
This issue is resolved as of version 3.0. Please see 
http://code.google.com/p/crawler4j/source/browse/src/test/java/edu/uci/ics/crawl
er4j/examples/multiple/ for an example.

-Yasser

Original comment by ganjisaffar@gmail.com on 2 Jan 2012 at 7:23