Mar 28, 2011 8:23:47 PM org.hibernate.cfg.Environment <clinit> ... 27 more INFO: Hibernate 3.2.5 Mar 28, 2011 8:23:47 PM org.hibernate.cfg.Environment <clinit> INFO: hibernate.properties not found Mar 28, 2011 8:23:47 PM org.hibernate.cfg.Environment buildBytecodeProvider INFO: Bytecode provider name : cglib Mar 28, 2011 8:23:47 PM org.hibernate.cfg.Environment <clinit> INFO: using JDK 1.4 java.sql.Timestamp handling Mar 28, 2011 8:23:47 PM org.hibernate.cfg.Configuration configure INFO: configuring from resource: /hibernate.cfg.xml Mar 28, 2011 8:23:47 PM org.hibernate.cfg.Configuration getConfigurationInputStream INFO: Configuration resource: /hibernate.cfg.xml Mar 28, 2011 8:23:47 PM org.hibernate.cfg.Configuration addResource INFO: Reading mappings from resource : pojos/Question.hbm.xml Mar 28, 2011 8:23:48 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues INFO: Mapping class: pojos.Question -> question Mar 28, 2011 8:23:48 PM org.hibernate.cfg.Configuration addResource INFO: Reading mappings from resource : pojos/Test.hbm.xml Mar 28, 2011 8:23:48 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues INFO: Mapping class: pojos.Test -> test Mar 28, 2011 8:23:48 PM org.hibernate.cfg.Configuration addResource INFO: Reading mappings from resource : pojos/Category.hbm.xml Mar 28, 2011 8:23:48 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues INFO: Mapping class: pojos.Category -> category Mar 28, 2011 8:23:48 PM org.hibernate.cfg.Configuration doConfigure INFO: Configured SessionFactory: null Mar 28, 2011 8:23:48 PM org.hibernate.cfg.HbmBinder bindCollectionSecondPass INFO: Mapping collection: pojos.Test.questions -> question Mar 28, 2011 8:23:48 PM org.hibernate.cfg.HbmBinder bindCollectionSecondPass INFO: Mapping collection: pojos.Test.questions_1 -> question Mar 28, 2011 8:23:48 PM org.hibernate.cfg.HbmBinder bindCollectionSecondPass INFO: Mapping collection: pojos.Category.questions -> question Mar 28, 2011 8:23:48 PM org.hibernate.cfg.HbmBinder bindCollectionSecondPass INFO: Mapping collection: pojos.Category.tests -> test Mar 28, 2011 8:23:48 PM org.hibernate.connection.DriverManagerConnectionProvider configure INFO: Using Hibernate built-in connection pool (not for production use!) Mar 28, 2011 8:23:48 PM org.hibernate.connection.DriverManagerConnectionProvider configure INFO: Hibernate connection pool size: 20 Mar 28, 2011 8:23:48 PM org.hibernate.connection.DriverManagerConnectionProvider configure INFO: autocommit mode: false Mar 28, 2011 8:23:48 PM org.hibernate.connection.DriverManagerConnectionProvider configure INFO: using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost:3306/pre Mar 28, 2011 8:23:48 PM org.hibernate.connection.DriverManagerConnectionProvider configure INFO: connection properties: {user=root} Mar 28, 2011 8:23:49 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: RDBMS: MySQL, version: 5.0.51b-community-nt Mar 28, 2011 8:23:49 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.1.6 ( Revision: ${svn.Revision} ) Mar 28, 2011 8:23:49 PM org.hibernate.dialect.Dialect <init> INFO: Using dialect: org.hibernate.dialect.MySQLDialect Mar 28, 2011 8:23:49 PM org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory INFO: Using default transaction strategy (direct JDBC transactions) Mar 28, 2011 8:23:49 PM org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup INFO: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended) Mar 28, 2011 8:23:49 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Automatic flush during beforeCompletion(): disabled Mar 28, 2011 8:23:49 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Automatic session close at end of transaction: disabled Mar 28, 2011 8:23:49 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: JDBC batch size: 15 Mar 28, 2011 8:23:49 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: JDBC batch updates for versioned data: disabled Mar 28, 2011 8:23:49 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Scrollable result sets: enabled Mar 28, 2011 8:23:49 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: JDBC3 getGeneratedKeys(): enabled Mar 28, 2011 8:23:49 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Connection release mode: auto Mar 28, 2011 8:23:49 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Maximum outer join fetch depth: 2 Mar 28, 2011 8:23:49 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Default batch fetch size: 1 Mar 28, 2011 8:23:49 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Generate SQL with comments: disabled Mar 28, 2011 8:23:49 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Order SQL updates by primary key: disabled Mar 28, 2011 8:23:49 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Order SQL inserts for batching: disabled Mar 28, 2011 8:23:49 PM org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory Mar 28, 2011 8:23:49 PM org.hibernate.hql.ast.ASTQueryTranslatorFactory <init> INFO: Using ASTQueryTranslatorFactory Mar 28, 2011 8:23:49 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Query language substitutions: {} Mar 28, 2011 8:23:49 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: JPA-QL strict compliance: disabled Mar 28, 2011 8:23:49 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Second-level cache: enabled Mar 28, 2011 8:23:49 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Query cache: disabled Mar 28, 2011 8:23:49 PM org.hibernate.cfg.SettingsFactory createCacheProvider INFO: Cache provider: org.hibernate.cache.NoCacheProvider Mar 28, 2011 8:23:49 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Optimize cache for minimal puts: disabled Mar 28, 2011 8:23:49 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Structured second-level cache entries: disabled Mar 28, 2011 8:23:49 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Statistics: disabled Mar 28, 2011 8:23:49 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Deleted entity synthetic identifier rollback: disabled Mar 28, 2011 8:23:49 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Default entity-mode: pojo Mar 28, 2011 8:23:49 PM org.hibernate.cfg.SettingsFactory buildSettings INFO: Named query checking : enabled Mar 28, 2011 8:23:49 PM org.hibernate.impl.SessionFactoryImpl <init> INFO: building session factory Mar 28, 2011 8:23:50 PM org.hibernate.impl.SessionFactoryObjectFactory addInstance INFO: Not binding factory to JNDI, no JNDI name configured Mar 28, 2011 8:23:51 PM org.hibernate.util.JDBCExceptionReporter logExceptions WARNING: SQL Error: 1064, SQLState: 42000 Mar 28, 2011 8:23:51 PM org.hibernate.util.JDBCExceptionReporter logExceptions SEVERE: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'option, answer, cid, id) values (2, null, 'Whatname', 'jayesh:pratik', 4, null, ' at line 1 Mar 28, 2011 8:23:51 PM org.hibernate.event.def.AbstractFlushingEventListener performExecutions SEVERE: 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:67) org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67) at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:253) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:237) at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:253) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:141) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:237) at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:141) at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27) at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298) at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000) at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27) at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338) at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000) at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106) at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338) at manager.DbManager.saveQuestionData(DbManager.java:21) at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106) at servlets.addQuestionData.processRequest(addQuestionData.java:59) at manager.DbManager.saveQuestionData(DbManager.java:21) at servlets.addQuestionData.doGet(addQuestionData.java:87) at servlets.addQuestionData.processRequest(addQuestionData.java:59) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at servlets.addQuestionData.doGet(addQuestionData.java:87) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at java.lang.Thread.run(Thread.java:619) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) Caused by: java.sql.BatchUpdateException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'option, answer, cid, id) values (2, null, 'Whatname', 'jayesh:pratik', 4, null, ' at line 1 at java.lang.Thread.run(Thread.java:619) at com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStatement.java:1666) Caused by: java.sql.BatchUpdateException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'option, answer, cid, id) values (2, null, 'Whatname', 'jayesh:pratik', 4, null, ' at line 1 at com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:1082) at com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStatement.java:1666) at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48) at com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:1082) at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:246) at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48) ... 27 more at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:246)
|