[cas-dev] MapBackedAttributeRepository

Scott Battaglia scott.battaglia at gmail.com
Fri Jun 1 17:29:18 EDT 2007


The problem is the setter and getter have different return
values/parameters.  I didn't realize that.  I'll have to fix that over the
weekend.

-Scott

On 6/1/07, Marvin S. Addison <serac at exchange.vt.edu> wrote:
>
> I'm trying to instantiate MapBackedAttributeRepository in Spring IOC
> container, and getting the following error:
>
> NotWritablePropertyException: Invalid property 'attributes' of bean
> class [org.jasig.cas.services.MapBackedAttributeRepository]: Bean
> property 'attributes' is not writable or has an invalid setter method.
> Does the parameter type of the setter match the return type of the
> getter?
>
> Bean XML:
>
> <bean id="attributeRepository"
>   class="org.jasig.cas.services.MapBackedAttributeRepository">
>   <property name="attributes">
>   <map>
>   <entry key="uid">
>     <bean class="org.jasig.cas.services.Attribute">
>     <property name="id" value="uid" />
>     <property name="name" value="uid" />
>     </bean>
>   </entry>
>   <entry key="eduPersonAffiliation">
>     <bean class="org.jasig.cas.services.Attribute">
>     <property name="id" value="eduPersonAffiliation" />
>     <property name="name" value="eduPersonAffiliation" />
>     </bean>
>   </entry>
>   <entry key="groupMembership">
>     <bean class="org.jasig.cas.services.Attribute">
>     <property name="id" value="groupMembership" />
>     <property name="name" value="groupMembership" />
>     </bean>
>   </entry>
>   </map>
>   </property>
> </bean>
>
> Can anyone recommend a fix or point me at an example of how to
> instantiate one of these?
>
> Thanks,
> Marvin Addison
> --
> Application Developer
> Middleware Services
> Virginia Tech
> _______________________________________________
> cas-dev mailing list
> cas-dev at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas-dev
>



-- 
-Scott Battaglia

LinkedIn: http://www.linkedin.com/in/scottbattaglia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas-dev/attachments/20070601/8bab3e53/attachment.html 


More information about the cas-dev mailing list