Re: Class Hints

2005-12-07 Thread Chris Worley
Actually I don't think this problem is directly related to class hints. In a previous thread Armin mentioned to me that there was a but that will be fixed in the next released previouse email from Armin: > In the next version of OJB this will be fixed (or try the OJB_1_0_RELEASE branch fro

Class Hints

2005-12-07 Thread Chris Worley
I am having a problem with class hints. They do not seem to work all the time with my configuration. If the PartyContactMech object is stored in the same instance of the server process that I retreive it in PartyContactMech.contactMech is populated with an instance of CPhoneNumber or CPosta

Re: IllegalAccess When Setting Field

2005-12-07 Thread Armin Waibel
Chris Worley wrote: Armin, I removed the dynamic proxy from the class descriptors and every thing works fine. I have not studied them enough to undertand how to handle them. In the upcoming 1.0.4 release it will be possible to use proxy handler classes based on cglib(enabled via OJB.prop

Re: IllegalAccess When Setting Field

2005-12-07 Thread Chris Worley
Armin, I removed the dynamic proxy from the class descriptors and every thing works fine. I have not studied them enough to undertand how to handle them. -chris worley Hi, ok, now we have a more detailed error message: [PersistentField] ERROR: while set field: [try to set 'object value' i

Re: IllegalAccess When Setting Field

2005-12-07 Thread Armin Waibel
Hi, ok, now we have a more detailed error message: [PersistentField] ERROR: while set field: [try to set 'object value' in 'target object' target obj class: net.enterprise.common.model.party.CPartyContactMech target field name: contactMech target field type: class net.enterprise.common.model.con

Re: IllegalAccess When Setting Field

2005-12-07 Thread Chris Worley
Armin, My ojb version is 1.0.3. -chris worley Armin, Here is the complete output at the time the service is invoked. For this I have set all proxies back to dynamic in the class descriptors. If I comment out the reference to the contactMech the party reference gets populated just fine.

Re: IllegalAccess When Setting Field

2005-12-07 Thread Chris Worley
Armin, Here is the complete output at the time the service is invoked. For this I have set all proxies back to dynamic in the class descriptors. If I comment out the reference to the contactMech the party reference gets populated just fine. I am not sure what the deail is with the ContactM

Re: IllegalAccess When Setting Field

2005-12-07 Thread Armin Waibel
Hi Chris, which version of OJB do you use? Normally OJB will generate a more detailed error log when field setting fails. Caused by: org.apache.ojb.broker.metadata.MetadataException: IllegalAccess error setting field:contactMech in object:net.enterprise.common.model.party.CPartyContactMech

Re: IllegalAccess When Setting Field

2005-12-07 Thread Chris Worley
I have now removed proxy="dynamic" from all my class descriptors and I no longer get the exception. After doing some testing. I am finding that sometimes I get the exception, sometimes it works and sometimes the contactMech is populated with an instance of CPhoneNumber (which is what i

Re: IllegalAccess When Setting Field

2005-12-07 Thread Chris Worley
After doing some testing. I am finding that sometimes I get the exception, sometimes it works and sometimes the contactMech is populated with an instance of CPhoneNumber (which is what i want) and sometimes it just populates with CContactMech. CPhoneNumber extends CContactMech. I have mo