![]() |
|
DataNucleus Forum » List all forums » » Forum: RDBMS Datastores » » » Thread: [DERBY][SPRING] » » » » Post: Re: [DERBY][SPRING] |
Print at Mar 15, 2010 2:56:43 AM |
| Posted by jschek at Feb 23, 2007 1:28:06 AM |
Re: [DERBY][SPRING]I'm running JPOX, java5 plugin, and enhancer 1.1.6 with Derby 10.2.2... I've been getting a similar problem when creating the schema using the schematool. I've tracked it down to the "create=true" attribute on the connection URL. The derby metadata calls (in my case, getImportedKeys) seem to fail if you create the database and create the schema at the same time... I've yet to track down the exact reason why this is. In my case, if I use "jdbc:derby:blahblahblah;create=true" as my connection URL for JPOX Schema Tool, I get a similar ArrayIndexOutOfBoundsException... this only occurs if the database does not already exist. Once this error occurs, the database is permanently in a corrupted state (i.e. the schema tool will never work). Calls to metadata seem to fail consistently. If I create the database outside without JPOX's involvement, everything works fine... The process that seems to work for me is: 1. Delete the database, if it exists. 2. Connect to the database with create=true. 3. Immediately shutdown the database (in my case, the jvm exits). 4. Run the schema creation tool. In your case, is the physical database being created on the fly, or does it already exist? |
|
|
Current timezone is GMT Mar 15, 2010 2:56:43 AM |