db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Schutt <ryan_sch...@yahoo.com>
Subject Re: Problem with addAscendingOrderByColum
Date Tue, 03 Jun 2003 20:16:20 GMT
You can't use alternate database names in criterias that use order by or group
by.  This is a torque bug, AFAIK.  We've been bit by this one too.


--- Benoit Tramblay <benoit.tramblay@technomedia.ca> wrote:
> 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
> 
> 


__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

Mime
View raw message