while running the application in Apache
Tomcat 4.0 i m getting following error. i have tried lots to by changing the parameter but problem could not be resoleved.
Error is............
WARN - IDBroker is being used with db '
test', which does not support transactions. IDBroker attempts to use transactions to limit the possibility of duplicate key generation. Without transactions, du
plicate key generation is possible if multiple JVMs are used or other means are used to write to the database.
java.lang.NullPointerException: Connection object was null. This could be due to a misconfiguration of the DataSourceFactory. Check the logs and Torque.properties to better determine the cause.
at org.apache.torque.util.Transaction.rollback(Transaction.java:179)
at org.apache.torque.util.BasePeer.doSelect(BasePeer.java:1333)
at com.valuemomentum.test.torque.BaseUserLoginPeer.doSelectVillageRecords(BaseUserLoginPeer.java:410)
at com.valuemomentum.test.torque.BaseUserLoginPeer.doSelectVillageRecords(BaseUserLoginPeer.java:378)
at com.valuemomentum.test.torque.BaseUserLoginPeer.doSelect(BaseUserLoginPeer.java:346)
at com.valuemomentum.util.authentication.RuleRepoLoginModule.login(RuleRepoLoginModule.java:139)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
.......................
.......................
so on.........
Torque.property file is as follows.
log4j.rootCategory=DEBUG, default
log4j.appender.default=org.apache.log4j.FileAppender
log4j.appender.default.file=./torque.log
log4j.appender.default.layout=org.apache.log4j.SimpleLayout
torque.database.default=db2
torque.database.TEST.adapter=db2app
torque.database.TEST.driver =COM.ibm.db2.jdbc.app.DB2Driver
torque.database.TEST.url=jdbc
b2:TEST
torque.database.TEST.username=pankesh
torque.database.TEST.password=pankesh
## Using Jdbc2Pool
#torque.dsfactory.TEST.factory=org.apache.torque.dsfactory.Jdbc2PoolDataSourceFactory
#torque.dsfactory.TEST.factory=org.apache.torque.dsfactory.Jdbc2PoolDataSourceFactory
#torque.dsfactory.TEST.pool.defaultMaxActive=10
#torque.dsfactory.TEST.pool.testOnBorrow=true
#torque.dsfactory.TEST.pool.validationQuery=SELECT 1
#torque.dsfactory.TEST.connection.driver =COM.ibm.db2.jdbc.app.DB2Driver
#torque.dsfactory.TEST.connection.url =jdbc
b2:TEST
#torque.dsfactory.TEST.connection.user =pankesh
#torque.dsfactory.TEST.connection.password =pankesh
#torque.idbroker.cleverquantity=true
#torque.dsfactory.TEST.factory=org.apache.torque.dsfactory.TorqueDataSourceFactory
torque.dsfactory.bookstore.factory= org.apache.torque.dsfactory.SharedPoolDataSourceFactory
#torque.dsfactory.TEST.pool.defaultMaxConnections=10
torque.dsfactory.TEST.pool.defaultMaxConnections=30
torque.dsfactory.TEST.pool.maxExpiryTime=3600
torque.dsfactory.TEST.pool.connectionWaitTimeout=10
torque.dsfactory.bookstore.pool.testOnBorrow=true
torque.dsfactory.bookstore.pool.validationQuery=SELECT 1
torque.dsfactory.TEST.connection.driver =COM.ibm.db2.jdbc.app.DB2Driver
torque.dsfactory.TEST.connection.url=jdbc
b2:TEST
torque.dsfactory.TEST.connection.user=pankesh
torque.dsfactory.TEST.connection.password=pankesh
=========================
Can any one help me.
thanks in advance.