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 Brian McCallister <mc...@forthillcompany.com> on 2004/08/25 21:59:08 UTC
OJB 1.0.1 Errors
3 Failures and 1 Error in OJB_1_0 branch:
testRemoveCollectionElementWithoutBackReference
Failure
Wrong number of objects found expected:<2> but was:<3>
junit.framework.AssertionFailedError: Wrong number of objects found
expected:<2> but was:<3> at
org.apache.ojb.odmg.CollectionsTest.testRemoveCollectionElementWithoutBa
ckReference(CollectionsTest.java:176) at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
-----------------------------------------------
testStoreDeleteCollectionElementWithBackReference
Failure
expected:<2> but was:<3>
junit.framework.AssertionFailedError: expected:<2> but was:<3> at
org.apache.ojb.odmg.CollectionsTest.testStoreDeleteCollectionElementWith
BackReference(CollectionsTest.java:331) at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
0.037
---------------------------------------------------
testReportQueryAgainstAbstractClasses
Error
N/A
java.lang.NullPointerException at
org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement$TableAlias.hashC
ode(SqlQueryStatement.java:1974) at
java.util.HashMap.hash(HashMap.java:261) at
java.util.HashMap.put(HashMap.java:379) at
org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.splitCriteria(Sq
lQueryStatement.java:1683) at
org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.<init>(SqlQueryS
tatement.java:132) at
org.apache.ojb.broker.accesslayer.sql.SqlSelectStatement.<init>(SqlSelec
tStatement.java:64) at
org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.getSubQuerySQL(S
qlQueryStatement.java:973) at
org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.appendSubQuery(S
qlQueryStatement.java:954) at
org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.appendParameter(
SqlQueryStatement.java:939) at
org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.appendInCriteria
(SqlQueryStatement.java:767) at
org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.appendCriteria(S
qlQueryStatement.java:846) at
org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.appendSQLClause(
SqlQueryStatement.java:925) at
org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.asSQLStatement(S
qlQueryStatement.java:671) at
org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.appendClause(Sql
QueryStatement.java:592) at
org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.appendWhereClaus
e(SqlQueryStatement.java:544) at
org.apache.ojb.broker.accesslayer.sql.SqlSelectStatement.getStatement(Sq
lSelectStatement.java:243) at
org.apache.ojb.broker.accesslayer.sql.SqlGeneratorDefaultImpl.getPrepare
dSelectStatement(SqlGeneratorDefaultImpl.java:151) at
org.apache.ojb.broker.accesslayer.JdbcAccessImpl.executeQuery(JdbcAccess
Impl.java:276) at
org.apache.ojb.broker.accesslayer.RsQueryObject.performQuery(RsQueryObje
ct.java:74) at
org.apache.ojb.broker.accesslayer.RsIterator.<init>(RsIterator.java:
183) at
org.apache.ojb.broker.accesslayer.ReportQueryRsIterator.<init>(ReportQue
ryRsIterator.java:43) at
org.apache.ojb.broker.core.ReportRsIteratorFactoryImpl.createRsIterator(
ReportRsIteratorFactoryImpl.java:59) at
org.apache.ojb.broker.core.PersistenceBrokerImpl.getRsIteratorFromQuery(
PersistenceBrokerImpl.java:1838) at
org.apache.ojb.broker.core.PersistenceBrokerImpl.getReportQueryIteratorF
romQuery(PersistenceBrokerImpl.java:1855) at
org.apache.ojb.broker.core.PersistenceBrokerImpl.getReportQueryIteratorB
yQuery(PersistenceBrokerImpl.java:1783) at
org.apache.ojb.broker.core.DelegatingPersistenceBroker.getReportQueryIte
ratorByQuery(DelegatingPersistenceBroker.java:317) at
org.apache.ojb.broker.core.DelegatingPersistenceBroker.getReportQueryIte
ratorByQuery(DelegatingPersistenceBroker.java:317) at
org.apache.ojb.broker.QueryTest.testReportQueryAgainstAbstractClasses(Qu
eryTest.java:756) at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
0.046
----------------------------------------------------
testReportPathExpressionForExtents2
Failure
check size expected:<0> but was:<2>
junit.framework.AssertionFailedError: check size expected:<0> but
was:<2> at
org.apache.ojb.broker.QueryTest.testReportPathExpressionForExtents2(Quer
yTest.java:1365) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org
Re: OJB 1.0.1 Errors
Posted by Brian McCallister <mc...@forthillcompany.com>.
Naming conventions got broken around the time of release (totally my
fault) as I applied tags incorrectly. Sorry about that.
Right now it is:
Branches:
OJB_1_0_RELEASE : OJB 1.0.x maintenance branch
HEAD : OJB 1.1 ongoing development
Tags:
OJB_1_0 : Released OJB 1.0
This is backwards and I would prefer something a touch more clear,
suggestions? We could do a light clone of FreeBSD branch naming.
-Brian
On Aug 26, 2004, at 8:41 AM, Martin Kalén wrote:
> Brian McCallister wrote:
>
>> 3 Failures and 1 Error in OJB_1_0 branch:
>
> Just to double check; it seems the maintenance branch is
> "OJB_1_0_RELEASE" since folks were a bit quick to check in using this
> tag?
>
> Eg:
> Tag HEAD = 1.1-development
> Branch OJB_1_0_RELEASE = 1.0.x-maintenance
> Tag OJB_1_0 = real 1.0 release?
>
>
> Also; I have finally been able to reproduce an intermittent issue I
> have seen since around 1.0rc5 re OJB-profiles, multithreading and
> proxy materialisation. (This was not introduced in rc5 but has always
> been a problem. Not many people seem to use profiles in production, so
> this has 'slipped through' for long.)
>
> Should I check in a testcase to reproduce this on the
> 1.0.x-maintenance branch? I am working on a fix, but will probably let
> Armin, Jakob and others have a look since it's around "their" code...
>
>
> Sorry Brian for only adding confusion and another possible failure, I
> wish I had more constructive testcase solutions for 1.0.1! ;-)
>
> Regards,
> Martin
>
> ---------------------------------------------------------------------
> 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: OJB 1.0.1 Errors
Posted by Martin Kalén <mk...@apache.org>.
Brian McCallister wrote:
> 3 Failures and 1 Error in OJB_1_0 branch:
Just to double check; it seems the maintenance branch is "OJB_1_0_RELEASE" since folks
were a bit quick to check in using this tag?
Eg:
Tag HEAD = 1.1-development
Branch OJB_1_0_RELEASE = 1.0.x-maintenance
Tag OJB_1_0 = real 1.0 release?
Also; I have finally been able to reproduce an intermittent issue I have seen since around
1.0rc5 re OJB-profiles, multithreading and proxy materialisation. (This was not introduced
in rc5 but has always been a problem. Not many people seem to use profiles in production,
so this has 'slipped through' for long.)
Should I check in a testcase to reproduce this on the 1.0.x-maintenance branch? I am
working on a fix, but will probably let Armin, Jakob and others have a look since it's
around "their" code...
Sorry Brian for only adding confusion and another possible failure, I wish I had more
constructive testcase solutions for 1.0.1! ;-)
Regards,
Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org
Re: OJB 1.0.1 Errors
Posted by Brian McCallister <mc...@forthillcompany.com>.
Agreed. Will start vote.
-Brian
On Sep 2, 2004, at 7:19 AM, Jakob Braeuchi wrote:
> hi brian,
>
> do you know the release-date for 1.0.1 ? imo we should release it
> soon, even if there are still some issues.
>
> jakob
>
> Jakob Braeuchi schrieb:
>
>> hi brian,
>> i fixed the failing testReportQueryAgainstAbstractClasses
>> jakob
>> Brian McCallister schrieb:
>>> 3 Failures and 1 Error in OJB_1_0 branch:
>>>
>>> testRemoveCollectionElementWithoutBackReference
>>> Failure
>>> Wrong number of objects found expected:<2> but was:<3>
>>>
>>> junit.framework.AssertionFailedError: Wrong number of objects found
>>> expected:<2> but was:<3> at
>>> org.apache.ojb.odmg.CollectionsTest.testRemoveCollectionElementWithou
>>> tBa ckReference(CollectionsTest.java:176) at
>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>>> jav a:39) at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>>> sor Impl.java:25)
>>>
>>> -----------------------------------------------
>>>
>>> testStoreDeleteCollectionElementWithBackReference
>>> Failure
>>> expected:<2> but was:<3>
>>>
>>> junit.framework.AssertionFailedError: expected:<2> but was:<3> at
>>> org.apache.ojb.odmg.CollectionsTest.testStoreDeleteCollectionElementW
>>> ith BackReference(CollectionsTest.java:331) at
>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>>> jav a:39) at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>>> sor Impl.java:25)
>>> 0.037
>>>
>>> ---------------------------------------------------
>>>
>>> testReportQueryAgainstAbstractClasses
>>> Error
>>> N/A
>>>
>>> java.lang.NullPointerException at
>>> org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement$TableAlias.ha
>>> shC ode(SqlQueryStatement.java:1974) at
>>> java.util.HashMap.hash(HashMap.java:261) at
>>> java.util.HashMap.put(HashMap.java:379) at
>>> org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.splitCriteria
>>> (Sq lQueryStatement.java:1683) at
>>> org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.<init>(SqlQue
>>> ryS tatement.java:132) at
>>> org.apache.ojb.broker.accesslayer.sql.SqlSelectStatement.<init>(SqlSe
>>> lec tStatement.java:64) at
>>> org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.getSubQuerySQ
>>> L(S qlQueryStatement.java:973) at
>>> org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.appendSubQuer
>>> y(S qlQueryStatement.java:954) at
>>> org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.appendParamet
>>> er( SqlQueryStatement.java:939) at
>>> org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.appendInCrite
>>> ria (SqlQueryStatement.java:767) at
>>> org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.appendCriteri
>>> a(S qlQueryStatement.java:846) at
>>> org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.appendSQLClau
>>> se( SqlQueryStatement.java:925) at
>>> org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.asSQLStatemen
>>> t(S qlQueryStatement.java:671) at
>>> org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.appendClause(
>>> Sql QueryStatement.java:592) at
>>> org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.appendWhereCl
>>> aus e(SqlQueryStatement.java:544) at
>>> org.apache.ojb.broker.accesslayer.sql.SqlSelectStatement.getStatement
>>> (Sq lSelectStatement.java:243) at
>>> org.apache.ojb.broker.accesslayer.sql.SqlGeneratorDefaultImpl.getPrep
>>> are dSelectStatement(SqlGeneratorDefaultImpl.java:151) at
>>> org.apache.ojb.broker.accesslayer.JdbcAccessImpl.executeQuery(JdbcAcc
>>> ess Impl.java:276) at
>>> org.apache.ojb.broker.accesslayer.RsQueryObject.performQuery(RsQueryO
>>> bje ct.java:74) at
>>> org.apache.ojb.broker.accesslayer.RsIterator.<init>(RsIterator.java:
>>> 183) at
>>> org.apache.ojb.broker.accesslayer.ReportQueryRsIterator.<init>(Report
>>> Que ryRsIterator.java:43) at
>>> org.apache.ojb.broker.core.ReportRsIteratorFactoryImpl.createRsIterat
>>> or( ReportRsIteratorFactoryImpl.java:59) at
>>> org.apache.ojb.broker.core.PersistenceBrokerImpl.getRsIteratorFromQue
>>> ry( PersistenceBrokerImpl.java:1838) at
>>> org.apache.ojb.broker.core.PersistenceBrokerImpl.getReportQueryIterat
>>> orF romQuery(PersistenceBrokerImpl.java:1855) at
>>> org.apache.ojb.broker.core.PersistenceBrokerImpl.getReportQueryIterat
>>> orB yQuery(PersistenceBrokerImpl.java:1783) at
>>> org.apache.ojb.broker.core.DelegatingPersistenceBroker.getReportQuery
>>> Ite ratorByQuery(DelegatingPersistenceBroker.java:317) at
>>> org.apache.ojb.broker.core.DelegatingPersistenceBroker.getReportQuery
>>> Ite ratorByQuery(DelegatingPersistenceBroker.java:317) at
>>> org.apache.ojb.broker.QueryTest.testReportQueryAgainstAbstractClasses
>>> (Qu eryTest.java:756) at
>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>>> jav a:39) at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>>> sor Impl.java:25)
>>> 0.046
>>>
>>> ----------------------------------------------------
>>>
>>> testReportPathExpressionForExtents2
>>> Failure
>>> check size expected:<0> but was:<2>
>>>
>>> junit.framework.AssertionFailedError: check size expected:<0> but
>>> was:<2> at
>>> org.apache.ojb.broker.QueryTest.testReportPathExpressionForExtents2(Q
>>> uer yTest.java:1365) at
>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>>> jav a:39) at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>>> sor Impl.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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org
Re: OJB 1.0.1 Errors
Posted by Jakob Braeuchi <jb...@gmx.ch>.
hi brian,
do you know the release-date for 1.0.1 ? imo we should release it soon, even if
there are still some issues.
jakob
Jakob Braeuchi schrieb:
> hi brian,
>
> i fixed the failing testReportQueryAgainstAbstractClasses
>
> jakob
>
> Brian McCallister schrieb:
>
>> 3 Failures and 1 Error in OJB_1_0 branch:
>>
>> testRemoveCollectionElementWithoutBackReference
>> Failure
>> Wrong number of objects found expected:<2> but was:<3>
>>
>> junit.framework.AssertionFailedError: Wrong number of objects found
>> expected:<2> but was:<3> at
>> org.apache.ojb.odmg.CollectionsTest.testRemoveCollectionElementWithoutBa
>> ckReference(CollectionsTest.java:176) at
>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
>> a:39) at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
>> Impl.java:25)
>>
>> -----------------------------------------------
>>
>> testStoreDeleteCollectionElementWithBackReference
>> Failure
>> expected:<2> but was:<3>
>>
>> junit.framework.AssertionFailedError: expected:<2> but was:<3> at
>> org.apache.ojb.odmg.CollectionsTest.testStoreDeleteCollectionElementWith
>> BackReference(CollectionsTest.java:331) at
>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
>> a:39) at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
>> Impl.java:25)
>> 0.037
>>
>> ---------------------------------------------------
>>
>> testReportQueryAgainstAbstractClasses
>> Error
>> N/A
>>
>> java.lang.NullPointerException at
>> org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement$TableAlias.hashC
>> ode(SqlQueryStatement.java:1974) at
>> java.util.HashMap.hash(HashMap.java:261) at
>> java.util.HashMap.put(HashMap.java:379) at
>> org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.splitCriteria(Sq
>> lQueryStatement.java:1683) at
>> org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.<init>(SqlQueryS
>> tatement.java:132) at
>> org.apache.ojb.broker.accesslayer.sql.SqlSelectStatement.<init>(SqlSelec
>> tStatement.java:64) at
>> org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.getSubQuerySQL(S
>> qlQueryStatement.java:973) at
>> org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.appendSubQuery(S
>> qlQueryStatement.java:954) at
>> org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.appendParameter(
>> SqlQueryStatement.java:939) at
>> org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.appendInCriteria
>> (SqlQueryStatement.java:767) at
>> org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.appendCriteria(S
>> qlQueryStatement.java:846) at
>> org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.appendSQLClause(
>> SqlQueryStatement.java:925) at
>> org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.asSQLStatement(S
>> qlQueryStatement.java:671) at
>> org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.appendClause(Sql
>> QueryStatement.java:592) at
>> org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.appendWhereClaus
>> e(SqlQueryStatement.java:544) at
>> org.apache.ojb.broker.accesslayer.sql.SqlSelectStatement.getStatement(Sq
>> lSelectStatement.java:243) at
>> org.apache.ojb.broker.accesslayer.sql.SqlGeneratorDefaultImpl.getPrepare
>> dSelectStatement(SqlGeneratorDefaultImpl.java:151) at
>> org.apache.ojb.broker.accesslayer.JdbcAccessImpl.executeQuery(JdbcAccess
>> Impl.java:276) at
>> org.apache.ojb.broker.accesslayer.RsQueryObject.performQuery(RsQueryObje
>> ct.java:74) at
>> org.apache.ojb.broker.accesslayer.RsIterator.<init>(RsIterator.java:
>> 183) at
>> org.apache.ojb.broker.accesslayer.ReportQueryRsIterator.<init>(ReportQue
>> ryRsIterator.java:43) at
>> org.apache.ojb.broker.core.ReportRsIteratorFactoryImpl.createRsIterator(
>> ReportRsIteratorFactoryImpl.java:59) at
>> org.apache.ojb.broker.core.PersistenceBrokerImpl.getRsIteratorFromQuery(
>> PersistenceBrokerImpl.java:1838) at
>> org.apache.ojb.broker.core.PersistenceBrokerImpl.getReportQueryIteratorF
>> romQuery(PersistenceBrokerImpl.java:1855) at
>> org.apache.ojb.broker.core.PersistenceBrokerImpl.getReportQueryIteratorB
>> yQuery(PersistenceBrokerImpl.java:1783) at
>> org.apache.ojb.broker.core.DelegatingPersistenceBroker.getReportQueryIte
>> ratorByQuery(DelegatingPersistenceBroker.java:317) at
>> org.apache.ojb.broker.core.DelegatingPersistenceBroker.getReportQueryIte
>> ratorByQuery(DelegatingPersistenceBroker.java:317) at
>> org.apache.ojb.broker.QueryTest.testReportQueryAgainstAbstractClasses(Qu
>> eryTest.java:756) at
>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
>> a:39) at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
>> Impl.java:25)
>> 0.046
>>
>> ----------------------------------------------------
>>
>> testReportPathExpressionForExtents2
>> Failure
>> check size expected:<0> but was:<2>
>>
>> junit.framework.AssertionFailedError: check size expected:<0> but
>> was:<2> at
>> org.apache.ojb.broker.QueryTest.testReportPathExpressionForExtents2(Quer
>> yTest.java:1365) at
>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
>> a:39) at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
>> Impl.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: OJB 1.0.1 Errors
Posted by Jakob Braeuchi <jb...@gmx.ch>.
hi brian,
i fixed the failing testReportQueryAgainstAbstractClasses
jakob
Brian McCallister schrieb:
> 3 Failures and 1 Error in OJB_1_0 branch:
>
> testRemoveCollectionElementWithoutBackReference
> Failure
> Wrong number of objects found expected:<2> but was:<3>
>
> junit.framework.AssertionFailedError: Wrong number of objects found
> expected:<2> but was:<3> at
> org.apache.ojb.odmg.CollectionsTest.testRemoveCollectionElementWithoutBa
> ckReference(CollectionsTest.java:176) at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
>
> -----------------------------------------------
>
> testStoreDeleteCollectionElementWithBackReference
> Failure
> expected:<2> but was:<3>
>
> junit.framework.AssertionFailedError: expected:<2> but was:<3> at
> org.apache.ojb.odmg.CollectionsTest.testStoreDeleteCollectionElementWith
> BackReference(CollectionsTest.java:331) at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> 0.037
>
> ---------------------------------------------------
>
> testReportQueryAgainstAbstractClasses
> Error
> N/A
>
> java.lang.NullPointerException at
> org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement$TableAlias.hashC
> ode(SqlQueryStatement.java:1974) at
> java.util.HashMap.hash(HashMap.java:261) at
> java.util.HashMap.put(HashMap.java:379) at
> org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.splitCriteria(Sq
> lQueryStatement.java:1683) at
> org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.<init>(SqlQueryS
> tatement.java:132) at
> org.apache.ojb.broker.accesslayer.sql.SqlSelectStatement.<init>(SqlSelec
> tStatement.java:64) at
> org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.getSubQuerySQL(S
> qlQueryStatement.java:973) at
> org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.appendSubQuery(S
> qlQueryStatement.java:954) at
> org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.appendParameter(
> SqlQueryStatement.java:939) at
> org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.appendInCriteria
> (SqlQueryStatement.java:767) at
> org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.appendCriteria(S
> qlQueryStatement.java:846) at
> org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.appendSQLClause(
> SqlQueryStatement.java:925) at
> org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.asSQLStatement(S
> qlQueryStatement.java:671) at
> org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.appendClause(Sql
> QueryStatement.java:592) at
> org.apache.ojb.broker.accesslayer.sql.SqlQueryStatement.appendWhereClaus
> e(SqlQueryStatement.java:544) at
> org.apache.ojb.broker.accesslayer.sql.SqlSelectStatement.getStatement(Sq
> lSelectStatement.java:243) at
> org.apache.ojb.broker.accesslayer.sql.SqlGeneratorDefaultImpl.getPrepare
> dSelectStatement(SqlGeneratorDefaultImpl.java:151) at
> org.apache.ojb.broker.accesslayer.JdbcAccessImpl.executeQuery(JdbcAccess
> Impl.java:276) at
> org.apache.ojb.broker.accesslayer.RsQueryObject.performQuery(RsQueryObje
> ct.java:74) at
> org.apache.ojb.broker.accesslayer.RsIterator.<init>(RsIterator.java:
> 183) at
> org.apache.ojb.broker.accesslayer.ReportQueryRsIterator.<init>(ReportQue
> ryRsIterator.java:43) at
> org.apache.ojb.broker.core.ReportRsIteratorFactoryImpl.createRsIterator(
> ReportRsIteratorFactoryImpl.java:59) at
> org.apache.ojb.broker.core.PersistenceBrokerImpl.getRsIteratorFromQuery(
> PersistenceBrokerImpl.java:1838) at
> org.apache.ojb.broker.core.PersistenceBrokerImpl.getReportQueryIteratorF
> romQuery(PersistenceBrokerImpl.java:1855) at
> org.apache.ojb.broker.core.PersistenceBrokerImpl.getReportQueryIteratorB
> yQuery(PersistenceBrokerImpl.java:1783) at
> org.apache.ojb.broker.core.DelegatingPersistenceBroker.getReportQueryIte
> ratorByQuery(DelegatingPersistenceBroker.java:317) at
> org.apache.ojb.broker.core.DelegatingPersistenceBroker.getReportQueryIte
> ratorByQuery(DelegatingPersistenceBroker.java:317) at
> org.apache.ojb.broker.QueryTest.testReportQueryAgainstAbstractClasses(Qu
> eryTest.java:756) at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> 0.046
>
> ----------------------------------------------------
>
> testReportPathExpressionForExtents2
> Failure
> check size expected:<0> but was:<2>
>
> junit.framework.AssertionFailedError: check size expected:<0> but
> was:<2> at
> org.apache.ojb.broker.QueryTest.testReportPathExpressionForExtents2(Quer
> yTest.java:1365) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method) at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.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