db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sven Haiges ...@flavor.de>
Subject Torque & MySQL-Treiber...
Date Wed, 03 Sep 2003 02:33:15 GMT
Servus beisammen,

die 3.1 Version von Torque habe ich glĂĽcklicherweise nun gleich beim ersten 
Anlauf zum laufen bekommen :-)

Ich initialisiere torque momentan so:

try
{
Torque.init("./Torque.properties");
}
catch (TorqueException e1)
{
// TODO Auto-generated catch block
e1.printStackTrace();
}

--> gibt es daran etwas auszusetzen? Ich bin nur durch Zufall auf die 
"Idee" gekommen, nach der Klasse Torque zu sehen um das ganze System zu 
initialisieren... gibt es ne bessere Methode?

Danach folgt folgender Test:

ProductDescription pd1 = new ProductDescription();
pd1.setTitleDe("test_de");
pd1.setTitleEn("test_en");
try
{
pd1.save();
System.out.println("Saved the stuff...");
}
catch (Exception e)
{
// TODO Auto-generated catch block
e.printStackTrace();
}

--> Leider gibt es dann ein paar Fehlermeldungen, die wohl mit dem neuen 
MySQL-Treiber zusammenhängen, den ich verwende:

Im unteren Teil sind ein paar Fehler, die  wohl auf mangelnden Support 
Seitens mysql hinweisen. Geht dies normalerweise mit dem alten Treiber, ist 
es also empfehlenswert den alten Treiber zu verwenden?

Danke,
Sven

