Sometimes I get this - :-(
Code:
11:48:21,015 INFO Environment:432 - Hibernate 2.1.1
11:48:21,031 INFO Environment:466 - loaded properties from resource hibernate.properties: {hibernate.connection.username=sanjeev, hibernate.connection.password=, hibernate.cglib.use_reflection_optimizer=true, hibernate.dialect=net.sf.hibernate.dialect.PostgreSQLDialect, hibernate.connection.url=jdbc:postgresql:frmdb, hibernate.jdbc.batch_size=0, hibernate.connection.driver_class=org.postgresql.Driver, hibernate.query.substitutions=yes 'Y', no 'N'}
11:48:21,046 INFO Environment:481 - using CGLIB reflection optimizer
11:48:21,046 INFO Configuration:318 - Mapping resource: Forum.hbm.xml
11:48:21,625 DEBUG DTDEntityResolver:20 - trying to locate http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath under net/sf/hibernate/
11:48:21,625 DEBUG DTDEntityResolver:29 - found http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath
11:48:21,859 INFO Binder:225 - Mapping class: Forum -> forum
11:48:21,953 DEBUG Binder:449 - Mapped property: forum_id -> forum_id, type: integer
11:48:21,984 DEBUG Binder:449 - Mapped property: name -> name, type: string
11:48:21,984 INFO Configuration:318 - Mapping resource: Post.hbm.xml
11:48:22,000 DEBUG DTDEntityResolver:20 - trying to locate http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath under net/sf/hibernate/
11:48:22,000 DEBUG DTDEntityResolver:29 - found http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath
11:48:22,031 INFO Binder:225 - Mapping class: Post -> post
11:48:22,031 DEBUG Binder:449 - Mapped property: id -> id, type: integer
11:48:22,046 DEBUG Binder:449 - Mapped property: threadid -> threadid, type: integer
11:48:22,046 DEBUG Binder:449 - Mapped property: replyid -> replyid, type: integer
11:48:22,046 DEBUG Binder:449 - Mapped property: posttopic -> posttopic, type: string
11:48:22,046 DEBUG Binder:449 - Mapped property: posttext -> posttext, type: string
11:48:22,046 DEBUG Binder:449 - Mapped property: timestmp -> timestmp, type: timestamp
11:48:22,062 DEBUG Binder:449 - Mapped property: f_id -> f_id, type: integer
11:48:22,062 DEBUG Binder:449 - Mapped property: p_id -> p_id, type: integer
11:48:22,062 DEBUG Binder:449 - Mapped property: forum -> f_id, type: Forum
11:48:22,062 DEBUG Binder:449 - Mapped property: poster -> p_id, type: Poster
11:48:22,062 INFO Configuration:318 - Mapping resource: Poster.hbm.xml
11:48:22,078 DEBUG DTDEntityResolver:20 - trying to locate http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath under net/sf/hibernate/
11:48:22,078 DEBUG DTDEntityResolver:29 - found http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath
11:48:22,109 INFO Binder:225 - Mapping class: Poster -> poster
11:48:22,109 DEBUG Binder:449 - Mapped property: poster_id -> poster_id, type: integer
11:48:22,125 DEBUG Binder:449 - Mapped property: name -> name, type: string
11:48:22,125 DEBUG Binder:449 - Mapped property: usernm -> usernm, type: string
11:48:22,125 DEBUG Binder:449 - Mapped property: joindt -> joindt, type: timestamp
11:48:22,125 INFO Configuration:584 - processing one-to-many association mappings
11:48:22,125 INFO Configuration:593 - processing one-to-one association property references
11:48:22,140 INFO Configuration:618 - processing foreign key constraints
11:48:22,140 DEBUG Configuration:628 - resolving reference to class: Forum
11:48:22,140 DEBUG Configuration:628 - resolving reference to class: Poster
11:48:22,187 INFO Dialect:82 - Using dialect: net.sf.hibernate.dialect.PostgreSQLDialect
11:48:22,187 INFO SettingsFactory:62 - Use outer join fetching: true
11:48:22,187 INFO DriverManagerConnectionProvider:41 - Using Hibernate built-in connection pool (not for production use!)
11:48:22,187 INFO DriverManagerConnectionProvider:42 - Hibernate connection pool size: 20
11:48:22,203 INFO DriverManagerConnectionProvider:71 - using driver: org.postgresql.Driver at URL: jdbc:postgresql:frmdb
11:48:22,218 INFO DriverManagerConnectionProvider:72 - connection properties: {user=sanjeev, password=}
11:48:22,218 INFO TransactionManagerLookupFactory:33 - No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommended)
11:48:22,218 DEBUG DriverManagerConnectionProvider:78 - total checked-out connections: 0
11:48:22,218 DEBUG DriverManagerConnectionProvider:94 - opening new JDBC connection
11:48:22,421 DEBUG DriverManagerConnectionProvider:100 - created connection to: jdbc:postgresql:frmdb, Isolation Level: 2
11:48:22,453 DEBUG DriverManagerConnectionProvider:114 - returning connection to pool, pool size: 1
11:48:22,453 INFO SettingsFactory:89 - Use scrollable result sets: true
11:48:22,453 INFO SettingsFactory:99 - Query language substitutions: {no='N', yes='Y'}
11:48:22,453 INFO SettingsFactory:110 - cache provider: net.sf.ehcache.hibernate.Provider
11:48:22,453 INFO Configuration:1057 - instantiating and configuring caches
11:48:22,750 INFO SessionFactoryImpl:119 - building session factory
11:48:22,750 DEBUG SessionFactoryImpl:125 - instantiating session factory with properties: {java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, hibernate.connection.password=, sun.boot.library.path=D:\j2sdk1.4.2\jre\bin, java.vm.version=1.4.2-beta-b19, hibernate.connection.username=sanjeev, java.vm.vendor=Sun Microsystems Inc., java.vendor.url=http://java.sun.com/, path.separator=;, java.vm.name=Java HotSpot(TM) Client VM, file.encoding.pkg=sun.io, user.country=US, sun.os.patch.level=Service Pack 1, java.vm.specification.name=Java Virtual Machine Specification, user.dir=D:\dasgupta\forumproj, java.runtime.version=1.4.2-beta-b19, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.endorsed.dirs=D:\j2sdk1.4.2\jre\lib\endorsed, os.arch=x86, java.io.tmpdir=D:\DOCUME~1\sanjeev\LOCALS~1\Temp\, line.separator=
, java.vm.specification.vendor=Sun Microsystems Inc., user.variant=, os.name=Windows XP, sun.java2d.fontpath=, log4j.configuration=log4j-to-file.properties, java.library.path=D:\j2sdk1.4.2\jre\bin;.;D:\WINDOWS\System32;D:\WINDOWS;d:\apache-ant-1.6.0\bin\;d:\j2sdk1.4.2\bin;d:\apache-ant-1.6.0\bin\;d:\j2sdk1.4.2\bin;d:\apache-ant-1.6.0\bin\;d:\j2sdk1.4.2\bin;D:\WINDOWS\System32;d:\postgres\bin;;d:\postgres\bin;;d:\postgres\bin;, java.specification.name=Java Platform API Specification, java.class.version=48.0, java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFactory, os.version=5.1, user.home=D:\Documents and Settings\sanjeev, user.timezone=Asia/Bangkok, java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=Cp1252, java.specification.version=1.4, hibernate.connection.driver_class=org.postgresql.Driver, java.class.path=D:\dasgupta\forumproj\lib;D:\dasgupta\forumproj\bin;D:\dasgupta\forumproj\lib\hibernate2.jar;D:\dasgupta\forumproj\lib\ant.jar;D:\dasgupta\forumproj\lib\c3p0.jar;D:\dasgupta\forumproj\lib\cglib2.jar;D:\dasgupta\forumproj\lib\commons-collections.jar;D:\dasgupta\forumproj\lib\commons-dbcp.jar;D:\dasgupta\forumproj\lib\commons-lang.jar;D:\dasgupta\forumproj\lib\commons-logging.jar;D:\dasgupta\forumproj\lib\commons-pool.jar;D:\dasgupta\forumproj\lib\concurrent.jar;D:\dasgupta\forumproj\lib\connector.jar;D:\dasgupta\forumproj\lib\dom4j.jar;D:\dasgupta\forumproj\lib\ehcache.jar;D:\dasgupta\forumproj\lib\jaas.jar;D:\dasgupta\forumproj\lib\jboss-cache.jar;D:\dasgupta\forumproj\lib\jboss-common.jar;D:\dasgupta\forumproj\lib\jboss-jmx.jar;D:\dasgupta\forumproj\lib\jboss-system.jar;D:\dasgupta\forumproj\lib\jcs.jar;D:\dasgupta\forumproj\lib\jdbc2_0-stdext.jar;D:\dasgupta\forumproj\lib\jgroups.jar;D:\dasgupta\forumproj\lib\jta.jar;D:\dasgupta\forumproj\lib\junit.jar;D:\dasgupta\forumproj\lib\kunststoff.jar;D:\dasgupta\forumproj\lib\log4j.jar;D:\dasgupta\forumproj\lib\odmg.jar;D:\dasgupta\forumproj\lib\optional.jar;D:\dasgupta\forumproj\lib\oscache.jar;D:\dasgupta\forumproj\lib\pg73jdbc2ee.jar;D:\dasgupta\forumproj\lib\pg74.1jdbc3.jar;D:\dasgupta\forumproj\lib\proxool.jar;D:\dasgupta\forumproj\lib\swarmcache.jar;D:\dasgupta\forumproj\lib\xalan.jar;D:\dasgupta\forumproj\lib\xerces.jar;D:\dasgupta\forumproj\lib\xml-apis.jar, user.name=sanjeev, hibernate.query.substitutions=yes 'Y', no 'N', java.vm.specification.version=1.0, java.home=D:\j2sdk1.4.2\jre, sun.arch.data.model=32, hibernate.dialect=net.sf.hibernate.dialect.PostgreSQLDialect, hibernate.connection.url=jdbc:postgresql:frmdb, user.language=en, java.specification.vendor=Sun Microsystems Inc., awt.toolkit=sun.awt.windows.WToolkit, hibernate.cglib.use_reflection_optimizer=true, java.vm.info=mixed mode, java.version=1.4.2-beta, java.ext.dirs=D:\j2sdk1.4.2\jre\lib\ext, sun.boot.class.path=D:\j2sdk1.4.2\jre\lib\rt.jar;D:\j2sdk1.4.2\jre\lib\i18n.jar;D:\j2sdk1.4.2\jre\lib\sunrsasign.jar;D:\j2sdk1.4.2\jre\lib\jsse.jar;D:\j2sdk1.4.2\jre\lib\jce.jar;D:\j2sdk1.4.2\jre\lib\charsets.jar;D:\j2sdk1.4.2\jre\classes, java.vendor=Sun Microsystems Inc., hibernate.jdbc.batch_size=0, file.separator=\, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, sun.cpu.isalist=pentium i486 i386}
11:48:22,953 INFO ReflectHelper:160 - reflection optimizer disabled for: Post, NullPointerException: null
11:48:23,171 DEBUG SessionFactoryObjectFactory:39 - initializing class SessionFactoryObjectFactory
11:48:23,171 DEBUG SessionFactoryObjectFactory:76 - registered: 40288a47faf54d3700faf54d3a830000 (unnamed)
11:48:23,171 INFO SessionFactoryObjectFactory:82 - no JNDI name configured
11:48:23,171 DEBUG SessionFactoryImpl:196 - instantiated session factory
11:48:23,250 DEBUG SessionImpl:528 - opened session
11:48:23,250 DEBUG BatcherImpl:192 - about to open: 0 open PreparedStatements, 0 open ResultSets
11:48:23,250 DEBUG DriverManagerConnectionProvider:78 - total checked-out connections: 0
11:48:23,250 DEBUG DriverManagerConnectionProvider:84 - using pooled JDBC connection, pool size: 0
11:48:23,250 DEBUG SQL:223 - select nextval ('hibernate_sequence')
11:48:23,250 DEBUG BatcherImpl:227 - preparing statement
11:48:23,281 DEBUG JDBCExceptionReporter:36 - SQL Exception
java.sql.SQLException: ERROR: Relation "hibernate_sequence" does not exist
at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:131)
at org.postgresql.jdbc1.AbstractJdbc1Connection.ExecSQL(AbstractJdbc1Connection.java:505)
at org.postgresql.jdbc1.AbstractJdbc1Statement.execute(AbstractJdbc1Statement.java:320)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:48)
at org.postgresql.jdbc1.AbstractJdbc1Statement.executeQuery(AbstractJdbc1Statement.java:153)
at net.sf.hibernate.id.SequenceGenerator.generate(SequenceGenerator.java:69)
at net.sf.hibernate.impl.SessionImpl.saveWithGeneratedIdentifier(SessionImpl.java:727)
at net.sf.hibernate.impl.SessionImpl.save(SessionImpl.java:717)
at QueryEngine.runprog(QueryEngine.java:142)
at QueryEngine.<init>(QueryEngine.java:39)
at Myfe.actionPerformed(Myfe.java:111)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
at java.awt.Component.processMouseEvent(Component.java:5099)
at java.awt.Component.processEvent(Component.java:4896)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3614)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3476)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3476)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
11:48:23,281 WARN JDBCExceptionReporter:38 - SQL Error: 0, SQLState: null
11:48:23,281 ERROR JDBCExceptionReporter:46 - ERROR: Relation "hibernate_sequence" does not exist
11:48:23,281 DEBUG BatcherImpl:199 - done closing: 0 open PreparedStatements, 0 open ResultSets
11:48:23,281 DEBUG BatcherImpl:240 - closing statement
11:48:23,296 DEBUG JDBCExceptionReporter:36 - SQL Exception
java.sql.SQLException: ERROR: Relation "hibernate_sequence" does not exist
at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:131)
at org.postgresql.jdbc1.AbstractJdbc1Connection.ExecSQL(AbstractJdbc1Connection.java:505)
at org.postgresql.jdbc1.AbstractJdbc1Statement.execute(AbstractJdbc1Statement.java:320)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:48)
at org.postgresql.jdbc1.AbstractJdbc1Statement.executeQuery(AbstractJdbc1Statement.java:153)
at net.sf.hibernate.id.SequenceGenerator.generate(SequenceGenerator.java:69)
at net.sf.hibernate.impl.SessionImpl.saveWithGeneratedIdentifier(SessionImpl.java:727)
at net.sf.hibernate.impl.SessionImpl.save(SessionImpl.java:717)
at QueryEngine.runprog(QueryEngine.java:142)
at QueryEngine.<init>(QueryEngine.java:39)
at Myfe.actionPerformed(Myfe.java:111)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
at java.awt.Component.processMouseEvent(Component.java:5099)
at java.awt.Component.processEvent(Component.java:4896)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3614)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3476)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3476)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
11:48:23,296 WARN JDBCExceptionReporter:38 - SQL Error: 0, SQLState: null
11:48:23,296 ERROR JDBCExceptionReporter:46 - ERROR: Relation "hibernate_sequence" does not exist
11:48:23,296 ERROR JDBCExceptionReporter:38 - Could not save object
java.sql.SQLException: ERROR: Relation "hibernate_sequence" does not exist
at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:131)
at org.postgresql.jdbc1.AbstractJdbc1Connection.ExecSQL(AbstractJdbc1Connection.java:505)
at org.postgresql.jdbc1.AbstractJdbc1Statement.execute(AbstractJdbc1Statement.java:320)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:48)
at org.postgresql.jdbc1.AbstractJdbc1Statement.executeQuery(AbstractJdbc1Statement.java:153)
at net.sf.hibernate.id.SequenceGenerator.generate(SequenceGenerator.java:69)
at net.sf.hibernate.impl.SessionImpl.saveWithGeneratedIdentifier(SessionImpl.java:727)
at net.sf.hibernate.impl.SessionImpl.save(SessionImpl.java:717)
at QueryEngine.runprog(QueryEngine.java:142)
at QueryEngine.<init>(QueryEngine.java:39)
at Myfe.actionPerformed(Myfe.java:111)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
at java.awt.Component.processMouseEvent(Component.java:5099)
at java.awt.Component.processEvent(Component.java:4896)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3614)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3476)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3476)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
11:49:06,609 DEBUG SessionImpl:3239 - running Session.finalize()
11:49:06,609 WARN SessionImpl:3251 - unclosed connection