• 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: Mysql and JDBS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mysql and JDBS


  • Subject: Re: Mysql and JDBS
  • From: Sacha Mallais <email@hidden>
  • Date: Fri, 3 Jun 2005 10:52:00 -0700

On Jun 3, 2005, at 10:02 AM, Gino Pacitti wrote:

I have a db named correctly with user and password plus I can connect via commandline to mysql and use the settings,,


Sure seems as though your connection settings are incorrect. Are you setting them in code, or manually, in EOModeler? If your connection parameters are set statically in the EO model, then try connecting directly from EOModeler to your database by hitting the "Browse Data" button.

If you are setting your connection parameters in code, then trace through and determine exactly what those parameters are, then put them into the EOModel and attempt to connect from there.





sacha



PS. I've added this question to a WO FAQ I've been working on:
http://www.global-village.net/gvc.webobjects/faq
It's hardly ready for prime time yet -- there are only a few questions/answers (and any suggestions for content would be appreciated -- in fact, anyone that wants add/edit access is welcome!), but at least it is not years out of date... :-)



[2005-06-03 17:53:11 BST] <main> Creating LifebeatThread now with: testtt 52961 xserveOne.local/xxx.xxx.xxx.xxx 1085 30000
Welcome to testtt!
DefaultGroup is <EOModelGroup (("childsafe", "file:/Users/g43p/ Sites/WebObjects/testtt.woa/Contents/Resources/childsafe.eomodeld"))>
[2005-06-03 17:53:11 BST] <main> An exception occurred while trying to open a channel: com.webobjects.jdbcadaptor.JDBCAdaptorException: Unable to connect to any hosts due to exception: java.lang.ArrayIndexOutOfBoundsException: 45
[2005-06-03 17:53:11 BST] <main> A fatal exception occurred: _obtainOpenChannel -- com.webobjects.eoaccess.EODatabaseContext com.webobjects.eoaccess.EODatabaseContext@e4605c: failed to open database channel. Check your connection dictionary, and ensure your database is correctly configured.
[2005-06-03 17:53:11 BST] <main> java.lang.IllegalStateException: _obtainOpenChannel -- com.webobjects.eoaccess.EODatabaseContext com.webobjects.eoaccess.EODatabaseContext@e4605c: failed to open database channel. Check your connection dictionary, and ensure your database is correctly configured.
at com.webobjects.eoaccess.EODatabaseContext._obtainOpenChannel (EODatabaseContext.java:2132)
at com.webobjects.eoaccess.EODatabaseContext._objectsWithFetchSpecificati onEditingContext(EODatabaseContext.java:3205)
at com.webobjects.eoaccess.EODatabaseContext.objectsWithFetchSpecificatio n(EODatabaseContext.java:3347)
at com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpec ification(EOObjectStoreCoordinator.java:539)
at com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecificatio n(EOEditingContext.java:4075)
at com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecificatio n(EOEditingContext.java:4461)


Any help would surely help enormously

GIno
_______________________________________________
WebObjects-dev mailing list
email@hidden
http://www.omnigroup.com/mailman/listinfo/webobjects-dev


_______________________________________________ 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: Mysql and JDBC
      • From: Gino Pacitti <email@hidden>
References: 
 >Mysql and JDBS (From: Gino Pacitti <email@hidden>)

  • Prev by Date: Good news: Cocoa/EOF on Tiger...
  • Next by Date: Re: Mysql and JDBC
  • Previous by thread: Mysql and JDBS
  • Next by thread: Re: Mysql and JDBC
  • Index(es):
    • Date
    • Thread