You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-user@db.apache.org by Paul Brady <pa...@macalla.com> on 2003/05/15 10:22:52 UTC
Misconfiguration of the DataSourceFactory?
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)
Re: Misconfiguration of the DataSourceFactory?
Posted by Matthieu DELAHAIS <de...@yahoo.fr>.
Check yours drivers are in the folder WEB-INF\lib
--- peter riegersperger <ri...@subnet.at> a écrit : >
-----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Thursday 15 May 2003 10:22, Paul Brady wrote:
> > Has anyone come across this exception (below)? It
> occurs when I attempt to
> > do a doSelect() as follows:
>
> > 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.
>
> do you call
>
> Torque.init("Torque.properties"); //or
> wherever your properties file
> is
>
> ?
>
> i got these exceptions when i forgot to.
>
> peter
>
>
> - --
> |-
> | peter riegersperger <ri...@subnet.at>
> |-
> | subnet
> | platform for media art and experimental
> technologies
> |-
> | http://www.subnet.at/
> |-
> | muehlbacherhofweg 5 // 5020 salzburg // austria
> |-
> | fon/fax +43/662/842 897
> |-
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.7 (GNU/Linux)
>
>
iD4DBQE+w1FNIMP39JYOy9IRAugLAJ9zW9UQwFHRmF4Pl5BuTAOrOKqbzwCY5vXh
> 75aP6B3Tm4we8/KGV7bi3w==
> =eF3a
> -----END PGP SIGNATURE-----
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> torque-user-unsubscribe@db.apache.org
> For additional commands, e-mail:
> torque-user-help@db.apache.org
>
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com
Re: Misconfiguration of the DataSourceFactory?
Posted by peter riegersperger <ri...@subnet.at>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday 15 May 2003 10:22, Paul Brady wrote:
> Has anyone come across this exception (below)? It occurs when I attempt to
> do a doSelect() as follows:
> 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.
do you call
Torque.init("Torque.properties"); //or wherever your properties file
is
?
i got these exceptions when i forgot to.
peter
- --
|-
| peter riegersperger <ri...@subnet.at>
|-
| subnet
| platform for media art and experimental technologies
|-
| http://www.subnet.at/
|-
| muehlbacherhofweg 5 // 5020 salzburg // austria
|-
| fon/fax +43/662/842 897
|-
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD4DBQE+w1FNIMP39JYOy9IRAugLAJ9zW9UQwFHRmF4Pl5BuTAOrOKqbzwCY5vXh
75aP6B3Tm4we8/KGV7bi3w==
=eF3a
-----END PGP SIGNATURE-----