当前位置: 代码迷 >> Java Web开发 >> Spring3.11与Ibatis2.3.2一对一查询有关问题
  详细解决方案

Spring3.11与Ibatis2.3.2一对一查询有关问题

热度:10000   发布时间:2013-02-25 21:19:15.0
Spring3.11与Ibatis2.3.2一对一查询问题
Java code
2012-05-30 08:46:41,366 DEBUG [java.sql.PreparedStatement] - <{pstm-100007} Executing Statement:            select id, to_char(found_date,'yyyy-mm-dd') found_date, linkemail, linkman, linklphone, edu_major_id, note, status from Kaoqu_info where status!=0             >2012-05-30 08:46:41,366 DEBUG [java.sql.PreparedStatement] - <{pstm-100007} Parameters: []>2012-05-30 08:46:41,366 DEBUG [java.sql.PreparedStatement] - <{pstm-100007} Types: []>2012-05-30 08:46:41,396 DEBUG [java.sql.ResultSet] - <{rset-100008} ResultSet>2012-05-30 08:46:41,516 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - <Loading XML bean definitions from class path resource [org/springframework/jdbc/support/sql-error-codes.xml]>2012-05-30 08:46:41,656 INFO [org.springframework.jdbc.support.SQLErrorCodesFactory] - <SQLErrorCodes loaded: [DB2, Derby, H2, HSQL, Informix, MS-SQL, MySQL, Oracle, PostgreSQL, Sybase]>2012-5-30 8:46:41 org.apache.catalina.core.ApplicationDispatcher invoke严重: Servlet.service() for servlet spring threw exceptionjava.lang.NullPointerException    at java.lang.Class.isAssignableFrom(Native Method)    at com.ibatis.sqlmap.engine.type.TypeHandlerFactory.getTypeHandler(TypeHandlerFactory.java:143)    at com.ibatis.sqlmap.engine.type.TypeHandlerFactory.getTypeHandler(TypeHandlerFactory.java:123)    at com.ibatis.sqlmap.engine.mapping.result.ResultMap.prepareBeanParameterObject(ResultMap.java:591)    at com.ibatis.sqlmap.engine.mapping.result.ResultMap.getNestedSelectMappingValue(ResultMap.java:475)    at com.ibatis.sqlmap.engine.mapping.result.ResultMap.getResults(ResultMap.java:341)    at com.ibatis.sqlmap.engine.execution.SqlExecutor.handleResults(SqlExecutor.java:384)    at com.ibatis.sqlmap.engine.execution.SqlExecutor.handleMultipleResults(SqlExecutor.java:300)    at com.ibatis.sqlmap.engine.execution.SqlExecutor.executeQuery(SqlExecutor.java:189)    at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.sqlExecuteQuery(MappedStatement.java:221)    at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryWithCallback(MappedStatement.java:189)    at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryForList(MappedStatement.java:139)    at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:567)    at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:541)    at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForList(SqlMapSessionImpl.java:118)    at org.springframework.orm.ibatis.SqlMapClientTemplate$3.doInSqlMapClient(SqlMapClientTemplate.java:295)    at org.springframework.orm.ibatis.SqlMapClientTemplate$3.doInSqlMapClient(SqlMapClientTemplate.java:1)    at org.springframework.orm.ibatis.SqlMapClientTemplate.execute(SqlMapClientTemplate.java:200)    at org.springframework.orm.ibatis.SqlMapClientTemplate.queryForList(SqlMapClientTemplate.java:293)    at com.ibatisdao.IbatisDaoImpl.QueryAll(IbatisDaoImpl.java:16)    at com.major_info.dao.major_infoDaoImpl.getAllKaoqu_info(major_infoDaoImpl.java:37)    at com.major_info.biz.Imajor_infoBizImpl.getAllKaoqu_info(Imajor_infoBizImpl.java:29)    at com.major_info.controller.getAllEdu_infoController.SelectAll(getAllEdu_infoController.java:69)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)    at java.lang.reflect.Method.invoke(Method.java:597)    at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:213)    at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:126)    at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:96)    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:617)    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:578)    at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:445)    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292)    at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:694)    at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:665)    at org.apache.jsp.index_jsp._jspService(index_jsp.java:68)    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)    at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)    at java.lang.Thread.run(Thread.java:619)
  相关解决方案