db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakob Braeuchi <jbraeu...@gmx.ch>
Subject Re: [junit failures] Two errors when run junit tests with latest from CVS
Date Thu, 22 Apr 2004 19:24:14 GMT
hi armin,

i fixed it.

jakob

Jakob Braeuchi wrote:

> hi armin,
> 
> i didn't know about this testcase :( but you're right criteria is null.
> 
> jakob
> 
> Armin Waibel wrote:
> 
>> Hi all,
>>
>> I get two NPE when run the test suite against latest from CVS.
>> Seems BrokerHelper has problems in copying criteria (could it be null?).
>>
>> regards,
>> Armin
>>
>>
>> Testcase: testStoreNestedNodes took 0 sec
>>     Caused an ERROR
>> null
>> java.lang.NullPointerException
>>     at 
>> org.apache.ojb.broker.util.BrokerHelper.getQueryByCriteriaCount(BrokerHelper.java:509)

>>
>>     at 
>> org.apache.ojb.broker.util.BrokerHelper.getCountQuery(BrokerHelper.java:469) 
>>
>>     at 
>> org.apache.ojb.broker.core.PersistenceBrokerImpl.getCount(PersistenceBrokerImpl.java:1722)

>>
>>     at 
>> org.apache.ojb.broker.core.DelegatingPersistenceBroker.getCount(DelegatingPersistenceBroker.java:326)

>>
>>     at 
>> org.apache.ojb.broker.core.DelegatingPersistenceBroker.getCount(DelegatingPersistenceBroker.java:326)

>>
>>     at 
>> org.apache.ojb.broker.FieldConversionTest_3.testStoreNestedNodes(FieldConversionTest_3.java:58)

>>
>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>     at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
>>
>>     at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

>>
>>
>> Testcase: testStoreNode took 0 sec
>>     Caused an ERROR
>> null
>> java.lang.NullPointerException
>>     at 
>> org.apache.ojb.broker.util.BrokerHelper.getQueryByCriteriaCount(BrokerHelper.java:509)

>>
>>     at 
>> org.apache.ojb.broker.util.BrokerHelper.getCountQuery(BrokerHelper.java:469) 
>>
>>     at 
>> org.apache.ojb.broker.core.PersistenceBrokerImpl.getCount(PersistenceBrokerImpl.java:1722)

>>
>>     at 
>> org.apache.ojb.broker.core.DelegatingPersistenceBroker.getCount(DelegatingPersistenceBroker.java:326)

>>
>>     at 
>> org.apache.ojb.broker.core.DelegatingPersistenceBroker.getCount(DelegatingPersistenceBroker.java:326)

>>
>>     at 
>> org.apache.ojb.broker.FieldConversionTest_3.testStoreNode(FieldConversionTest_3.java:84)

>>
>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>     at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
>>
>>     at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
>> For additional commands, e-mail: ojb-dev-help@db.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-dev-help@db.apache.org
> 
> 

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


Mime
View raw message