db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.win...@telenet-ag.de
Subject NullPointerException while running testcases
Date Fri, 19 Nov 2004 07:29:17 GMT
Hello Torque-Users,

while executing the junit testcases for my webapp I get the following 
exception trying to
save a new record to the database (I'm using torque 3.1 with an oracle 

| +------------------
| | Nested Exception: java.lang.NullPointerException
| | Message: null
| | Stack trace:
        at org.apache.torque.util.BasePeer.doInsert(BasePeer.java:697)
        at dtag.dns.torque.BaseOrders.save(BaseOrders.java:976)
        at dtag.dns.torque.BaseDnsObject.save(BaseDnsObject.java:107)
        at dtag.dns.torque.Orders.save(Orders.java:56)
        at dtag.dns.orders.Order.execute(Order.java:194)
        at dtag.dns.orders.Order.execute(Order.java:90)

Looking thru the torque code and doing some logging, I found out, that the 
table to which I
want to save is not contained in the table map (BasePeer.java, line 696). 
The funny thing is
that this occurs only when I run the testcases (I'm using strutstestcases 
2.1.3 with struts 1.2.4).
Normaly the app is runnung with apache and tomcat, If so, there's no 
exception and the table
is contained in the table map.

Does anyone has faced this or a similar problem and has got a solution or 
hint for me ?

Thanks in advance,

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

View raw message