首页 > Java

com.ibatis.common.jdbc.exception.NestedSQLException:报错

发表于2014-09-15 11:30:47| --次阅读| 来源webkfa| 作者小豆豆

摘要:com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in com/webkfa/vo/GuangGaoTag.xml.  
--- The error occurred while applying a result map.  
--- Check the GuangGaoTag.GuangGaoTag.  
--- Check the result mapping for the 'isMainBar' property.  
--- Cause: java.sql.SQLException: Invalid value for getLong() - 'webkfa.key.guanggaoindex'
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:502)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:412)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
root cause

javax.servlet.ServletException: com.ibatis.common.jdbc.exception.NestedSQLException:   
--- The error occurred in com/webkfa/vo/GuangGaoTag.xml.  
--- The error occurred while applying a result map.  
--- Check the GuangGaoTag.GuangGaoTag.  
--- Check the result mapping for the 'isMainBar' property.  
--- Cause: java.sql.SQLException: Invalid value for getLong() - 'webkfa.key.guanggaoindex'
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:868)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:797)
org.apache.jsp.ht.editlink.guanggaoindex_jsp._jspService(guanggaoindex_jsp.java:398)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)


解决办法:
我找了半天配置文件真的没定错,我火了,我直接把isMainBar属性改成了varchar类型的就好了
经验:遇到这种错改类型换名字试试吧一下就解决

相关文章

猜你喜欢

学到老在线代码浏览器 关闭浏览
友情链接: hao123 360导航 搜狗网址导航 114啦网址导航 博客大全
Copyright © 1999-2014, WEBKFA.COM, All Rights Reserved  京ICP备14034497号-1