[Yanel-dev] problem re-starting Yanel containing a realm with search lock

Michael Wechner michael.wechner at wyona.com
Thu May 22 00:46:30 CEST 2008


Josias Thöny wrote:

> Michael Wechner wrote:
>
>> Hi
>>
>> I have recently noticed the following problem
>>
>> 21420 2008-05-19 11:28:24,992 [http-9290-Processor25] ERROR 
>> org.wyona.yanel.core.map.RealmManager.readRealms():259  - Error 
>> setting up realm [yanel-website]: 
>> /home/ulysses/src/realms/yanel-website/realm.xml: 
>> java.lang.Exception: Could not configure realm [yanel-website] with 
>> config file: /home/ulysses/src/realms/yanel-website/realm.xml: 
>> org.wyona.yarep.core.RepositoryException: Could not create 
>> repository: yanel-website 
>> /home/ulysses/src/realms/yanel-website/config/res-config-repository.xml 
>> Could not read repository configuration: Lock obtain timed out: 
>> SimpleFSLock@/home/ulysses/src/realms/yanel-website/res-configs-repo/search-index/write.lock 
>>
>>        at org.wyona.yanel.core.map.Realm.<init>(Realm.java:104)
>>        at 
>> org.wyona.yanel.core.map.RealmManager.readRealms(RealmManager.java:232)
>>        at 
>> org.wyona.yanel.core.map.RealmManager.<init>(RealmManager.java:118)
>>        at 
>> org.wyona.yanel.core.map.RealmManager.<init>(RealmManager.java:76)
>>        at org.wyona.yanel.core.Yanel.init(Yanel.java:80)
>>        at 
>> org.wyona.yanel.servlet.YanelServlet.init(YanelServlet.java:154)
>>
>>
>> I haven't noticed this before. Is it possible that this is some 
>> regression of the recent repo changes? That some IndexWriter isn't 
>> closed properly?
>

ok, it's fixed now. Please update your local Yanel source and do a 
clean/build

Please let me know in case there might be an issue with this corrected 
version.

Cheers

Michi



>
> There was a bug in yanel that it didn't close the res-config 
> repository upon shutdown.
> I fixed this on 2008-05-13 16:36:47 (r36537).
> Then I noticed that other repositories (ac-identities, ac-policies, 
> custom repos) are not closed upon shutdown either. I'm not sure how to 
> fix this. Maybe with a finalize() method of the 
> IdentityManager/PolicyManager?
>
> BTW, why is indexing enabled for the res-config repository of the 
> yanel-website realm?
>
> josias
>
>>
>> Also maybe 
>> http://www.manning-sandbox.com/message.jspa?messageID=39279 helps
>>
>> Thanks
>>
>> Michi
>>
>
> _______________________________________________
> Yanel-development mailing list
> Yanel-development at wyona.com
> http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development



-- 
Michael Wechner
Wyona      -   Open Source Content Management - Yanel, Yulup
http://www.wyona.com
michael.wechner at wyona.com, michi at apache.org
+41 44 272 91 61



More information about the Yanel-development mailing list