db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Brady <paul.br...@macalla.com>
Subject Misconfiguration of the DataSourceFactory?
Date Thu, 15 May 2003 08:22:52 GMT
Has anyone come across this exception (below)? It occurs when I attempt to
do a doSelect() as follows:

        Criteria criteria = new Criteria();
        criteria.add(CampaignSubscriberPeer.CAMPAIGN_ID, strCampaignId);

        return doSelect(criteria);

I'm using mysql and my runtime properties are as follows:
log4j.rootCategory=DEBUG,default
log4j.appender.default= com.mysql.jdbc.Driver
log4j.appender.default.file=./torque.log
log4j.appender.default.layout=org.apache.log4j.SimpleLayout

torque.database.default=sisp
torque.database.bookstore.driver=org.gjt.mm.mysql.Driver
torque.database.bookstore.url=jdbc:mysql://127.0.0.1/sisp
torque.database.bookstore.username=paul
torque.database.bookstore.password=paul

Cheers,
Paul.

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.macalla.sisp.db.torque.BaseCampaignSubscriberPeer.doSelectVillageRecords
(BaseCampaignSubscriberPeer.java:364)
	at
com.macalla.sisp.db.torque.BaseCampaignSubscriberPeer.doSelectVillageRecords
(BaseCampaignSubscriberPeer.java:331)
	at
com.macalla.sisp.db.torque.BaseCampaignSubscriberPeer.doSelect(BaseCampaignS
ubscriberPeer.java:300)
	at
com.macalla.sisp.db.torque.CampaignSubscriberPeer.getCampaignSubscribers(Cam
paignSubscriberPeer.java:25)
	at
com.macalla.sisp.db.SubscriberDBManager.getCampaignSubscribers(SubscriberDBM
anager.java:58)
	at
com.macalla.sisp.smsri.SMSCampaign.startCampaign(SMSCampaign.java:66)
	at
com.macalla.sisp.smsri.SMSCampaignManager.start(SMSCampaignManager.java:77)
	at
com.macalla.sisp.smsri.SMSCampaignManager.main(SMSCampaignManager.java:88)

Mime
View raw message