Code:
(0 ms) [http-8080-5] WARN : org.hibernate.util.JDBCExceptionReporter#warn : SQL Error: 1054, SQLState: 42S22
(0 ms) [http-8080-5] ERROR: org.hibernate.util.JDBCExceptionReporter#error : Unknown column 'NaN' in 'field list'
(16 ms) [http-8080-5] ERROR: org.hibernate.event.def.AbstractFlushingEventListener#error : Could not synchronize database state with session
org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:90)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:275)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:266)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:168)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1027)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:365)
at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:137)
at com.tenement.extension.CalculateFitness.calculateFitness(CalculateFitness.java:110)
Caused by: java.sql.BatchUpdateException: Unknown column 'NaN' in 'field list'
at com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStatement.java:1669)
at com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:1085)
at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:70)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:268)
... 30 more
(16 ms) [http-8080-5] WARN : org.apache.struts.action.RequestProcessor#processException : Unhandled Exception thrown: class org.hibernate.exception.SQLGrammarException
2010-7-27 22:42:24 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet action threw exception
java.sql.BatchUpdateException: Unknown column 'NaN' in 'field list'
at com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStatement.java:1669)
anyone could help me ? thanks all.
Regards,
iwill.