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: odmg tests causing 18 Error
Date Fri, 23 Jul 2004 12:20:38 GMT
hi armin,

i fixed it and i also added a call to generateSQLSearchPattern when the criteria 
is bound (this was imo missing).

jakob

Jakob Braeuchi schrieb:

> hi armin,
> 
> imo the problem is that the value is bound later but we try to 
> generateSQLSearchPattern on the null value.
> i'll have a look at it.
> 
> jakob
> 
> 
> Armin Waibel schrieb:
> 
>> Hi all,
>>
>> I'm getting 18 error when running the odmg test cases of CVS. All 
>> errors caused by a NPE in the LikeCriteria. Think there is a OQL 
>> parser problem related to the 'LIKE' keyword (like argument wasn't read).
>> Can anyone confirm this or do I something wrong?
>>
>> regards,
>> Armin
>>
>> ********
>> Example:
>> ********
>>
>> Testcase: testCheckCacheAfterRollback took 0,032 sec
>>     Caused an ERROR
>> null
>> java.lang.NullPointerException
>>     at 
>> org.apache.ojb.broker.query.LikeCriteria.<init>(LikeCriteria.java:56)
>>     at 
>> org.apache.ojb.broker.query.ValueCriteria.buildLikeCriteria(ValueCriteria.java:88)

>>
>>     at org.apache.ojb.broker.query.Criteria.addLike(Criteria.java:458)
>>     at org.apache.ojb.odmg.oql.OQLParser.likeExpr(OQLParser.java:903)
>>     at 
>> org.apache.ojb.odmg.oql.OQLParser.quantifierExpr(OQLParser.java:737)
>>     at org.apache.ojb.odmg.oql.OQLParser.andExpr(OQLParser.java:682)
>>     at org.apache.ojb.odmg.oql.OQLParser.orExpr(OQLParser.java:563)
>>     at org.apache.ojb.odmg.oql.OQLParser.whereClause(OQLParser.java:412)
>>     at org.apache.ojb.odmg.oql.OQLParser.selectQuery(OQLParser.java:130)
>>     at org.apache.ojb.odmg.oql.OQLParser.buildQuery(OQLParser.java:75)
>>     at org.apache.ojb.odmg.oql.OQLQueryImpl.create(OQLQueryImpl.java:197)
>>     at org.apache.ojb.odmg.oql.OQLQueryImpl.create(OQLQueryImpl.java:168)
>>     at 
>> org.apache.ojb.odmg.ODMGRollbackTest.testCheckCacheAfterRollback(ODMGRollbackTest.java:686)

>>
>>     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