com.ibatis.common.jdbc.exception.NestedSQLException:报错
摘要: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类型的就好了
经验:遇到这种错改类型换名字试试吧一下就解决
--- 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类型的就好了
经验:遇到这种错改类型换名字试试吧一下就解决
相关文章
最新发布
阅读排行
热门文章
猜你喜欢