• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

IDBroker is being used with db 'test'

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Sheriff
Posts: 67503
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This looks very Tomcat-specific, so I'm moving this to the Tomcat forum for further discussion.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic