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/25 14:42:16 UTC
RE: Problems with the typeHandler property: order of declaration!
Thanks, Niels
You were right.
The declaration order of the properties is important.
Now
<typeHandler javaType ...
comes before
<transactionManager type="JDBC">
...
and it works.
"Niels Beekman"
<n.beekman@wis.nl
> Per
<us...@ibatis.apache.org>
25/10/2006 12:58 CC
Oggetto
Per favore, RE: Problems with the typeHandler
rispondere a property
user-java@ibatis.
apache.org
The element order is probably wrong, the exception tells it all. If you
cannot figure it out, post the rest of your config.
Niels
From: c.zecca@ads.it [mailto:c.zecca@ads.it]
Sent: woensdag 25 oktober 2006 12:37
To: user-java@ibatis.apache.org
Subject: Problems with the typeHandler property
Hi all
I've added the following typeHandler declaration in the sql-map-config file
<typeHandler javaType="it.finmatica.gpj.ec.frontebd.TipoBD"
jdbcType="VARCHAR"
callback="it.finmatica.gpj.ec.frontebd.TipoBDTypeHandlerCallback" />
and it is not successfully parsed anymore.
Here is the diagnistic:
com.ibatis.common.exception.NestedRuntimeException: Error occurred. Cause:
com.ibatis.common.xml.NodeletException: Error parsing XML. Cause:
org.xml.sax.SAXParseException: The content of element type "sqlMapConfig"
must match
"(properties?,settings?,typeAlias*,typeHandler*,transactionManager?,sqlMap+)+".
Caused by: org.xml.sax.SAXParseException: The content of element type
"sqlMapConfig" must match
"(properties?,settings?,typeAlias*,typeHandler*,transactionManager?,sqlMap+)+".
Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML.
Cause: org.xml.sax.SAXParseException: The content of element type
"sqlMapConfig" must match
"(properties?,settings?,typeAlias*,typeHandler*,transactionManager?,sqlMap+)+".
Caused by: org.xml.sax.SAXParseException: The content of element type
"sqlMapConfig" must match
"(properties?,settings?,typeAlias*,typeHandler*,transactionManager?,sqlMap+)+".
at com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(
SqlMapConfigParser.java:81)
What's wrong?
I use iBatis.2.1.7_597
Thanks in advance for any help
Cesare