测试环境下:
[java] 12/15/10 13:47:39 WARN org.
hibernate.util.JDBCExceptionReporter - SQL Error: 1054, SQLState: 42S22
[java] 12/15/10 13:47:39 ERROR org.
hibernate.util.JDBCExceptionReporter - Unknown column 'userinfode0_.HOW_KNOW' in 'field list'
[java] 12/15/10 13:47:39 WARN com.ef.core.engine - Problem in core engine task
[java] com.ef.base.engine.api.EngineServiceException: org.
hibernate.exception.SQLGrammarException: could not execute query
[java] at com.ef.base.engine.services.TaskService.service(TaskService.java:8)
[java] at com.ef.base.engine.services.DispatchService.service(DispatchService.java:13)
[java] at com.ef.base.engine.core.CoreEngine$CoreEngineTask.call(CoreEngine.java:32)
[java] at com.ef.base.engine.core.CoreEngine$CoreEngineTask.call(CoreEngine.java:4)
[java] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
[java] at java.util.concurrent.FutureTask.run(FutureTask.java:138)
[java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[java] at java.lang.Thread.run(Thread.java:619)
[java] Caused by: org.
hibernate.exception.SQLGrammarException: could not execute query
[java] at org.
hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:90)
[java] at org.
hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
[java] at org.
hibernate.loader.Loader.doList(Loader.java:2235)
[java] at org.
hibernate.loader.Loader.listUsingQueryCache(Loader.java:2161)
[java] at org.
hibernate.loader.Loader.list(Loader.java:2121)
[java] at org.
hibernate.loader.hql.QueryLoader.list(QueryLoader.java:401)
[java] at org.
hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:363)
[java] at org.
hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)
[java] at org.
hibernate.impl.SessionImpl.list(SessionImpl.java:1149)
[java] at org.
hibernate.impl.QueryImpl.list(QueryImpl.java:102)
[java] at com.ef.fw.engine.dao.impl.UserInfoDetailDAOImpl.getUserInfoDetail(UserInfoDetailDAOImpl.java:33)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:597)
[java] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
[java] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
[java] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
[java] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
[java] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
[java] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
[java] at $Proxy47.getUserInfoDetail(Unknown Source)
[java] at com.ef.core.plugin.userinfodetail.UserInfoDetailMsg.call(UserInfoDetailMsg.java:14)
[java] at com.ef.base.engine.services.TaskService.service(TaskService.java:19)
[java] ... 8 more
[java] Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'userinfode0_.HOW_KNOW' in 'field list'
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[java] at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
[java] at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
[java] at com.mysql.jdbc.Util.getInstance(Util.java:384)
[java] at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1054)
[java] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3562)
[java] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3494)
[java] at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1960)
[java] at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2114)
[java] at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2696)
[java] at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2105)
[java] at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2264)
[java] at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
[java] at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
[java] at org.
hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:208)
[java] at org.
hibernate.loader.Loader.getResultSet(Loader.java:1812)
[java] at org.
hibernate.loader.Loader.doQuery(Loader.java:697)
[java] at org.
hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
[java] at org.
hibernate.loader.Loader.doList(Loader.java:2232)
原因是:
1、sql语法错误
2、表数据缺失
3、表损坏
如有其它问题再做添加
--转自