[DEBUG] TorqueInstance - -init(./Torque.properties)
[DEBUG] TorqueInstance - -Config Object is 
org.apache.commons.configuration.PropertiesConfiguration@1d8957f
[DEBUG] TorqueInstance - 
-init(org.apache.commons.configuration.PropertiesConfiguration@1d8957f)
[DEBUG] TorqueInstance - 
-setConfiguration(org.apache.commons.configuration.PropertiesConfiguration@1d8957f)
[DEBUG] TorqueInstance - -initialize()
[DEBUG] TorqueInstance - 
-setConfiguration(org.apache.commons.configuration.BaseConfiguration@3ee284)
[DEBUG] TorqueInstance - 
-initAdapters(org.apache.commons.configuration.BaseConfiguration@3ee284)
[DEBUG] TorqueInstance - -Adding mysql -> sueviaweb as Adapter
[DEBUG] TorqueInstance - 
-initDataSourceFactories(org.apache.commons.configuration.BaseConfiguration@3ee284)
[DEBUG] TorqueInstance - -handle: sueviaweb DataSourceFactory: 
org.apache.torque.dsfactory.SharedPoolDataSourceFactory
[DEBUG] AbstractDataSourceFactory - -Starting initCPDS
[DEBUG] TorqueInstance - -getConfiguration() = 
org.apache.commons.configuration.BaseConfiguration@3ee284
[DEBUG] AbstractDataSourceFactory - 
-applyConfiguration(org.apache.commons.configuration.BaseConfiguration@1df073d, 
org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS@1546e25)
[DEBUG] ConvertUtils - -Convert string 'com.mysql.jdbc.Driver' to class 
'java.lang.String'
[DEBUG] AbstractDataSourceFactory - 
-setSimpleProperty(org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS@1546e25, 
driver, com.mysql.jdbc.Driver)
[DEBUG] ConvertUtils - -Convert string 
'jdbc:mysql://localhost:3306/sueviaweb' to class 'java.lang.String'
[DEBUG] AbstractDataSourceFactory - 
-setSimpleProperty(org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS@1546e25, 
url, jdbc:mysql://localhost:3306/sueviaweb)
[DEBUG] ConvertUtils - -Convert string 'root' to class 'java.lang.String'
[DEBUG] AbstractDataSourceFactory - 
-setSimpleProperty(org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS@1546e25, 
user, root)
[DEBUG] ConvertUtils - -Convert string 'hitz23' to class 'java.lang.String'
[DEBUG] AbstractDataSourceFactory - 
-setSimpleProperty(org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS@1546e25, 
password, hitz23)
[DEBUG] AbstractDataSourceFactory - 
-applyConfiguration(org.apache.commons.configuration.BaseConfiguration@120a47e, 
org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS@1546e25)
[DEBUG] ConvertUtils - -Convert string 'com.mysql.jdbc.Driver' to class 
'java.lang.String'
[DEBUG] AbstractDataSourceFactory - 
-setSimpleProperty(org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS@1546e25, 
driver, com.mysql.jdbc.Driver)
[DEBUG] ConvertUtils - -Convert string 
'jdbc:mysql://localhost:3306/sueviaweb' to class 'java.lang.String'
[DEBUG] AbstractDataSourceFactory - 
-setSimpleProperty(org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS@1546e25, 
url, jdbc:mysql://localhost:3306/sueviaweb)
[DEBUG] ConvertUtils - -Convert string 'root' to class 'java.lang.String'
[DEBUG] AbstractDataSourceFactory - 
-setSimpleProperty(org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS@1546e25, 
user, root)
[DEBUG] ConvertUtils - -Convert string 'hitz23' to class 'java.lang.String'
[DEBUG] AbstractDataSourceFactory - 
-setSimpleProperty(org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS@1546e25, 
password, hitz23)
[DEBUG] SharedPoolDataSourceFactory - -Starting initJdbc2Pool
[DEBUG] TorqueInstance - -getConfiguration() = 
org.apache.commons.configuration.BaseConfiguration@3ee284
[DEBUG] AbstractDataSourceFactory - 
-applyConfiguration(org.apache.commons.configuration.BaseConfiguration@17bd6a1, 
org.apache.commons.dbcp.datasources.SharedPoolDataSource@147ee05)
[ERROR] AbstractDataSourceFactory - -Property: logInterval value: 0 is not 
supported by DataSource: 
org.apache.commons.dbcp.datasources.SharedPoolDataSource
[ERROR] AbstractDataSourceFactory - -Property: connectionWaitTimeout value: 
10 is not supported by DataSource: 
org.apache.commons.dbcp.datasources.SharedPoolDataSource
[ERROR] AbstractDataSourceFactory - -Property: defaultMaxConnections value: 
80 is not supported by DataSource: 
org.apache.commons.dbcp.datasources.SharedPoolDataSource
[ERROR] AbstractDataSourceFactory - -Property: maxExpiryTime value: 3600 is 
not supported by DataSource: 
org.apache.commons.dbcp.datasources.SharedPoolDataSource
[DEBUG] AbstractDataSourceFactory - 
-applyConfiguration(org.apache.commons.configuration.BaseConfiguration@17e6a96, 
org.apache.commons.dbcp.datasources.SharedPoolDataSource@147ee05)
[ERROR] AbstractDataSourceFactory - -Property: defaultMaxActive value: 10 
is not supported by DataSource: 
org.apache.commons.dbcp.datasources.SharedPoolDataSource
[DEBUG] ConvertUtils - -Convert string 'true' to class 'boolean'
[ERROR] AbstractDataSourceFactory - -Property: testOnBorrow value: true is 
not supported by DataSource: 
org.apache.commons.dbcp.datasources.SharedPoolDataSource
[DEBUG] ConvertUtils - -Convert string 'SELECT 1' to class 'java.lang.String'
[ERROR] AbstractDataSourceFactory - -Property: validationQuery value: 
SELECT 1 is not supported by DataSource: 
org.apache.commons.dbcp.datasources.SharedPoolDataSource
[DEBUG] TorqueInstance - -Adding a dummy entry for default, mapped onto 
sueviaweb
[DEBUG] TorqueInstance - -getConfiguration() = 
org.apache.commons.configuration.BaseConfiguration@3ee284
[DEBUG] IDBroker - -IDBroker thread was started.
[DEBUG] IDBroker - -Forced id retrieval - no available list
[DEBUG] IDBroker - -updateQuantity: UPDATE ID_TABLE SET QUANTITY = 10 WHERE 
TABLE_NAME = 'product_description'
[DEBUG] IDBroker - -updateNextId: UPDATE ID_TABLE SET NEXT_ID = 1010 WHERE 
TABLE_NAME = 'product_description'


---
Sven Haiges
sh@flavor.de
http://www.svenhaiges.de  

Mime
View raw message