Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
multiple stacks exception from ERXPrototypes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

multiple stacks exception from ERXPrototypes



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




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.