RE: Pbm on MtoNCollectionPrefetcher
Thks Jacob I 'll test it rigth now :) B.R Thierry -Original Message- From: Jakob Braeuchi [mailto:[EMAIL PROTECTED] Sent: Thursday, January 29, 2004 10:01 PM To: OJB Users List Subject: Re: Pbm on MtoNCollectionPrefetcher hi thierry, the problem is now solved in the trunk. see http://article.gmane.org/gmane.comp.jakarta.ojb.devel/5259 hth jakob Thierry Hanot wrote: Hello Thanks for the link , But in the discussion , there is no solution , it just say that we need to convert Jdbc types ... Any guess about when we will have a correction ?. B.R Thierry -Original Message- From: Andy Malakov [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 10:51 PM To: OJB Users List Subject: Re: Pbm on MtoNCollectionPrefetcher Hello Thierry, Here is comment of Jakob Braeuchi in OJB-DEV on the same issue : http://article.gmane.org/gmane.comp.jakarta.ojb.devel/5084 - Original Message - From: Thierry Hanot [EMAIL PROTECTED] To: 'OJB Users List' [EMAIL PROTECTED] Sent: Thursday, January 22, 2004 3:31 PM Subject: Pbm on MtoNCollectionPrefetcher Hello There is a problem on the MtoNCollectionPrefetcher . Description : Input a MtoN relation in an Oracle database All the ids are SQL NUMBER and are declared as BIGINT in the repository.xml. The problem is that the Prefetecher use a ReportQuery in the method prefetchRelationship but use the class descriptor ( in the associateBatched method ) for generating identity . Identity on Object A using the ReportQuery : 2 BigInteger ( using the JdbcTypesHelper and the MetaDatas of the statement ) Identity on Object A using the ClassDescriptor : 2 Long The equal method of the identity return false even with the same ids ... So access to the maps childMap and ownerIdsToLists ( in associateBatched ) cause NPE because returning null values . I think may be the mapping of the good type of the ReportQuery result is missing ??? Here is a part of the stack : org.apache.ojb.broker.accesslayer.MtoNCollectionPrefetcher.associateBa tched( MtoNCollectionPrefetcher.java:363) at org.apache.ojb.broker.accesslayer.MtoNCollectionPrefetcher.prefetchRel ations hip(MtoNCollectionPrefetcher.java:126) at org.apache.ojb.broker.core.QueryReferenceBroker$PBPrefetchingListener. prefet ch(QueryReferenceBroker.java:837) at org.apache.ojb.broker.core.QueryReferenceBroker$PBCollectionProxyListe ner.be foreLoading(QueryReferenceBroker.java:894) at org.apache.ojb.broker.accesslayer.CollectionProxy.beforeLoading(Collec tionPr oxy.java:173) at org.apache.ojb.broker.accesslayer.CollectionProxy.getData(CollectionPr oxy.ja va:400) at org.apache.ojb.broker.accesslayer.CollectionProxy.iterator(CollectionP roxy.j ava:230) B.R Thierry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Pbm on MtoNCollectionPrefetcher
It seems to work fine ... Is the lastest version more like a 1.0 release Or a 1.0 RC06 ??? -Original Message- From: Thierry Hanot [mailto:[EMAIL PROTECTED] Sent: Friday, January 30, 2004 9:03 AM To: 'OJB Users List' Subject: RE: Pbm on MtoNCollectionPrefetcher Thks Jacob I 'll test it rigth now :) B.R Thierry -Original Message- From: Jakob Braeuchi [mailto:[EMAIL PROTECTED] Sent: Thursday, January 29, 2004 10:01 PM To: OJB Users List Subject: Re: Pbm on MtoNCollectionPrefetcher hi thierry, the problem is now solved in the trunk. see http://article.gmane.org/gmane.comp.jakarta.ojb.devel/5259 hth jakob Thierry Hanot wrote: Hello Thanks for the link , But in the discussion , there is no solution , it just say that we need to convert Jdbc types ... Any guess about when we will have a correction ?. B.R Thierry -Original Message- From: Andy Malakov [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 10:51 PM To: OJB Users List Subject: Re: Pbm on MtoNCollectionPrefetcher Hello Thierry, Here is comment of Jakob Braeuchi in OJB-DEV on the same issue : http://article.gmane.org/gmane.comp.jakarta.ojb.devel/5084 - Original Message - From: Thierry Hanot [EMAIL PROTECTED] To: 'OJB Users List' [EMAIL PROTECTED] Sent: Thursday, January 22, 2004 3:31 PM Subject: Pbm on MtoNCollectionPrefetcher Hello There is a problem on the MtoNCollectionPrefetcher . Description : Input a MtoN relation in an Oracle database All the ids are SQL NUMBER and are declared as BIGINT in the repository.xml. The problem is that the Prefetecher use a ReportQuery in the method prefetchRelationship but use the class descriptor ( in the associateBatched method ) for generating identity . Identity on Object A using the ReportQuery : 2 BigInteger ( using the JdbcTypesHelper and the MetaDatas of the statement ) Identity on Object A using the ClassDescriptor : 2 Long The equal method of the identity return false even with the same ids ... So access to the maps childMap and ownerIdsToLists ( in associateBatched ) cause NPE because returning null values . I think may be the mapping of the good type of the ReportQuery result is missing ??? Here is a part of the stack : org.apache.ojb.broker.accesslayer.MtoNCollectionPrefetcher.associateBa tched( MtoNCollectionPrefetcher.java:363) at org.apache.ojb.broker.accesslayer.MtoNCollectionPrefetcher.prefetchRel ations hip(MtoNCollectionPrefetcher.java:126) at org.apache.ojb.broker.core.QueryReferenceBroker$PBPrefetchingListener. prefet ch(QueryReferenceBroker.java:837) at org.apache.ojb.broker.core.QueryReferenceBroker$PBCollectionProxyListe ner.be foreLoading(QueryReferenceBroker.java:894) at org.apache.ojb.broker.accesslayer.CollectionProxy.beforeLoading(Collec tionPr oxy.java:173) at org.apache.ojb.broker.accesslayer.CollectionProxy.getData(CollectionPr oxy.ja va:400) at org.apache.ojb.broker.accesslayer.CollectionProxy.iterator(CollectionP roxy.j ava:230) B.R Thierry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Pbm on MtoNCollectionPrefetcher
Hi Thierry, Thierry Hanot wrote: It seems to work fine ... Is the lastest version more like a 1.0 release Or a 1.0 RC06 ??? Well! We (currently) don't plan a rc6 version. There some unsolved problems with odmg-api and a newly concurrency problem of object materialization with auto-retrieve references in conjunction with ObjectCacheDefaultImpl class. When these problems solved, we will label a new final 1.0 branch from CVS head (All made statements without guarantee ;-)). regards, Armin -Original Message- From: Thierry Hanot [mailto:[EMAIL PROTECTED] Sent: Friday, January 30, 2004 9:03 AM To: 'OJB Users List' Subject: RE: Pbm on MtoNCollectionPrefetcher Thks Jacob I 'll test it rigth now :) B.R Thierry -Original Message- From: Jakob Braeuchi [mailto:[EMAIL PROTECTED] Sent: Thursday, January 29, 2004 10:01 PM To: OJB Users List Subject: Re: Pbm on MtoNCollectionPrefetcher hi thierry, the problem is now solved in the trunk. see http://article.gmane.org/gmane.comp.jakarta.ojb.devel/5259 hth jakob Thierry Hanot wrote: Hello Thanks for the link , But in the discussion , there is no solution , it just say that we need to convert Jdbc types ... Any guess about when we will have a correction ?. B.R Thierry -Original Message- From: Andy Malakov [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 10:51 PM To: OJB Users List Subject: Re: Pbm on MtoNCollectionPrefetcher Hello Thierry, Here is comment of Jakob Braeuchi in OJB-DEV on the same issue : http://article.gmane.org/gmane.comp.jakarta.ojb.devel/5084 - Original Message - From: Thierry Hanot [EMAIL PROTECTED] To: 'OJB Users List' [EMAIL PROTECTED] Sent: Thursday, January 22, 2004 3:31 PM Subject: Pbm on MtoNCollectionPrefetcher Hello There is a problem on the MtoNCollectionPrefetcher . Description : Input a MtoN relation in an Oracle database All the ids are SQL NUMBER and are declared as BIGINT in the repository.xml. The problem is that the Prefetecher use a ReportQuery in the method prefetchRelationship but use the class descriptor ( in the associateBatched method ) for generating identity . Identity on Object A using the ReportQuery : 2 BigInteger ( using the JdbcTypesHelper and the MetaDatas of the statement ) Identity on Object A using the ClassDescriptor : 2 Long The equal method of the identity return false even with the same ids ... So access to the maps childMap and ownerIdsToLists ( in associateBatched ) cause NPE because returning null values . I think may be the mapping of the good type of the ReportQuery result is missing ??? Here is a part of the stack : org.apache.ojb.broker.accesslayer.MtoNCollectionPrefetcher.associateBa tched( MtoNCollectionPrefetcher.java:363) at org.apache.ojb.broker.accesslayer.MtoNCollectionPrefetcher.prefetchRel ations hip(MtoNCollectionPrefetcher.java:126) at org.apache.ojb.broker.core.QueryReferenceBroker$PBPrefetchingListener. prefet ch(QueryReferenceBroker.java:837) at org.apache.ojb.broker.core.QueryReferenceBroker$PBCollectionProxyListe ner.be foreLoading(QueryReferenceBroker.java:894) at org.apache.ojb.broker.accesslayer.CollectionProxy.beforeLoading(Collec tionPr oxy.java:173) at org.apache.ojb.broker.accesslayer.CollectionProxy.getData(CollectionPr oxy.ja va:400) at org.apache.ojb.broker.accesslayer.CollectionProxy.iterator(CollectionP roxy.j ava:230) B.R Thierry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Pbm on MtoNCollectionPrefetcher
hi thierry, the problem is now solved in the trunk. see http://article.gmane.org/gmane.comp.jakarta.ojb.devel/5259 hth jakob Thierry Hanot wrote: Hello Thanks for the link , But in the discussion , there is no solution , it just say that we need to convert Jdbc types ... Any guess about when we will have a correction ?. B.R Thierry -Original Message- From: Andy Malakov [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 10:51 PM To: OJB Users List Subject: Re: Pbm on MtoNCollectionPrefetcher Hello Thierry, Here is comment of Jakob Braeuchi in OJB-DEV on the same issue : http://article.gmane.org/gmane.comp.jakarta.ojb.devel/5084 - Original Message - From: Thierry Hanot [EMAIL PROTECTED] To: 'OJB Users List' [EMAIL PROTECTED] Sent: Thursday, January 22, 2004 3:31 PM Subject: Pbm on MtoNCollectionPrefetcher Hello There is a problem on the MtoNCollectionPrefetcher . Description : Input a MtoN relation in an Oracle database All the ids are SQL NUMBER and are declared as BIGINT in the repository.xml. The problem is that the Prefetecher use a ReportQuery in the method prefetchRelationship but use the class descriptor ( in the associateBatched method ) for generating identity . Identity on Object A using the ReportQuery : 2 BigInteger ( using the JdbcTypesHelper and the MetaDatas of the statement ) Identity on Object A using the ClassDescriptor : 2 Long The equal method of the identity return false even with the same ids ... So access to the maps childMap and ownerIdsToLists ( in associateBatched ) cause NPE because returning null values . I think may be the mapping of the good type of the ReportQuery result is missing ??? Here is a part of the stack : org.apache.ojb.broker.accesslayer.MtoNCollectionPrefetcher.associateBa tched( MtoNCollectionPrefetcher.java:363) at org.apache.ojb.broker.accesslayer.MtoNCollectionPrefetcher.prefetchRelations hip(MtoNCollectionPrefetcher.java:126) at org.apache.ojb.broker.core.QueryReferenceBroker$PBPrefetchingListener.prefet ch(QueryReferenceBroker.java:837) at org.apache.ojb.broker.core.QueryReferenceBroker$PBCollectionProxyListener.be foreLoading(QueryReferenceBroker.java:894) at org.apache.ojb.broker.accesslayer.CollectionProxy.beforeLoading(CollectionPr oxy.java:173) at org.apache.ojb.broker.accesslayer.CollectionProxy.getData(CollectionProxy.ja va:400) at org.apache.ojb.broker.accesslayer.CollectionProxy.iterator(CollectionProxy.j ava:230) B.R Thierry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Pbm on MtoNCollectionPrefetcher
Hello Thanks for the link , But in the discussion , there is no solution , it just say that we need to convert Jdbc types ... Any guess about when we will have a correction ?. B.R Thierry -Original Message- From: Andy Malakov [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 10:51 PM To: OJB Users List Subject: Re: Pbm on MtoNCollectionPrefetcher Hello Thierry, Here is comment of Jakob Braeuchi in OJB-DEV on the same issue : http://article.gmane.org/gmane.comp.jakarta.ojb.devel/5084 - Original Message - From: Thierry Hanot [EMAIL PROTECTED] To: 'OJB Users List' [EMAIL PROTECTED] Sent: Thursday, January 22, 2004 3:31 PM Subject: Pbm on MtoNCollectionPrefetcher Hello There is a problem on the MtoNCollectionPrefetcher . Description : Input a MtoN relation in an Oracle database All the ids are SQL NUMBER and are declared as BIGINT in the repository.xml. The problem is that the Prefetecher use a ReportQuery in the method prefetchRelationship but use the class descriptor ( in the associateBatched method ) for generating identity . Identity on Object A using the ReportQuery : 2 BigInteger ( using the JdbcTypesHelper and the MetaDatas of the statement ) Identity on Object A using the ClassDescriptor : 2 Long The equal method of the identity return false even with the same ids ... So access to the maps childMap and ownerIdsToLists ( in associateBatched ) cause NPE because returning null values . I think may be the mapping of the good type of the ReportQuery result is missing ??? Here is a part of the stack : org.apache.ojb.broker.accesslayer.MtoNCollectionPrefetcher.associateBa tched( MtoNCollectionPrefetcher.java:363) at org.apache.ojb.broker.accesslayer.MtoNCollectionPrefetcher.prefetchRelations hip(MtoNCollectionPrefetcher.java:126) at org.apache.ojb.broker.core.QueryReferenceBroker$PBPrefetchingListener.prefet ch(QueryReferenceBroker.java:837) at org.apache.ojb.broker.core.QueryReferenceBroker$PBCollectionProxyListener.be foreLoading(QueryReferenceBroker.java:894) at org.apache.ojb.broker.accesslayer.CollectionProxy.beforeLoading(CollectionPr oxy.java:173) at org.apache.ojb.broker.accesslayer.CollectionProxy.getData(CollectionProxy.ja va:400) at org.apache.ojb.broker.accesslayer.CollectionProxy.iterator(CollectionProxy.j ava:230) B.R Thierry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Pbm on MtoNCollectionPrefetcher
Hello There is a problem on the MtoNCollectionPrefetcher . Description : Input a MtoN relation in an Oracle database All the ids are SQL NUMBER and are declared as BIGINT in the repository.xml. The problem is that the Prefetecher use a ReportQuery in the method prefetchRelationship but use the class descriptor ( in the associateBatched method ) for generating identity . Identity on Object A using the ReportQuery : 2 BigInteger ( using the JdbcTypesHelper and the MetaDatas of the statement ) Identity on Object A using the ClassDescriptor : 2 Long The equal method of the identity return false even with the same ids ... So access to the maps childMap and ownerIdsToLists ( in associateBatched ) cause NPE because returning null values . I think may be the mapping of the good type of the ReportQuery result is missing ??? Here is a part of the stack : org.apache.ojb.broker.accesslayer.MtoNCollectionPrefetcher.associateBatched( MtoNCollectionPrefetcher.java:363) at org.apache.ojb.broker.accesslayer.MtoNCollectionPrefetcher.prefetchRelations hip(MtoNCollectionPrefetcher.java:126) at org.apache.ojb.broker.core.QueryReferenceBroker$PBPrefetchingListener.prefet ch(QueryReferenceBroker.java:837) at org.apache.ojb.broker.core.QueryReferenceBroker$PBCollectionProxyListener.be foreLoading(QueryReferenceBroker.java:894) at org.apache.ojb.broker.accesslayer.CollectionProxy.beforeLoading(CollectionPr oxy.java:173) at org.apache.ojb.broker.accesslayer.CollectionProxy.getData(CollectionProxy.ja va:400) at org.apache.ojb.broker.accesslayer.CollectionProxy.iterator(CollectionProxy.j ava:230) B.R Thierry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Pbm on MtoNCollectionPrefetcher
Hello Thierry, Here is comment of Jakob Braeuchi in OJB-DEV on the same issue : http://article.gmane.org/gmane.comp.jakarta.ojb.devel/5084 - Original Message - From: Thierry Hanot [EMAIL PROTECTED] To: 'OJB Users List' [EMAIL PROTECTED] Sent: Thursday, January 22, 2004 3:31 PM Subject: Pbm on MtoNCollectionPrefetcher Hello There is a problem on the MtoNCollectionPrefetcher . Description : Input a MtoN relation in an Oracle database All the ids are SQL NUMBER and are declared as BIGINT in the repository.xml. The problem is that the Prefetecher use a ReportQuery in the method prefetchRelationship but use the class descriptor ( in the associateBatched method ) for generating identity . Identity on Object A using the ReportQuery : 2 BigInteger ( using the JdbcTypesHelper and the MetaDatas of the statement ) Identity on Object A using the ClassDescriptor : 2 Long The equal method of the identity return false even with the same ids ... So access to the maps childMap and ownerIdsToLists ( in associateBatched ) cause NPE because returning null values . I think may be the mapping of the good type of the ReportQuery result is missing ??? Here is a part of the stack : org.apache.ojb.broker.accesslayer.MtoNCollectionPrefetcher.associateBatched( MtoNCollectionPrefetcher.java:363) at org.apache.ojb.broker.accesslayer.MtoNCollectionPrefetcher.prefetchRelations hip(MtoNCollectionPrefetcher.java:126) at org.apache.ojb.broker.core.QueryReferenceBroker$PBPrefetchingListener.prefet ch(QueryReferenceBroker.java:837) at org.apache.ojb.broker.core.QueryReferenceBroker$PBCollectionProxyListener.be foreLoading(QueryReferenceBroker.java:894) at org.apache.ojb.broker.accesslayer.CollectionProxy.beforeLoading(CollectionPr oxy.java:173) at org.apache.ojb.broker.accesslayer.CollectionProxy.getData(CollectionProxy.ja va:400) at org.apache.ojb.broker.accesslayer.CollectionProxy.iterator(CollectionProxy.j ava:230) B.R Thierry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]