HTTP Status 500 - Request processing failed nested exceptio

                HTTP Status 500 - Request processing failed; nested exception is org.springframework.jdbc.BadSqlGrammarException:


type Exception report


message Request processing failed; nested exception is org.springframework.jdbc.BadSqlGrammarException:


description The server encountered an internal error that prevented it from fulfilling this request.


exception


org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.jdbc.BadSqlGrammarException: 
### Error querying database.  Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'STATUS' in 'field list'
### The error may exist in URL [jar:file:/F:/workForder/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/xinghe-web/WEB-INF/lib/xinghe-base-0.0.1-SNAPSHOT.jar!/com/xinghe/base/model/mapper/TeacherMapper.xml]
### The error may involve defaultParameterMap
### The error occurred while setting parameters
### SQL: SELECT                   ID ,          TEACHER_NAME,          TEACHER_TITLE_ID ,          SCHOOL_ID ,          DEPARTMENT ,          JOB ,          USER_ID ,          CREATE_TIME ,          UPDATE_TIME ,          SEX ,          BIRTHDAY ,          BIRTH_ADDRESS ,          NATIVE_PLACE ,          NATION ,          NATIONALITY_ID ,          AREA_ID ,          HUKOUSER_LOCUS ,          HUKOUSER_TYPE ,          IDCARD_TYPE ,          ID_NO ,          ID_EXPIRY_DATE ,          USER_TYPE_CODE ,          POLITICAL_STATUS ,          HEALTH_CONDITION ,          TAGS ,          DESCRIPTION ,          PLAT_MARK ,          STATUS           ,       (select TRUE_NAME  from auth_user u where u.ID = t.USER_ID) TRUE_NAME,       (select PHOTO from auth_user u where u.ID = t.USER_ID) PHOTO      FROM xg_teacher t      WHERE ID IN        (SELECT OBJECT_ID FROM (SELECT OBJECT_ID FROM xg_recommend WHERE REC_TYPE = 0 ORDER BY CREATE_TIME LIMIT 5) AS r) ;
### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'STATUS' in 'field list'
; bad SQL grammar []; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'STATUS' in 'field list'
 org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:965)
 org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:844)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
 org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:829)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
 org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
 com.auth.filter.AuthorizationFilter.doFilterInternal(AuthorizationFilter.java:77)
 org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)
 org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)
 org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)
 com.auth.filter.AuthenticationFilter.doFilterInternal(AuthenticationFilter.java:111)
 org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)
 org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)
 org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)
 org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
 org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)
root cause


org.springframework.jdbc.BadSqlGrammarException: 
### Error querying database.  Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'STATUS' in 'field list'
### The error may exist in URL [jar:file:/F:/workForder/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/xinghe-web/WEB-INF/lib/xinghe-base-0.0.1-SNAPSHOT.jar!/com/xinghe/base/model/mapper/TeacherMapper.xml]
### The error may involve defaultParameterMap
### The error occurred while setting parameters
### SQL: SELECT                   ID ,          TEACHER_NAME,          TEACHER_TITLE_ID ,          SCHOOL_ID ,          DEPARTMENT ,          JOB ,          USER_ID ,          CREATE_TIME ,          UPDATE_TIME ,          SEX ,          BIRTHDAY ,          BIRTH_ADDRESS ,          NATIVE_PLACE ,          NATION ,          NATIONALITY_ID ,          AREA_ID ,          HUKOUSER_LOCUS ,          HUKOUSER_TYPE ,          IDCARD_TYPE ,          ID_NO ,          ID_EXPIRY_DATE ,          USER_TYPE_CODE ,          POLITICAL_STATUS ,          HEALTH_CONDITION ,          TAGS ,          DESCRIPTION ,          PLAT_MARK ,          STATUS           ,       (select TRUE_NAME  from auth_user u where u.ID = t.USER_ID) TRUE_NAME,       (select PHOTO from auth_user u where u.ID = t.USER_ID) PHOTO      FROM xg_teacher t      WHERE ID IN        (SELECT OBJECT_ID FROM (SELECT OBJECT_ID FROM xg_recommend WHERE REC_TYPE = 0 ORDER BY CREATE_TIME LIMIT 5) AS r) ;
### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'STATUS' in 'field list'
; bad SQL grammar []; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'STATUS' in 'field list'
 org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate(SQLErrorCodeSQLExceptionTranslator.java:237)
 org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:72)
 org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:73)
 org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:371)
 com.sun.proxy.$Proxy12.selectList(Unknown Source)
 org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:191)
 com.xinghe.base.dao.TeacherDao.teacherRecommendSelect(TeacherDao.java:49)
 com.xinghe.base.service.TeacherManager.teacherRecommendSelect(TeacherManager.java:44)
 com.xinghe.base.service.TeacherManager
FastClassBySpringCGLIB FastClassBySpringCGLIB
9d3443c0.teacherRecommendSelect()
 com.xinghe.base.action.TeacherPublic.teacherRecommendSelect(TeacherPublic.java:37)
 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 java.lang.reflect.Method.invoke(Unknown Source)
 org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
 org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:440)
 org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:428)
 org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:919)
 org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:851)
 org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:953)
 org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:844)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
 org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:829)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
 org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
 com.auth.filter.AuthorizationFilter.doFilterInternal(AuthorizationFilter.java:77)
 org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)
 org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)
 org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)
 com.auth.filter.AuthenticationFilter.doFilterInternal(AuthenticationFilter.java:111)
 org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)
 org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)
 org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)
 org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
 org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.54 logs.

Apache Tomcat/7.0.54


看错误提示,涉及到了SQL语句,这明显就是SQL语句与数据库表结构不统一导致的问题!

Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'STATUS' in 'field list'

原因:未知的字段“STATUS”,表中缺少字段!

           

再分享一下我老师大神的人工智能教程吧。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow

你可能感兴趣的:(HTTP Status 500 - Request processing failed nested exceptio)