TCK Error NotWritablePropertyException
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache JDO Project > TCK Error NotWritablePropertyException




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    TCK Error NotWritablePropertyException  
Craig L Russell


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-28-07 06:11 PM






[ Post a follow-up to this message ]



    Re: TCK Error NotWritablePropertyException  
Michael Bouschen


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-29-07 12:11 AM

Hi Craig,

I tried your proposal and changed the return type of the getter. The
configuration companyAnnotatedAllRelationshipsFCPM now passes.
I checked it the fix (see revision 560602).

Regards Michael

>  Interesting error.
>
> According to Java, methods
>     public FCDSDentalInsurance getDentalInsurance()
> and
>     public void setDentalInsurance(IDentalInsurance dentalInsurance)
> implement the methods in IEmployee
>     IDentalInsurance getDentalInsurance();
>     void setDentalInsurance(IDentalInsurance dentalInsurance);
> but springbeans doesn't think the methods are paired.
>
> Changing the return type of getDentalInsurance() to IDentalInsurance
> (as is done by should fix it.
>
> I don't have time to fix it just now. I'll pick it up next time I'm
> online.
>
> Craig
>
> [java] 001 error:
> org.springframework.beans.NotWritablePropertyException: Invalid
> property 'dentalInsurance' of bean class
> [org.apache.jdo.tck.pc.companyAnnotatedFC.FCDSFullTimeEmployee]: Bean
> property 'dentalInsurance' is not writable or has an invalid setter
> method. Does the parameter type of the setter match the return type of
> the getter?
>     [java] derby-dsid-companyAnnotatedAllRelationshipsFCPM-junit.txt:
>     [java]     ** Tests run: 001, Time: 002 seconds. Failures: 0,
> Errors: 1
>
> Craig Russell
> Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
> 408 276-5638 mailto:Craig.Russell@sun.com
> P.S. A good JDO? O, Gasp!
>


--
Tech@Spree Engineering GmbH  Tel.: +49/(0)30/235 520-33
Buelowstr. 66                Fax.: +49/(0)30/217 520-12
10783 Berlin                 mailto:mbo.tech@spree.de

Geschaeftsfuehrung: Anna-Kristin Proefrock
Sitz Berlin, Amtsgericht Charlottenburg, HRB 564 52







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:07 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register