db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Kalén <mka...@apache.org>
Subject Re: Do query criterias use field conversions ?
Date Thu, 09 Jun 2005 23:35:51 GMT
Jakob Braeuchi wrote:
> i just commited changes to the trunk and the branch to support 
> field-conversions in ReportQueries. so far there's no testcase to 
> explicitely test this feature, but the DefaultFieldConversion is called.

I get two failures in PB-API regression tests on the 1.0 branch,
do you think they are related to this change?

The tests are:
  testInterfaceAsCollectionRef_2	Error	java.lang.NullPointerException
  testDeepPathQuery		Error	java.lang.NullPointerException

For the first one, it seems that TableAlias#joins is null when looking up
"prev.getJoin" on line 1112 in SqlQueryStatement.

Stacktrace of cause:

java.lang.NullPointerException at 
org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement$TableAlias.getJoin(SqlQueryStatement.java:1964)
at 
org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.getTableAlias(SqlQueryStatement.java:1112)
at 
org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.buildJoinTreeForColumn(SqlQueryStatement.java:1651)
at 
org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.buildJoinTree(SqlQueryStatement.java:1628)
at 
org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.splitCriteria(SqlQueryStatement.java:1705)
at 
org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.<init>(SqlQueryStatement.java:145)
at 
org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.<init>(SqlQueryStatement.java:97)
at 
org.apache.ojb.broker.accesslayer.sql.SqlSelectStatement.<init>(SqlSelectStatement.java:51)
at 
org.apache.ojb.broker.accesslayer.sql.SqlGeneratorDefaultImpl.getPreparedSelectStatement(SqlGeneratorDefaultImpl.java:150)

at org.apache.ojb.broker.accesslayer.JdbcAccessImpl.executeQuery(JdbcAccessImpl.java:318)
at 
org.apache.ojb.broker.accesslayer.RsQueryObject.performQuery(RsQueryObject.java:72) at 
org.apache.ojb.broker.accesslayer.RsIterator.<init>(RsIterator.java:185) at 
org.apache.ojb.broker.core.RsIteratorFactoryImpl.createRsIterator(RsIteratorFactoryImpl.java:58)
at 
org.apache.ojb.broker.core.PersistenceBrokerImpl.getRsIteratorFromQuery(PersistenceBrokerImpl.java:2047)
at 
org.apache.ojb.broker.core.PersistenceBrokerImpl.getIteratorFromQuery(PersistenceBrokerImpl.java:1605)
at 
org.apache.ojb.broker.core.QueryReferenceBroker.getCollectionByQuery(QueryReferenceBroker.java:116)
at 
org.apache.ojb.broker.core.QueryReferenceBroker.getCollectionByQuery(QueryReferenceBroker.java:255)
... 22 more

Regards,
  Martin


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