db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benoit Tramblay <benoit.tramb...@technomedia.ca>
Subject Problem with addAscendingOrderByColum
Date Tue, 03 Jun 2003 19:49:59 GMT
Hello,
 
I Have created an Criteria object with a database name and i have used the
addAscendingOrderByColum method.
During execution, i have a null pointer Exception on BasesObject for
createQuery method.
 
When i removed the dabasename in criteria constructor, programm is running.
 
Do you know this problem ?
Thanks.
 
 
java.lang.NullPointerException
        at org.apache.torque.util.BasePeer.createQuery(BasePeer.java:1209)
        at
org.apache.torque.util.BasePeer.createQueryString(BasePeer.java:927)
        at org.apache.torque.util.BasePeer.doSelect(BasePeer.java:1321)
        at
ca.technomedia.sigal.common.persistency.data.BaseTqEntreprisePeer.doSelectVi
llageRecords(BaseTqEntreprisePeer.java:450)
        at
ca.technomedia.sigal.common.persistency.data.BaseTqEntreprisePeer.doSelectVi
llageRecords(BaseTqEntreprisePeer.java:417)
        at
ca.technomedia.sigal.common.persistency.data.BaseTqEntreprisePeer.doSelect(B
aseTqEntreprisePeer.java:386)
        at
ca.technomedia.sigal.common.persistency.data.TqEntreprisePeer.getEntrepriseL
istByParentOrGroupId(TqEntreprisePeer.java:80)
        at
ca.technomedia.sigal.common.persistency.adapter.entreprise.EntrepriseAdapter
.loadbyParentOrGroupId(EntrepriseAdapter.java:65)
        at
ca.technomedia.sigal.common.model.entreprise.Entreprise.loadSubEntreprise(En
treprise.java:285)
        at
ca.technomedia.sigal.common.model.entreprise.facade.EntrepriseImpl.loadWithE
lements(EntrepriseImpl.java:53)
        at
tests.model.BTY.TestEnterpriseLoad.process(TestEnterpriseLoad.java:52)
        at
tests.model.BTY.TestEnterpriseLoad.<init>(TestEnterpriseLoad.java:35)
        at
tests.model.BTY.TestEnterpriseLoad.main(TestEnterpriseLoad.java:68)
rethrown as org.apache.torque.TorqueException
        at org.apache.torque.util.BasePeer.doSelect(BasePeer.java:1334)
        at
ca.technomedia.sigal.common.persistency.data.BaseTqEntreprisePeer.doSelectVi
llageRecords(BaseTqEntreprisePeer.java:450)
        at
ca.technomedia.sigal.common.persistency.data.BaseTqEntreprisePeer.doSelectVi
llageRecords(BaseTqEntreprisePeer.java:417)
        at
ca.technomedia.sigal.common.persistency.data.BaseTqEntreprisePeer.doSelect(B
aseTqEntreprisePeer.java:386)
        at
ca.technomedia.sigal.common.persistency.data.TqEntreprisePeer.getEntrepriseL
istByParentOrGroupId(TqEntreprisePeer.java:80)
        at
ca.technomedia.sigal.common.persistency.adapter.entreprise.EntrepriseAdapter
.loadbyParentOrGroupId(EntrepriseAdapter.java:65)
        at
ca.technomedia.sigal.common.model.entreprise.Entreprise.loadSubEntreprise(En
treprise.java:285)
        at
ca.technomedia.sigal.common.model.entreprise.facade.EntrepriseImpl.loadWithE
lements(EntrepriseImpl.java:53)
        at
tests.model.BTY.TestEnterpriseLoad.process(TestEnterpriseLoad.java:52)
        at
tests.model.BTY.TestEnterpriseLoad.<init>(TestEnterpriseLoad.java:35)
        at
tests.model.BTY.TestEnterpriseLoad.main(TestEnterpriseLoad.java:68)
Caused by: java.lang.NullPointerException
        at org.apache.torque.util.BasePeer.createQuery(BasePeer.java:1209)
        at
org.apache.torque.util.BasePeer.createQueryString(BasePeer.java:927)
        at org.apache.torque.util.BasePeer.doSelect(BasePeer.java:1321)
        ... 10 more


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message