You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Rémi Bars <rb...@softeam.fr> on 2004/04/07 11:44:49 UTC
Re: [bug / rc6]
Hi ,
i m trying the rc6 released and i dont understant a "bug"
in my repositery i have something like
<field-descriptor name="_Fichier::_Fabricant" column="fabricant"
jdbc-type="VARCHAR"/>
where _Fichier is an interface (which is instantiate in my constructor) ,
this interface dont have setter and getter to _Fabricant Field but the
instantiate Object have it.
with the rc5 release it works fine, with the rc6 i get this error :
org.apache.ojb.broker.metadata.MetadataException: Can't find member
'_Fichier::_Fabricant'
Why? Something has change? (maybe the introspector)
Remi
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: [bug / rc6]
Posted by Rémi Bars <rb...@softeam.fr>.
I have change my file (take the rc5 version of AbstractPersistentField ) and
it works fine.
I see your code and the new exception in the getFieldRecursive method : if
((c == Object.class) || (c.getSuperclass() == null) || c.isInterface()) {
throw e;}
I need update my code to make it more robust too....
thanks
Remi
----- Original Message -----
From: "Thomas Dudziak" <to...@first.gmd.de>
To: "OJB Users List" <oj...@db.apache.org>
Sent: Wednesday, April 07, 2004 2:06 PM
Subject: Re: [bug / rc6]
>> Recently I've made some changes to the AbstractPersistentField that makes
> it more robust in the case of the usage of interfaces with nested fields
> (see this
> thread:
http://nagoya.apache.org/eyebrowse/BrowseList?listName=ojb-user@db.apache.org&by=thread&from=735638).
>
> So, you could try the current CVS version and check whether your problem
> is fixed there.
>
> Tom
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: [bug / rc6]
Posted by Thomas Dudziak <to...@first.gmd.de>.
On Wed, 7 Apr 2004, [iso-8859-1] R�mi Bars wrote:
> i use :
> PersistentFieldClass=org.apache.ojb.broker.metadata.fieldaccess.PersistentFi
> eldIntrospectorImpl
>
> stacktrace :
> org.apache.ojb.broker.metadata.MetadataException: Can't find member
> '_Fichier::_Fabricant' in ConsultationServeur
>
> at
> org.apache.ojb.broker.metadata.fieldaccess.AbstractPersistentField.computeFi
> eld(AbstractPersistentField.java:166)
Recently I've made some changes to the AbstractPersistentField that makes
it more robust in the case of the usage of interfaces with nested fields
(see this
thread: http://nagoya.apache.org/eyebrowse/BrowseList?listName=ojb-user@db.apache.org&by=thread&from=735638).
So, you could try the current CVS version and check whether your problem
is fixed there.
Tom
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: [bug / rc6]
Posted by Rémi Bars <rb...@softeam.fr>.
i use :
PersistentFieldClass=org.apache.ojb.broker.metadata.fieldaccess.PersistentFi
eldIntrospectorImpl
stacktrace :
org.apache.ojb.broker.metadata.MetadataException: Can't find member
'_Fichier::_Fabricant' in ConsultationServeur
at
org.apache.ojb.broker.metadata.fieldaccess.AbstractPersistentField.computeFi
eld(AbstractPersistentField.java:166)
at
org.apache.ojb.broker.metadata.fieldaccess.AbstractPersistentField.getField(
AbstractPersistentField.java:131)
at
org.apache.ojb.broker.metadata.fieldaccess.AbstractPersistentField.set(Abstr
actPersistentField.java:91)
at
org.apache.ojb.broker.accesslayer.RowReaderDefaultImpl.buildWithReflection(R
owReaderDefaultImpl.java:240)
at
org.apache.ojb.broker.accesslayer.RowReaderDefaultImpl.readObjectFrom(RowRea
derDefaultImpl.java:77)
at
org.apache.ojb.broker.accesslayer.RsIterator.getObjectFromResultSet(RsIterat
or.java:441)
at org.apache.ojb.broker.accesslayer.RsIterator.next(RsIterator.java:265)
at
org.apache.ojb.broker.core.QueryReferenceBroker.getCollectionByQuery(QueryRe
ferenceBroker.java:107)
at
org.apache.ojb.broker.core.QueryReferenceBroker.getCollectionByQuery(QueryRe
ferenceBroker.java:203)
at
org.apache.ojb.broker.core.PersistenceBrokerImpl.getCollectionByQuery(Persis
tenceBrokerImpl.java:1197)
at
org.apache.ojb.broker.core.DelegatingPersistenceBroker.getCollectionByQuery(
DelegatingPersistenceBroker.java:321)
at
org.apache.ojb.broker.core.DelegatingPersistenceBroker.getCollectionByQuery(
DelegatingPersistenceBroker.java:321)
at org.apache.ojb.odmg.oql.OQLQueryImpl.execute(OQLQueryImpl.java:246)
at Gestionnaire.main(Gestionnaire.java:1743)
Caused by: java.lang.NoSuchFieldException: _Fabricant
at java.lang.Class.getField0(Class.java:1735)
at java.lang.Class.getDeclaredField(Class.java:1189)
at
org.apache.ojb.broker.metadata.fieldaccess.AbstractPersistentField.getFieldR
ecursive(AbstractPersistentField.java:178)
at
org.apache.ojb.broker.metadata.fieldaccess.AbstractPersistentField.getNested
RecursiveField(AbstractPersistentField.java:211)
at
org.apache.ojb.broker.metadata.fieldaccess.AbstractPersistentField.getNested
RecursiveField(AbstractPersistentField.java:207)
at
org.apache.ojb.broker.metadata.fieldaccess.AbstractPersistentField.computeFi
eld(AbstractPersistentField.java:151)
... 17 more
----- Original Message -----
From: "Thomas Dudziak" <to...@first.gmd.de>
To: "OJB Users List" <oj...@db.apache.org>
Sent: Wednesday, April 07, 2004 11:57 AM
Subject: Re: [bug / rc6]
> On Wed, 7 Apr 2004, [iso-8859-1] Rémi Bars wrote:
>
> > Hi ,
> >
> > i m trying the rc6 released and i dont understant a "bug"
> >
> > in my repositery i have something like
> > <field-descriptor name="_Fichier::_Fabricant" column="fabricant"
> > jdbc-type="VARCHAR"/>
> >
> > where _Fichier is an interface (which is instantiate in my constructor)
,
> > this interface dont have setter and getter to _Fabricant Field but the
> > instantiate Object have it.
> >
> > with the rc5 release it works fine, with the rc6 i get this error :
> > org.apache.ojb.broker.metadata.MetadataException: Can't find member
> > '_Fichier::_Fabricant'
> >
> > Why? Something has change? (maybe the introspector)
>
> Which PersistentFieldImpl do you use ? Could you post the stacktrace ?
>
> Tom
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: [bug / rc6]
Posted by Thomas Dudziak <to...@first.gmd.de>.
On Wed, 7 Apr 2004, [iso-8859-1] R�mi Bars wrote:
> Hi ,
>
> i m trying the rc6 released and i dont understant a "bug"
>
> in my repositery i have something like
> <field-descriptor name="_Fichier::_Fabricant" column="fabricant"
> jdbc-type="VARCHAR"/>
>
> where _Fichier is an interface (which is instantiate in my constructor) ,
> this interface dont have setter and getter to _Fabricant Field but the
> instantiate Object have it.
>
> with the rc5 release it works fine, with the rc6 i get this error :
> org.apache.ojb.broker.metadata.MetadataException: Can't find member
> '_Fichier::_Fabricant'
>
> Why? Something has change? (maybe the introspector)
Which PersistentFieldImpl do you use ? Could you post the stacktrace ?
Tom
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org