异常求解决..SSI框架结构org.springframework.jdbc.BadSqlGrammarException

问题描述

爆异常的SQL:selectnounName,nounvaluefromSYS_NounwherenounSuper='0169'andnounvalidity='1'orderbyNOUNORDER,nounid是拼装的SQL报出的异常:org.springframework.jdbc.BadSqlGrammarException:SqlMapClientoperation;badSQLgrammar[];nestedexceptioniscom.ibatis.common.jdbc.exception.NestedSQLException:---Theerroroccurredincom/shunde/admin/dict/sqlmap/sysNoun.xml.---Theerroroccurredwhileapplyingaresultmap.---CheckthequeryDictDefinParamBySql-AutoResultMap.---Checktheresultmappingforthe'nounID'property.---Cause:java.sql.SQLException:列名无效atorg.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate(SQLErrorCodeSQLExceptionTranslator.java:220)atorg.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:72)atorg.springframework.orm.ibatis.SqlMapClientTemplate.execute(SqlMapClientTemplate.java:212)atorg.springframework.orm.ibatis.SqlMapClientTemplate.executeWithListResult(SqlMapClientTemplate.java:249)atorg.springframework.orm.ibatis.SqlMapClientTemplate.queryForList(SqlMapClientTemplate.java:296)atcom.shunde.admin.dict.dao.support.DicDaoImpl.getDictList(DicDaoImpl.java:257)atcom.shunde.admin.dict.service.support.DicServiceImpl.queryDictList(DicServiceImpl.java:179)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)atjava.lang.reflect.Method.invoke(Method.java:597)atorg.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)atorg.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)atorg.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)atorg.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)atorg.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)atorg.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)at$Proxy4.queryDictList(UnknownSource)atcom.shunde.common.tags.DictListTag.selectTag(DictListTag.java:130)atcom.shunde.common.tags.DictListTag.doStartTagInternal(DictListTag.java:73)atorg.springframework.web.servlet.tags.RequestContextAwareTag.doStartTag(RequestContextAwareTag.java:77)atorg.apache.jsp.erms.rc.queryItVCustInfo_jsp._jspx_meth_dict_005fdictList_005f1(queryItVCustInfo_jsp.java:738)atorg.apache.jsp.erms.rc.queryItVCustInfo_jsp.access$7(queryItVCustInfo_jsp.java:716)atorg.apache.jsp.erms.rc.queryItVCustInfo_jsp$queryItVCustInfo_jspHelper.invoke1(queryItVCustInfo_jsp.java:1513)atorg.apache.jsp.erms.rc.queryItVCustInfo_jsp$queryItVCustInfo_jspHelper.invoke(queryItVCustInfo_jsp.java:1721)atorg.apache.jsp.tag.web.ptags_005fnew_005fcp.searchlayout_tag.doTag(searchlayout_tag.java:75)atorg.apache.jsp.erms.rc.queryItVCustInfo_jsp._jspx_meth_p_005fsearchlayout_005f0(queryItVCustInfo_jsp.java:637)atorg.apache.jsp.erms.rc.queryItVCustInfo_jsp.access$0(queryItVCustInfo_jsp.java:627)atorg.apache.jsp.erms.rc.queryItVCustInfo_jsp$queryItVCustInfo_jspHelper.invoke0(queryItVCustInfo_jsp.java:1456)atorg.apache.jsp.erms.rc.queryItVCustInfo_jsp$queryItVCustInfo_jspHelper.invoke(queryItVCustInfo_jsp.java:1718)atorg.apache.jsp.tag.web.ptags_005fnew_005fcp.pagelayout_tag.doTag(pagelayout_tag.java:75)atorg.apache.jsp.erms.rc.queryItVCustInfo_jsp._jspService(queryItVCustInfo_jsp.java:388)atorg.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)atjavax.servlet.http.HttpServlet.service(HttpServlet.java:803)atorg.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)atorg.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)atorg.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)atjavax.servlet.http.HttpServlet.service(HttpServlet.java:803)atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)atorg.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:687)atorg.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)atorg.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)atorg.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)atorg.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)atorg.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)atorg.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)atorg.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)atorg.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)atjavax.servlet.http.HttpServlet.service(HttpServlet.java:690)atjavax.servlet.http.HttpServlet.service(HttpServlet.java:803)atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)atcom.shunde.rdp.util.FilterUtil.doFilter(FilterUtil.java:42)atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)atcom.opensymphony.filter.EncodingFilter.doFilter(EncodingFilter.java:47)atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)atcom.shunde.security.LogFilter.doFilter(LogFilter.java:67)atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)atcom.shunde.security.SecurityFilter.doFilter(SecurityFilter.java:92)atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)atorg.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)atorg.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)atorg.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)atorg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)atorg.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)atorg.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)atorg.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)atorg.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)atorg.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)atjava.lang.Thread.run(Thread.java:619)Causedby:com.ibatis.common.jdbc.exception.NestedSQLException:---Theerroroccurredincom/shunde/admin/dict/sqlmap/sysNoun.xml.---Theerroroccurredwhileapplyingaresultmap.---CheckthequeryDictDefinParamBySql-AutoResultMap.---Checktheresultmappingforthe'nounID'property.---Cause:java.sql.SQLException:列名无效atcom.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryWithCallback(MappedStatement.java:201)atcom.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryForList(MappedStatement.java:139)atcom.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:567)atcom.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:541)atcom.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForList(SqlMapSessionImpl.java:118)atorg.springframework.orm.ibatis.SqlMapClientTemplate$3.doInSqlMapClient(SqlMapClientTemplate.java:298)atorg.springframework.orm.ibatis.SqlMapClientTemplate.execute(SqlMapClientTemplate.java:209)...72moreCausedby:java.sql.SQLException:列名无效atoracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:111)atoracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:145)atoracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:207)atoracle.jdbc.driver.OracleStatement.getColumnIndex(OracleStatement.java:3294)atoracle.jdbc.driver.OracleResultSetImpl.findColumn(OracleResultSetImpl.java:1913)atoracle.jdbc.driver.OracleResultSet.getString(OracleResultSet.java:1514)atsun.reflect.GeneratedMethodAccessor36.invoke(UnknownSource)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)atjava.lang.reflect.Method.invoke(Method.java:597)atcom.ibatis.common.jdbc.logging.ResultSetLogProxy.invoke(ResultSetLogProxy.java:47)at$Proxy205.getString(UnknownSource)atcom.ibatis.sqlmap.engine.type.StringTypeHandler.getResult(StringTypeHandler.java:35)atcom.ibatis.sqlmap.engine.mapping.result.ResultMap.getPrimitiveResultMappingValue(ResultMap.java:619)atcom.ibatis.sqlmap.engine.mapping.result.ResultMap.getResults(ResultMap.java:345)atcom.ibatis.sqlmap.engine.mapping.result.AutoResultMap.getResults(AutoResultMap.java:47)atcom.ibatis.sqlmap.engine.execution.SqlExecutor.handleResults(SqlExecutor.java:419)atcom.ibatis.sqlmap.engine.execution.SqlExecutor.handleMultipleResults(SqlExecutor.java:335)atcom.ibatis.sqlmap.engine.execution.SqlExecutor.executeQuery(SqlExecutor.java:224)atcom.ibatis.sqlmap.engine.mapping.statement.MappedStatement.sqlExecuteQuery(MappedStatement.java:221)at

