db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Fischer <fisc...@seitenbau.net>
Subject RE: executeQuery() causes NullPointerException no DataSourceFactory configured for the connection; while all other querries built using criterias work fine.
Date Fri, 24 Jun 2005 08:35:46 GMT




Hi,

I would suspect that the wrong database name is supplied in one of the
cases.
Do all Peer classes use the default database ?
Do you specify the database name explicitly anywhere in your code ?

   Thomas


Boris Glants <bglants@gmail.com> schrieb am 23.06.2005 22:53:27:

> I have a few statements that I used executeQuery() for. They throw the
> following exception
>  This is the stack trace:
> java.lang.NullPointerException: There was no DataSourceFactory configured

> for the connection sibylconsulting
> at
org.apache.torque.TorqueInstance.getConnection(TorqueInstance.java:711)
> at org.apache.torque.Torque.getConnection(Torque.java:268)
> at org.apache.torque.util.BasePeer.executeQuery(BasePeer.java:1341)
> at org.apache.torque.util.BasePeer.executeQuery(BasePeer.java:1293)
> at org.apache.torque.util.BasePeer.executeQuery(BasePeer.java:1256)
> at
> com.sitesibyl.bli.om.DataListSubmissionManager.
> getDataListSubmissionRecordValueObjectsDisplayedInDataList
> (DataListSubmissionManager.java:125)
>  Otherwise my application works fine with querries that are built using
> criteria objects.
>  Any and all help woudl be greatly appreciated.
>  Thanks in advance,
> Boris


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message