• 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: connection dictionary error?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: connection dictionary error?


  • Subject: Re: connection dictionary error?
  • From: Sacha Michel Mallais <email@hidden>
  • Date: Wed, 26 Oct 2005 10:05:21 -0700

On Oct 26, 2005, at 6:29 AM, Jeremy Matthews wrote:

When attempting to insert values into the database, I receive this WO error:

java.lang.IllegalStateException: _obtainOpenChannel -- com.webobjects.eoaccess.EODatabaseContext com.webobjects.eoaccess.EODatabaseContext@e028e1: failed to open database channel. Check your connection dictionary, and ensure your database is correctly configured.

I've tested the DB, and connection, and they are fine. It's just that WO doesn't like them. I can generate SQL from EOM as well.

Can you browse data from within EOModeler? That's really the only test that matters when it comes to testing connectivity.


I've heard of the "index.eomodeld" file being corrupted, and that it may not have entries, or those entries may need to be rewritten. Right now this file is 99% blank, so I'm thinking this may be it.

What do you mean, "99% blank"? There is 99 blank lines and 1 non- blank line?


I'd appreciate any advice or the text of what is supposed to be included in that file.

Here is an example:

{
    EOModelVersion = "2.1";
    adaptorName = JDBC;
    connectionDictionary = {
        URL = "";
        driver = "";
        password = "";
        plugin = "";
        username = "";
    };
    entities = (
        {
            className = "SomeClass";
            name = SomeClass;
        }
    );
    internalInfo = {};
    userInfo = {
        history = {
            created = "2000-10-24 04:05:17 +0000 by sacha";
            lastSaved = "2000-10-24 04:05:17 +0000 by sacha";
        };
        modificationDate = "2000-10-24 04:07:34 +0000";
    };
}


Obviously, the URL, driver (optional), password, plugin (optional) and username need to be something other than the empty string.



sacha


-- Sacha Michel Mallais Senior Developer / President Global Village Consulting Inc. http://www.global-village.net/ PGP Key ID: 7D757B65 AIM: smallais Bottom posting is your friend: http://www.river.com/users/share/etiquette/



Attachment: PGP.sig
Description: This is a digitally signed message part

 _______________________________________________
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

References: 
 >connection dictionary error? (From: Jeremy Matthews <email@hidden>)

  • Prev by Date: Re: connection dictionary error?
  • Next by Date: Re: connection dictionary error?
  • Previous by thread: Re: connection dictionary error?
  • Next by thread: Re: connection dictionary error?
  • Index(es):
    • Date
    • Thread