• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • 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.
 
Don't mess with me you fool! I'm cooking with gas! Here, read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic