mohankreddy / crawler4j

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

Exception in thread "main" : com.sleepycat.je.EnvironmentLockedException #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I was just trying to setup the crawler4j with the code given in google page 
(simple). But when i run it ( using Eclipse IDE )it throws the exception given 
below. Can you help me pointing out whats going wrong.

Deleting content of: E:\crawldata\frontier
Exception in thread "main" com.sleepycat.je.EnvironmentLockedException: (JE 
4.0.71) E:\crawldata\frontier The environment cannot be locked for single 
writer access. ENV_LOCKED: The je.lck file could not be locked. Environment is 
invalid and must be closed.
    at com.sleepycat.je.log.FileManager.<init>(FileManager.java:346)
    at com.sleepycat.je.dbi.EnvironmentImpl.<init>(EnvironmentImpl.java:435)
    at com.sleepycat.je.dbi.EnvironmentImpl.<init>(EnvironmentImpl.java:337)
    at com.sleepycat.je.dbi.DbEnvPool.getEnvironment(DbEnvPool.java:182)
    at com.sleepycat.je.Environment.makeEnvironmentImpl(Environment.java:230)
    at com.sleepycat.je.Environment.<init>(Environment.java:212)
    at com.sleepycat.je.Environment.<init>(Environment.java:166)
    at edu.uci.ics.crawler4j.crawler.CrawlController.<init>(CrawlController.java:56)
    at project.sentiment.Controller.main(Controller.java:22)

****************************
What steps will reproduce the problem?
1.
2.
3.

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

What version of the product are you using? On what operating system?
- crawler4j-2.2 on Win XP

Please provide any additional information below.

Original issue reported on code.google.com by sashi...@gmail.com on 5 Oct 2010 at 8:43

GoogleCodeExporter commented 9 years ago
Hey,

Please share your Controller and Crawler as well as the main to be able to help 
you out :).

Thanks

Original comment by hafez.khaled on 5 Oct 2010 at 12:58

GoogleCodeExporter commented 9 years ago
This typically happens when you have another instance of crawler running in the 
Eclipse IDE. Try stopping all running programs. If it doesn't help then before 
rerunning the program, delete the content of your "E:\crawldata\frontier" 
folder.

Original comment by ganjisaffar@gmail.com on 5 Oct 2010 at 3:48

GoogleCodeExporter commented 9 years ago
thanks guys its working ... I just had to close the IDE and restart :)

Original comment by sashi...@gmail.com on 6 Oct 2010 at 6:42