Re: multiple stacks exception from ERXPrototypes
Re: multiple stacks exception from ERXPrototypes
- Subject: Re: multiple stacks exception from ERXPrototypes
- From: William Hatch <email@hidden>
- Date: Wed, 28 Jan 2009 17:09:42 -0500
On Jan 28, 2009, at 4:59 PM, Mike Schrag wrote:
why is driver = "com.mysql.jdbc.Driver"; set in one and not the other?
I don't know; I've never explicitly set properties for the Prototypes
model before. Should I? It is specified for "YourModel" in my
properties file. Really odd is that this is just a simple test app I
keep around, which relies on a very simple test framework; I copied
the config from another test app which does work with the exact same
framework... Both are linked to installed frameworks, not source
projects. Weird.
And this has nothing to do with multiple threads or stacks; just tried
it using a normal everyday ERXEC.newEditingContext() with same
results. Thanks Mike.
ms
On Jan 28, 2009, at 4:34 PM, William Hatch wrote:
Doing this to create a separate stack: (thought this was correct,
but maybe not using wonder?)
EOObjectStoreCoordinator osc = new EOObjectStoreCoordinator();
EOEditingContext ec = new EOEditingContext(osc);
causes this error as soon I try to use the editing context:
[2009-1-28 16:24:35 EST] <main> java.lang.IllegalArgumentException:
The connection dictionaries for EOPrototypes and YourModel have the
same URL and username, but the connection dictionaries are not
equal. Check your connection dictionaries carefully! This problem
is often caused by jdbc2Info not matching between the two. One fix
for this is to set EOPrototypes.removeJdbc2Info=true and
YourModel.removeJdbc2Info=true in your Properties file.
(EOPrototypes={username = "user"; password = "password"; URL =
"jdbc:mysql://localhost/Test?
capitalizeTypenames
=true&useUnicode=true&characterEncoding=UTF-8"; }; and
YourModel={driver = "com.mysql.jdbc.Driver"; password = "password";
username = "user"; URL = "jdbc:mysql://localhost/Test?
capitalizeTypenames
=true&useUnicode=true&characterEncoding=UTF-8"; }).
at
er
.extensions.eof.ERXModelGroup.fixJDBCDictionary(ERXModelGroup.java:
890)
at
er
.extensions
.eof
.ERXModelGroup.resetConnectionDictionaryInModel(ERXModelGroup.java:
967)
at er.extensions.eof.ERXModelGroup.addModel(ERXModelGroup.java:369)
at
er
.extensions
.eof.ERXModelGroup.addModelWithPathURL(ERXModelGroup.java:550)
at
er
.extensions
.eof.ERXModelGroup.loadModelsFromLoadedBundles(ERXModelGroup.java:
199)
What do I need to do to create multiple EOF stacks properly? I
should mention that I'm trying to create these in separate threads.
I tried added the propertys mentioned, but that hasn't helped.
Thanks.
Bill
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden