当前位置: 代码迷 >> Java Web开发 >> 找不到ibatis中的配置,该如何解决
  详细解决方案

找不到ibatis中的配置,该如何解决

热度:7965   发布时间:2013-02-25 21:22:28
找不到ibatis中的配置
com.ibatis.sqlmap.client.SqlMapException: There is no statement named JyPlanInfoExport.query in this SqlMap.
com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.getMappedStatement(SqlMapExecutorDelegate.java:293)
com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForObject(SqlMapExecutorDelegate.java:557)
com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForObject(SqlMapExecutorDelegate.java:541)
com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForObject(SqlMapSessionImpl.java:106)
org.springframework.orm.ibatis.SqlMapClientTemplate$1.doInSqlMapClient(SqlMapClientTemplate.java:238)
org.springframework.orm.ibatis.SqlMapClientTemplate.execute(SqlMapClientTemplate.java:188)
org.springframework.orm.ibatis.SqlMapClientTemplate.queryForObject(SqlMapClientTemplate.java:236)
com.heer.jy.plan.dao.impl.JyPlanInfoExportSqlMapDAO.query(JyPlanInfoExportSqlMapDAO.java:32)
com.heer.jy.plan.service.impl.JyPlanInfoServiceImpl.getJyPlanInfoByByny(JyPlanInfoServiceImpl.java:636)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:203)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:162)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:209)
$Proxy7.getJyPlanInfoByByny(Unknown Source)
com.heer.jy.plan.struts.action.JyPlanInfoAction.export(JyPlanInfoAction.java:1140)


------解决方案--------------------------------------------------------
你在后台调用了JyPlanInfoExport.query这个sql语句,但是sqlmap中没有找到,检查一下名字有没有错
------解决方案--------------------------------------------------------
3L这个xml有没有在sqlMapConfig.xml中配置?

例如:<sqlMap resource="com/test/bean/jyPlanInfoExport.xml" />
------解决方案--------------------------------------------------------
你sqlmap的namespace配置的是JyPlanInfoExport?
  相关解决方案