当前位置: 代码迷 >> J2EE >> failed; nested exception is org.springframework.core.NestedIOException:
  详细解决方案

failed; nested exception is org.springframework.core.NestedIOException:

热度:519   发布时间:2016-04-22 02:56:31.0
ibatis错误 谁帮我看下 什么原因
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'chgReceivableBillDao' defined in file [D:\MyWork_GDZJ\prolims-aglaia\prolims-std-charge\target\classes\prolims-charge-dao.xml]: Cannot resolve reference to bean 'sqlMapClientCharge' while setting bean property 'sqlMapClient'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClientCharge' defined in file [D:\MyWork_GDZJ\prolims-aglaia\prolims-std-charge\target\classes\prolims-charge-ds.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [charge-sqlmap-config.xml]; nested exception is com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/sql'. Cause: com.ibatis.sqlmap.client.SqlMapException: Duplicate <sql>-include 'RECEIVABLE_BILL.getChgReceivableBillTable' found.

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClientCharge' defined in file [D:\MyWork_GDZJ\prolims-aglaia\prolims-std-charge\target\classes\prolims-charge-ds.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [charge-sqlmap-config.xml]; nested exception is com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/sql'. Cause: com.ibatis.sqlmap.client.SqlMapException: Duplicate <sql>-include 'RECEIVABLE_BILL.getChgReceivableBillTable' found.

Caused by: org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [charge-sqlmap-config.xml]; nested exception is com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/sql'. Cause: com.ibatis.sqlmap.client.SqlMapException: Duplicate <sql>-include 'RECEIVABLE_BILL.getChgReceivableBillTable' found.

Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/sql'. Cause: com.ibatis.sqlmap.client.SqlMapException: Duplicate <sql>-include 'RECEIVABLE_BILL.getChgReceivableBillTable' found.
at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:62)
at com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:62)
at com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:55)
at org.springframework.orm.ibatis.SqlMapClientFactoryBean.buildSqlMapClient(SqlMapClientFactoryBean.java:339)
... 48 more
Caused by: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/sql'. Cause: com.ibatis.sqlmap.client.SqlMapException: Duplicate <sql>-include 'RECEIVABLE_BILL.getChgReceivableBillTable' found.
at com.ibatis.common.xml.NodeletParser.processNodelet(NodeletParser.java:123)
at com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:84)
at com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:102)
at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:72)
  相关解决方案