You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cayenne.apache.org by Michael Gentry <mg...@masslight.net> on 2009/09/28 21:28:02 UTC
CM Bug?
Can anyone else confirm this? It has happened to me twice today so far.
I have a local data source defined (in CM preferences). If I change
models, the local data source goes away. Permanently. It isn't even
there if I open up the original model I had been using where I know I
had the data source. Also, the ClassPath setting in CM preferences
gets nuked, too. Maybe more.
Re: CM Bug?
Posted by Andrus Adamchik <an...@objectstyle.org>.
Some preferences are indeed per project, with the key tied to the
absolute filesystem path.
Andrus
On Sep 29, 2009, at 4:48 PM, Michael Gentry wrote:
> H2 might be worth trying, but it seems to me that CM resets the
> preferences when you open or create a new model. I'd have to dig in
> the code a bit, but it sure felt that way the past few days ...
>
> On Tue, Sep 29, 2009 at 3:29 AM, Andrus Adamchik <andrus@objectstyle.org
> > wrote:
>>
>> On Sep 29, 2009, at 10:23 AM, Adrian A. wrote:
>>
>>> Wouldn't simply replacing HSQLDB with H2 (http://
>>> www.h2database.com/)
>>> solve the problem with far less effort?
>>
>> Possibly. H2 option had been discussed, but I guess nobody ever
>> tried it.
>> Thanks for the hint.
>>
>> Andrus
>>
>>
>
Re: CM Bug?
Posted by Michael Gentry <mg...@masslight.net>.
H2 might be worth trying, but it seems to me that CM resets the
preferences when you open or create a new model. I'd have to dig in
the code a bit, but it sure felt that way the past few days ...
On Tue, Sep 29, 2009 at 3:29 AM, Andrus Adamchik <an...@objectstyle.org> wrote:
>
> On Sep 29, 2009, at 10:23 AM, Adrian A. wrote:
>
>> Wouldn't simply replacing HSQLDB with H2 (http://www.h2database.com/)
>> solve the problem with far less effort?
>
> Possibly. H2 option had been discussed, but I guess nobody ever tried it.
> Thanks for the hint.
>
> Andrus
>
>
Re: CM Bug?
Posted by Andrus Adamchik <an...@objectstyle.org>.
On Sep 29, 2009, at 10:23 AM, Adrian A. wrote:
> Wouldn't simply replacing HSQLDB with H2 (http://
> www.h2database.com/) solve the problem with far less effort?
Possibly. H2 option had been discussed, but I guess nobody ever tried
it. Thanks for the hint.
Andrus
Re: CM Bug?
Posted by "Adrian A." <a....@gmail.com>.
> This could be due to the long standing preferences stability bug. Check
> ~/.cayenne/prefs/1.2 directory. If you see a bunch of db1.XXX, db2.XXX
> files, it means the prefs db is in a bad state. In this case my
> suggestion is to stop the Modeler and rm -rf the entire
> ~/.cayenne/prefs/1.2 folder.
Isn't this maybe because of the used HSQLDB?
> I hope Olga may have some time to look at Modeler preferences rework for
> 3.0 to use built-in Java preferences API instead of relying on the
> embeddable DB's.
Wouldn't simply replacing HSQLDB with H2 (http://www.h2database.com/)
solve the problem with far less effort?
I guess it could also bring some nice performance improvements since H2
is faster - besides missing features from HSQLDB such as:
- Transaction Isolation
- Encrypted Database
- Updatable Result Sets, etc.
Adrian.
Re: CM Bug?
Posted by Andrus Adamchik <an...@objectstyle.org>.
This could be due to the long standing preferences stability bug.
Check ~/.cayenne/prefs/1.2 directory. If you see a bunch of db1.XXX,
db2.XXX files, it means the prefs db is in a bad state. In this case
my suggestion is to stop the Modeler and rm -rf the entire ~/.cayenne/
prefs/1.2 folder.
I hope Olga may have some time to look at Modeler preferences rework
for 3.0 to use built-in Java preferences API instead of relying on the
embeddable DB's.
Andrus
On Sep 28, 2009, at 10:28 PM, Michael Gentry wrote:
> Can anyone else confirm this? It has happened to me twice today so
> far.
>
> I have a local data source defined (in CM preferences). If I change
> models, the local data source goes away. Permanently. It isn't even
> there if I open up the original model I had been using where I know I
> had the data source. Also, the ClassPath setting in CM preferences
> gets nuked, too. Maybe more.
>