解决方案

时间: 2024-09-20 18:11:31

异常求解决..SSI框架结构org.springframework.jdbc.BadSqlGrammarException的相关文章

关于mybatis的异常 求解决啊~

问题描述 org.apache.ibatis.binding.BindingException:Typeinterfacecom.xue.mapper.MixedMapperisalreadyknowntotheMapperRegistry.org.apache.ibatis.binding.MapperRegistry.addMapper(MapperRegistry.java:53)org.apache.ibatis.session.Configuration.addMapper(Confi

java-tao-ReviewBoard在进行pre-commit的时候报解析日期异常,求解决。。。

问题描述 tao-ReviewBoard在进行pre-commit的时候报解析日期异常,求解决... 解决方案 http://my.oschina.net/donhui/blog/350074

jdbc-java不能连接数据库的问题,求解决,【在线等】

问题描述 java不能连接数据库的问题,求解决,[在线等] 为什么报错? 求大神教教. 解决方案 classpath和jar包是不一样的.你要把mysql的jar包放到项目的lib目录下面.然后在加入classpath 解决方案二: classpath有拼写错误,set | find "mysql" 看看你的jar包加载进去没有. 解决方案三: 你的变量名那里是应该是classpath吧 你少打了字母 解决方案四: 把Exception异常打印出来,不要打印"YOU CUO&

mysql数据库报如下错误,跪求解决

问题描述 mysql数据库报如下错误,跪求解决 --- The error happened while setting a property on the result object. --- Cause: com.ibatis.common.beans.ProbeException: Could not get property 'dynamicFields' from com.aspire.ess.domain.Accounts. Cause: java.lang.ClassCastExc

数据库管理-关于eclipse中将数据导入数据库的中文乱码问题。急求解决

问题描述 关于eclipse中将数据导入数据库的中文乱码问题.急求解决 我也在网上找过相关问题,在eclipse中也改了三个地方的字符编码,以及数据库管理软件中的编码.但是提交到数据库后 ,还是有乱码,全部都是问号,图如下:开发">计算机数据库管理"> 以及代码: <%@page import="java.sql.DriverManager"%> <%@page import="java.sql.PreparedStateme

java配置文件出错了不知道是哪求解决

问题描述 java配置文件出错了不知道是哪求解决 ``` org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [I:workspace.metadata.pluginsorg.eclipse.wst.server.coretmp1wtpwebappscbWEB-INFclassesspring-mvc-a

sping mvc 工程报错,求解决。

问题描述 sping mvc 工程报错,求解决. 大神,帮我看看怎么解决. 严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean wit

mybatis中sql问题求解决

问题描述 mybatis中sql问题求解决 在mysql客户端中执行下面语句 select sk.seckill_id, sk.user_phone, sk.create_time, sk.state, s.seckill_id "seckill.seckill_id", s.name "seckill.name", s.number "seckill.number", s.start_time "seckill.start_time&

编译器-my eclipse求指导,求解决

问题描述 my eclipse求指导,求解决 Compiler compliance level of project my should be6.0. your current workspace default is 5.0. Do you want to use a custom setting for your project 编译器遵从水平的项目我应该be6.0.当前工作区默认为5.要使用自定义设置为您的项目 出现了这个问题 请问大神们改怎么设置 解决方案 原因是你的编译环境的jdk版