You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by C....@ads.it on 2006/10/06 18:58:50 UTC

Open quote error diagnostic while parsing a resultMap

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.

Re: Open quote error diagnostic while parsing a resultMap

Posted by C....@ads.it.
Thanks, Larry.
There were some goofy  indistinguishable quote characters :/

Now I get other diagnostics, but this is another story.

larry.meadors@gmail.com scritti il 06/10/2006 19:03:33

> looks like a goofy quote char to me: " instead of "
>
> Larry

Re: Open quote error diagnostic while parsing a resultMap

Posted by Larry Meadors <lm...@apache.org>.
looks like a goofy quote char to me: " instead of "

Larry


On 10/6/06, C.Zecca@ads.it <C....@ads.it> wrote:
>
>
> 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.