db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kazuhiko Fukatsu <k.fuk...@cec-ltd.co.jp>
Subject OrderBy NullPointerException
Date Tue, 22 Apr 2003 06:27:40 GMT
I experienced a mysterious behaviour with torque-gen-3.1-alpha1
When use OrderBy. Why?


     [junit] java.lang.NullPointerException
     [junit]     at org.apache.torque.util.BasePeer.createQuery(BasePeer.java:124
0)
     [junit]     at org.apache.torque.util.BasePeer.createQueryString(BasePeer.ja
va:916)
     [junit]     at org.apache.torque.util.BasePeer.doSelect(BasePeer.java:1332)
     [junit]     at jp.co.shin_chuutou.exam.torque.BaseTPassPeer.doSelectVillageR
ecords(BaseTPassPeer.java:400)
     [junit]     at jp.co.shin_chuutou.exam.torque.BaseTPassPeer.doSelectVillageR
ecords(BaseTPassPeer.java:367)
     [junit]     at jp.co.shin_chuutou.exam.torque.BaseTPassPeer.doSelect(BaseTPa
ssPeer.java:336)
     [junit]     at test.ExamTestCase.testSimple(ExamTestCase.java:45)
     [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)

Test Program

            crit = new Criteria();
            crit.addAscendingOrderByColumn(TPassPeer.PASSWD);
            list = TPassPeer.doSelect(crit); 


Mime
View raw message