Firstly, the XML is not correctly formed, it should be:
<entry key="0" value-ref="someMap"/>
Also, according to your definition, someMapRef bean map can only contain values โโof type java.util.HashMap , but you are trying to set the value for the key 0 of SOME VALUE , which is String. It may contain strings or hashMaps, but not both.
source share