Announcement Announcement Module
Collapse
No announcement yet.
AnnotationContext and Dependency injection Map<UUID, String> Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • AnnotationContext and Dependency injection Map<UUID, String>

    Hi All,
    I am trying to inject Map<UUID, Object> through AnnotationConfigApplicationContext,

    But it is throwing error
    ---------------------------------org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'testBean': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Could not autowire field: private java.util.Map com.ses.osp.bs.impl.sy.cv.config.TestBean.abc; nested exception is org.springframework.beans.FatalBeanException: Key type [class java.util.UUID] of map [java.util.Map] must be assignable to [java.lang.String]
    at org.springframework.beans.factory.annotation.Autow iredAnnotationBeanPostProcessor.postProcessPropert yValues(
    ----------------------------------------------------
    I am not sure if this is really bug :
    Caused by: org.springframework.beans.FatalBeanException: Key type [class java.util.UUID] of map [java.util.Map] must be assignable to [java.lang.String]
    -------------------------------------------------------------------------
    I would like to requset Spring specialists to execute attached code and help to identify if this really is a Bug
    Last edited by [email protected]; Dec 24th, 2010, 09:23 AM. Reason: syntax error
Working...
X