Re: EOModeler and Intel Macs

Ray Kiddy <[email protected]>
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
On Feb 2, 2007, at 6:44 PM, Mohapatra Ashish wrote:

> Hi All,
>
> I was just wondering if there are any known issues for EOModeler  
> not working
> on intel macs.
>
> I am getting an exception:
> "Illegal state exception. Unable to open database channel".
>
> Any pointers would be of great help.
>
> Thanks,
> Ashish

Is anyone still maintaining a FAQ?

EOModeler works fine on Intel Macs that have the Java 1.4 VM  
installed. That VM does not have to be the default. It just has to  
exist.

Really, there are two questions to answer here. Is your JDBC driver  
set up to access your database correctly? And is the ObjC side of the  
JDBC access working correctly?

The answer to the second question is, for you, obviously no. But  
since you did not give some info, such as the database you are using,  
the driver and driver version, the connection dictionary for the  
model, I feel it safe to assume you might not be checking the  
database and the Java-only side of the access to the data.

To check the Java-only stuff, use an EOF command-line app, as in  
http://worldofwebobjects.blogspot.com/2006/04/command-line-tool-for- 
fetching-with.html. Change the model and entity name to match what  
you are trying to use.

If you can access the database with that, and EOModeler cannot access  
the data, then you need to look at where your driver is installed. It  
is usually safe to put it somewhere like /System/Library/Java/ 
Extensions, so that you will know it will get loaded, even by  
EOModeler. Once you are able to connect, you could move it to other  
places. I do not remember all the places it is ok for, and the places  
it might not be.

Also, which version is your default VM? Have you un-installed any of  
the JVMs supplied with the system?

If you open Terminal and cat the /Developer/Applications/WebObjects/ 
EOModeler.app/Contents/Info-macos.plist file, you should see this  
among the other stuff in it.

         <key>Java</key>
         <dict>
                 <key>JVMVersion</key>
                 <string>1.4*</string>
         </dict>

Does yours say "1.4*"?

If things still do not work for you, more info is needed.

- ray
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.