You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by Armin Waibel <ar...@apache.org> on 2004/04/22 17:41:43 UTC

[junit failures] Two errors when run junit tests with latest from CVS

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


Re: [junit failures] Two errors when run junit tests with latest from CVS

Posted by Jakob Braeuchi <jb...@gmx.ch>.
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


Re: [junit failures] Two errors when run junit tests with latest from CVS

Posted by Jakob Braeuchi <jb...@gmx.ch>.
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