Results 1 to 1 of 1

Thread: AnnotationContext and Dependency injection Map<UUID, String>

  1. #1

    Default 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
    Attached Files Attached Files
    Last edited by ravendra.gupta@gmail.com; Dec 24th, 2010 at 09:23 AM. Reason: syntax error

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •