-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: JDBC batch update
PostPosted: Tue Jul 27, 2010 10:51 am 
Newbie

Joined: Sat Oct 03, 2009 10:59 pm
Posts: 7
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.