The following X;ML config code
<sqlMap namespace="GPJ">
<resultMap id=”get_key_2_resultMap” class=”it.finmatica.gpj.aa.frontebd.ChiaveBean”>
<result property=”id” column=”tipo_dato_ID” jdbcType=”INTEGER” javaType=”java.lang.Integer”/>
</resultMap>
<procedure id="proc_get_key_2_resultMap" resultMap="get_key_2_resultMap">
{ ? = call ut_Foo.get_key_2 }
</procedure>
</sqlMap>
raises the following exception
Open quote is expected for attribute "id" associated with an element type "resultMap"
Here below the top of the diagnostic messages.
com.ibatis.common.exception.NestedRuntimeException: Error occurred. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: com.ibatis.common.exception.NestedRuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: org.xml.sax.SAXParseException: Open quote is expected for attribute "id" associated with an element type "resultMap".
Caused by: org.xml.sax.SAXParseException: Open quote is expected for attribute "id" associated with an element type "resultMap".
that is reported when loading the sql-map-congix.xml file (call to SqlMapClientBuilder.buildSqlMapClient() )
Has anybody an explanation?
I havet't undestood it ( the resultMap id=”get_key_2_resultMap” attribute is correctly opened and closed by a quote '"' character...)
Thanks in advance for any help.
- Open quote error diagnostic while parsing a resultMap C . Zecca
