• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: multiple stacks exception from ERXPrototypes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multiple stacks exception from ERXPrototypes


  • Subject: Re: multiple stacks exception from ERXPrototypes
  • From: Mike Schrag <email@hidden>
  • Date: Wed, 28 Jan 2009 16:59:49 -0500

why is driver = "com.mysql.jdbc.Driver"; set in one and not the other?

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


  • Follow-Ups:
    • Re: multiple stacks exception from ERXPrototypes
      • From: William Hatch <email@hidden>
References: 
 >multiple stacks exception from ERXPrototypes (From: William Hatch <email@hidden>)

  • Prev by Date: multiple stacks exception from ERXPrototypes
  • Next by Date: Re: multiple stacks exception from ERXPrototypes
  • Previous by thread: multiple stacks exception from ERXPrototypes
  • Next by thread: Re: multiple stacks exception from ERXPrototypes
  • Index(es):
    • Date
    • Thread