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

Mysql and JDBS


  • Subject: Mysql and JDBS
  • From: Gino Pacitti <email@hidden>
  • Date: Fri, 3 Jun 2005 18:02:54 +0100

I have this in the Application constructor:

public Application() {
super();
System.out.println("Welcome to " + this.name() + "!");
System.out.println( "DefaultGroup is "+EOModelGroup.defaultGroup());
ec = new EOEditingContext();
types = (NSMutableArray)EOUtilities.objectsForEntityNamed (ec, "AttractionTypes");



... I then get :

This is on 10.4.1 and 4. 0.* mysql xserve with these jdbc drivers -
/Library/WebObjects/Extensions/mysql-connector-java-3.0.9-stable- bin.jar
/Library/WebObjects/Extensions/mysql-connector-java-3.1.8-bin.jar


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


[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._objectsWithFetchSpecification EditingContext(EODatabaseContext.java:3205)
at com.webobjects.eoaccess.EODatabaseContext.objectsWithFetchSpecification( EODatabaseContext.java:3347)
at com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpecif ication(EOObjectStoreCoordinator.java:539)
at com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification( EOEditingContext.java:4075)
at com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification( EOEditingContext.java:4461)


Any help would surely help enormously

GIno
_______________________________________________
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 JDBS
      • From: Art Isbell <email@hidden>
    • Re: Mysql and JDBS
      • From: Sacha Mallais <email@hidden>
  • Prev by Date: Re: WebObjects Builder not loading images
  • Next by Date: Re: WebObjects Builder not loading images
  • Previous by thread: Re: WebObjects Builder not loading images
  • Next by thread: Re: Mysql and JDBS
  • Index(es):
    • Date
    • Thread