The first problem is this:
2005-07-11 12:34:58,687 WARN [net.sf.hibernate.cfg.SettingsFactory] - Could not obtain connection metadata
org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool exhausted, cause:
java.util.NoSuchElementException: Could not create a validated object
at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:851)
at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:140)
at net.sf.hibernate.connection.DBCPConnectionProvider.getConnection(DBCPConnectionProvider.java:41)
at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:84)
at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1172)...
That doesn't occur if I set hibernate.statement_cache.size=0' and comment out all the 'hibernate.dbcp.*' properties in hibernate.properties. In that case, I get lots of stuff like this:
2005-07-11 12:39:42,000 ERROR [net.sf.hibernate.tool.hbm2ddl.SchemaUpdate] - Unsuccessful: create table admin_user (id numeric(18,0) not null, name varchar(50), email varchar(255) unique, last_login timestamp, password varchar(100), system_data smallint, created_by varchar(255), last_modified_by varchar(255), created_date timestamp, modified_date timestamp, primary key (id))
2005-07-11 12:39:42,000 ERROR [net.sf.hibernate.tool.hbm2ddl.SchemaUpdate] - GDS Exception. 335544569. Dynamic SQL Error
SQL error code = -104
Token unknown - line 1, char 120
password
2005-07-11 12:39:42,000 ERROR [net.sf.hibernate.tool.hbm2ddl.SchemaUpdate] - Unsuccessful: create table transaction (id numeric(18,0) not null, amount double precision, auth_code varchar(255), code varchar(255) not null, message varchar(255), salesOrder numeric(18,0) not null, valid smallint not null, system_data smallint, created_by varchar(255), last_modified_by varchar(255), created_date timestamp, modified_date timestamp, order_id numeric(18,0), primary key (id))
2005-07-11 12:39:42,000 ERROR [net.sf.hibernate.tool.hbm2ddl.SchemaUpdate] - GDS Exception. 335544569. Dynamic SQL Error
SQL error code = -104
Token unknown - line 1, char 14
transaction
2005-07-11 12:39:42,015 ERROR [net.sf.hibernate.tool.hbm2ddl.SchemaUpdate] - Unsuccessful: create table _sale_stock_link (sale_id numeric(18,0) not null, stock_item_id numeric(18,0) not null, primary key (sale_id, stock_item_id))
2005-07-11 12:39:42,015 ERROR [net.sf.hibernate.tool.hbm2ddl.SchemaUpdate] - GDS Exception. 335544569. Dynamic SQL Error
SQL error code = -104
Token unknown - line 1, char 14
_sale_stock_link
2005-07-11 12:39:42,015 ERROR [net.sf.hibernate.tool.hbm2ddl.SchemaUpdate] - Unsuccessful: create table department (id numeric(18,0) not null, discriminator varchar(255) not null, image longblob, shop_id numeric(18,0), position integer, name varchar(255), description blob sub_type 1, system_data smallint, created_by varchar(255), last_modified_by varchar(255), created_date timestamp, modified_date timestamp, primary key (id))
2005-07-11 12:39:42,015 ERROR [net.sf.hibernate.tool.hbm2ddl.SchemaUpdate] - GDS Exception. 335544569. Dynamic SQL Error
SQL error code = -104
Token unknown - line 1, char 129
position
2005-07-11 12:39:42,015 ERROR [net.sf.hibernate.tool.hbm2ddl.SchemaUpdate] - Unsuccessful: create table attribute_definition (id numeric(18,0) not null, option_list_id numeric(18,0), relevance varchar(255) not null, module varchar(255), attribute_type varchar(255), data_type varchar(255), mandatory smallint, length integer, product_type_id numeric(18,0) not null, name varchar(255), description blob sub_type 1, system_data smallint, created_by varchar(255), last_modified_by varchar(255), created_date timestamp, modified_date timestamp, primary key (id))
2005-07-11 12:39:42,015 ERROR [net.sf.hibernate.tool.hbm2ddl.SchemaUpdate] - GDS Exception. 335544569. Dynamic SQL Error
SQL error code = -104
Token unknown - line 1, char 220
length
2005-07-11 12:39:42,125 ERROR [net.sf.hibernate.tool.hbm2ddl.SchemaUpdate] - Unsuccessful: create table role (id numeric(18,0) not null, name varchar(100), system_data smallint, created_by varchar(255), last_modified_by varchar(255), created_date timestamp, modified_date timestamp, primary key (id))
2005-07-11 12:39:42,125 ERROR [net.sf.hibernate.tool.hbm2ddl.SchemaUpdate] - GDS Exception. 335544569. Dynamic SQL Error
SQL error code = -104
Token unknown - line 1, char 14
role
2005-07-11 12:39:42,125 ERROR [net.sf.hibernate.tool.hbm2ddl.SchemaUpdate] - Unsuccessful: create table option_list_item (id numeric(18,0) not null, option_list_id numeric(18,0) not null, code varchar(255), value varchar(255), description varchar(255), system_data smallint, created_by varchar(255), last_modified_by varchar(255), created_date timestamp, modified_date timestamp, primary key (id))
2005-07-11 12:39:42,125 ERROR [net.sf.hibernate.tool.hbm2ddl.SchemaUpdate] - GDS Exception. 335544569. Dynamic SQL Error
SQL error code = -104
Token unknown - line 1, char 117
value
Now, it seems to me that it might be tripping up on reserved words, but what about '_sale_stock_link'?
How can I get Firebird to use these table names?
Thanks.
'
|