-->
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.  [ 4 posts ] 
Author Message
 Post subject: problem with tutorial
PostPosted: Sat Jan 26, 2008 8:11 am 
Newbie

Joined: Sat Jan 26, 2008 7:26 am
Posts: 10
Hi
Im trying to learn hibernate by doing this tutorial http://www.hibernate.org/hib_docs/refer ... orial.html

Im stuck in the first object saving.
This is what i get from the build:

Buildfile: /home/ivar_m/workspace/hibernate tut/build.xml
clean:
[delete] Deleting directory /home/ivar_m/workspace/hibernate tut/bin
[mkdir] Created dir: /home/ivar_m/workspace/hibernate tut/bin
copy-resources:
[copy] Copying 3 files to /home/ivar_m/workspace/hibernate tut/bin
compile:
[javac] Compiling 3 source files to /home/ivar_m/workspace/hibernate tut/bin
run:
[java] 14:03:06,096 INFO Environment:464 - Hibernate 3.0.5
[java] 14:03:06,104 INFO Environment:477 - hibernate.properties not found
[java] 14:03:06,106 INFO Environment:510 - using CGLIB reflection optimizer
[java] 14:03:06,108 INFO Environment:540 - using JDK 1.4 java.sql.Timestamp handling
[java] 14:03:06,156 INFO Configuration:1110 - configuring from resource: /hibernate.cfg.xml
[java] 14:03:06,157 INFO Configuration:1081 - Configuration resource: /hibernate.cfg.xml
[java] 14:03:06,283 DEBUG DTDEntityResolver:42 - trying to locate http://hibernate.sourceforge.net/hibern ... on-3.0.dtd in classpath under org/hibernate/
[java] 14:03:06,285 DEBUG DTDEntityResolver:53 - found http://hibernate.sourceforge.net/hibern ... on-3.0.dtd in classpath
[java] 14:03:06,335 DEBUG Configuration:1067 - connection.driver_class=org.hsqldb.jdbcDriver
[java] 14:03:06,336 DEBUG Configuration:1067 - connection.url=jdbc:hsqldb:hsql://localhost
[java] 14:03:06,336 DEBUG Configuration:1067 - connection.username=sa
[java] 14:03:06,337 DEBUG Configuration:1067 - connection.password=
[java] 14:03:06,359 DEBUG Configuration:1067 - connection.pool_size=1
[java] 14:03:06,360 DEBUG Configuration:1067 - dialect=org.hibernate.dialect.HSQLDialect
[java] 14:03:06,360 DEBUG Configuration:1067 - current_session_context_class=thread
[java] 14:03:06,361 DEBUG Configuration:1067 - cache.provider_class=org.hibernate.cache.NoCacheProvider
[java] 14:03:06,361 DEBUG Configuration:1067 - show_sql=true
[java] 14:03:06,362 DEBUG Configuration:1067 - hbm2ddl.auto=create
[java] 14:03:06,362 DEBUG Configuration:1262 - null<-org.dom4j.tree.DefaultAttribute@5e179a [Attribute: name resource value "mappings.hbm.xml"]
[java] 14:03:06,364 INFO Configuration:444 - Mapping resource: mappings.hbm.xml
[java] 14:03:06,365 DEBUG DTDEntityResolver:42 - trying to locate http://hibernate.sourceforge.net/hibern ... ng-3.0.dtd in classpath under org/hibernate/
[java] 14:03:06,367 DEBUG DTDEntityResolver:53 - found http://hibernate.sourceforge.net/hibern ... ng-3.0.dtd in classpath
[java] 14:03:06,570 INFO HbmBinder:260 - Mapping class: events.Event -> EVENTS
[java] 14:03:06,580 DEBUG HbmBinder:1099 - Mapped property: id -> EVENT_ID
[java] 14:03:06,586 DEBUG HbmBinder:1099 - Mapped property: date -> EVENT_DATE
[java] 14:03:06,587 DEBUG HbmBinder:1099 - Mapped property: title -> title
[java] 14:03:06,587 INFO Configuration:1222 - Configured SessionFactory: null
[java] 14:03:06,588 DEBUG Configuration:1223 - properties: {hibernate.connection.password=, java.runtime.name=Java(TM) SE Runtime Environment, hibernate.cache.provider_class=org.hibernate.cache.NoCacheProvider, sun.boot.library.path=/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/i386, java.vm.version=1.6.0_03-b05, hibernate.connection.username=sa, 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.java.launcher=SUN_STANDARD, sun.os.patch.level=unknown, java.vm.specification.name=Java Virtual Machine Specification, user.dir=/home/ivar_m/workspace/hibernate tut, java.runtime.version=1.6.0_03-b05, java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment, hbm2ddl.auto=create, hibernate.current_session_context_class=thread, java.endorsed.dirs=/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/endorsed, os.arch=i386, java.io.tmpdir=/tmp, line.separator=
[java] , java.vm.specification.vendor=Sun Microsystems Inc., cache.provider_class=org.hibernate.cache.NoCacheProvider, os.name=Linux, sun.jnu.encoding=UTF-8, java.library.path=/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/i386/client:/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/i386:/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/../lib/i386:/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/i386/client::/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/i386::/usr/lib/mozilla-thunderbird-2.0.0.6:/usr/lib/mozilla-thunderbird-2.0.0.6:/usr/java/packages/lib/i386:/lib:/usr/lib, java.specification.name=Java Platform API Specification, java.class.version=50.0, hibernate.connection.pool_size=1, sun.management.compiler=HotSpot Client Compiler, os.version=2.6.18.8.tex5, connection.password=, user.home=/home/ivar_m, user.timezone=Europe/Helsinki, connection.username=sa, java.awt.printerjob=sun.print.PSPrinterJob, file.encoding=UTF-8, java.specification.version=1.6, hibernate.connection.driver_class=org.hsqldb.jdbcDriver, show_sql=true, user.name=ivar_m, java.class.path=/home/ivar_m/workspace/hibernate tut/lib/hsqldb.jar:/home/ivar_m/workspace/hibernate tut/lib/log4j-1.2.11.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/antlr-2.7.6.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/asm-attrs.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/asm.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/cglib-2.1.3.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/commons-collections-2.1.1.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/commons-logging-1.0.4.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/dom4j-1.6.1.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/ehcache-1.2.3.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/hibernate3.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/javassist.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/jaxen-1.1-beta-7.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/jdbc2_0-stdext.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/jgroups-2.2.8.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/jta.jar:/home/ivar_m/workspace/hibernate tut/bin, hibernate.show_sql=true, current_session_context_class=thread, java.vm.specification.version=1.0, java.home=/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre, sun.arch.data.model=32, hibernate.dialect=org.hibernate.dialect.HSQLDialect, hibernate.connection.url=jdbc:hsqldb:hsql://localhost, connection.pool_size=1, user.language=en, java.specification.vendor=Sun Microsystems Inc., hibernate.cglib.use_reflection_optimizer=true, java.vm.info=mixed mode, java.version=1.6.0_03, java.ext.dirs=/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/ext:/usr/java/packages/lib/ext, sun.boot.class.path=/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/resources.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/rt.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/jsse.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/jce.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/charsets.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/classes, java.vendor=Sun Microsystems Inc., connection.driver_class=org.hsqldb.jdbcDriver, file.separator=/, hibernate.hbm2ddl.auto=create, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, connection.url=jdbc:hsqldb:hsql://localhost, dialect=org.hibernate.dialect.HSQLDialect, sun.cpu.isalist=}
[java] 14:03:06,590 DEBUG Configuration:998 - Preparing to build session factory with filters : {}
[java] 14:03:06,590 INFO Configuration:875 - processing extends queue
[java] 14:03:06,592 INFO Configuration:879 - processing collection mappings
[java] 14:03:06,593 INFO Configuration:888 - processing association property references
[java] 14:03:06,593 INFO Configuration:917 - processing foreign key constraints
[java] 14:03:06,673 INFO DriverManagerConnectionProvider:41 - Using Hibernate built-in connection pool (not for production use!)
[java] 14:03:06,674 INFO DriverManagerConnectionProvider:42 - Hibernate connection pool size: 1
[java] 14:03:06,674 INFO DriverManagerConnectionProvider:45 - autocommit mode: false
[java] 14:03:06,679 INFO DriverManagerConnectionProvider:80 - using driver: org.hsqldb.jdbcDriver at URL: jdbc:hsqldb:hsql://localhost
[java] 14:03:06,680 INFO DriverManagerConnectionProvider:83 - connection properties: {user=sa, password=}
[java] 14:03:06,680 DEBUG DriverManagerConnectionProvider:93 - total checked-out connections: 0
[java] 14:03:06,681 DEBUG DriverManagerConnectionProvider:109 - opening new JDBC connection
[java] 14:03:06,887 WARN SettingsFactory:103 - Could not obtain connection metadata
[java] java.sql.SQLException: S1000 General error java.lang.RuntimeException: database alias does not exist
[java] at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
[java] at org.hsqldb.jdbc.jdbcConnection.<init>(Unknown Source)
[java] at org.hsqldb.jdbcDriver.getConnection(Unknown Source)
[java] at org.hsqldb.jdbcDriver.connect(Unknown Source)
[java] at java.sql.DriverManager.getConnection(DriverManager.java:582)
[java] at java.sql.DriverManager.getConnection(DriverManager.java:154)
[java] at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
[java] at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:72)
[java] at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1463)
[java] at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1004)
[java] at util.HibernateUtil.<clinit>(Unknown Source)
[java] at events.EventManager.createAndStoreEvent(Unknown Source)
[java] at events.EventManager.main(Unknown Source)
[java] 14:03:06,904 INFO Dialect:92 - Using dialect: org.hibernate.dialect.HSQLDialect
[java] 14:03:06,916 INFO TransactionFactoryFactory:31 - Using default transaction strategy (direct JDBC transactions)
[java] 14:03:06,926 INFO TransactionManagerLookupFactory:33 - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
[java] 14:03:06,927 INFO SettingsFactory:125 - Automatic flush during beforeCompletion(): disabled
[java] 14:03:06,927 INFO SettingsFactory:129 - Automatic session close at end of transaction: disabled
[java] 14:03:06,928 INFO SettingsFactory:144 - Scrollable result sets: disabled
[java] 14:03:06,929 DEBUG SettingsFactory:148 - Wrap result sets: disabled
[java] 14:03:06,929 INFO SettingsFactory:152 - JDBC3 getGeneratedKeys(): disabled
[java] 14:03:06,929 INFO SettingsFactory:160 - Connection release mode: null
[java] 14:03:06,930 INFO SettingsFactory:187 - Default batch fetch size: 1
[java] 14:03:06,931 INFO SettingsFactory:191 - Generate SQL with comments: disabled
[java] 14:03:06,931 INFO SettingsFactory:195 - Order SQL updates by primary key: disabled
[java] 14:03:06,931 INFO SettingsFactory:334 - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
[java] 14:03:06,933 INFO ASTQueryTranslatorFactory:21 - Using ASTQueryTranslatorFactory
[java] 14:03:06,934 INFO SettingsFactory:203 - Query language substitutions: {}
[java] 14:03:06,936 INFO SettingsFactory:209 - Second-level cache: enabled
[java] 14:03:06,936 INFO SettingsFactory:213 - Query cache: disabled
[java] 14:03:06,937 INFO SettingsFactory:321 - Cache provider: org.hibernate.cache.NoCacheProvider
[java] 14:03:06,938 INFO SettingsFactory:228 - Optimize cache for minimal puts: disabled
[java] 14:03:06,939 INFO SettingsFactory:237 - Structured second-level cache entries: disabled
[java] 14:03:06,940 DEBUG SQLExceptionConverterFactory:52 - Using dialect defined converter
[java] 14:03:06,945 INFO SettingsFactory:257 - Echoing all SQL to stdout
[java] 14:03:06,957 INFO SettingsFactory:261 - Statistics: disabled
[java] 14:03:06,961 INFO SettingsFactory:265 - Deleted entity synthetic identifier rollback: disabled
[java] 14:03:06,962 INFO SettingsFactory:279 - Default entity-mode: pojo
[java] 14:03:07,097 INFO SessionFactoryImpl:152 - building session factory
[java] 14:03:07,098 DEBUG SessionFactoryImpl:161 - Session factory constructed with filter configurations : {}
[java] 14:03:07,099 DEBUG SessionFactoryImpl:164 - instantiating session factory with properties: {hibernate.connection.password=, java.runtime.name=Java(TM) SE Runtime Environment, hibernate.cache.provider_class=org.hibernate.cache.NoCacheProvider, sun.boot.library.path=/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/i386, java.vm.version=1.6.0_03-b05, hibernate.connection.username=sa, 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.java.launcher=SUN_STANDARD, sun.os.patch.level=unknown, java.vm.specification.name=Java Virtual Machine Specification, user.dir=/home/ivar_m/workspace/hibernate tut, java.runtime.version=1.6.0_03-b05, java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment, hbm2ddl.auto=create, hibernate.current_session_context_class=thread, java.endorsed.dirs=/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/endorsed, os.arch=i386, java.io.tmpdir=/tmp, line.separator=
[java] , java.vm.specification.vendor=Sun Microsystems Inc., cache.provider_class=org.hibernate.cache.NoCacheProvider, os.name=Linux, sun.jnu.encoding=UTF-8, java.library.path=/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/i386/client:/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/i386:/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/../lib/i386:/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/i386/client::/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/i386::/usr/lib/mozilla-thunderbird-2.0.0.6:/usr/lib/mozilla-thunderbird-2.0.0.6:/usr/java/packages/lib/i386:/lib:/usr/lib, java.specification.name=Java Platform API Specification, java.class.version=50.0, hibernate.connection.pool_size=1, sun.management.compiler=HotSpot Client Compiler, os.version=2.6.18.8.tex5, connection.password=, user.home=/home/ivar_m, user.timezone=Europe/Helsinki, connection.username=sa, java.awt.printerjob=sun.print.PSPrinterJob, file.encoding=UTF-8, java.specification.version=1.6, hibernate.connection.driver_class=org.hsqldb.jdbcDriver, show_sql=true, user.name=ivar_m, java.class.path=/home/ivar_m/workspace/hibernate tut/lib/hsqldb.jar:/home/ivar_m/workspace/hibernate tut/lib/log4j-1.2.11.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/antlr-2.7.6.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/asm-attrs.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/asm.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/cglib-2.1.3.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/commons-collections-2.1.1.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/commons-logging-1.0.4.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/dom4j-1.6.1.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/ehcache-1.2.3.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/hibernate3.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/javassist.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/jaxen-1.1-beta-7.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/jdbc2_0-stdext.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/jgroups-2.2.8.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/jta.jar:/home/ivar_m/workspace/hibernate tut/bin, hibernate.show_sql=true, current_session_context_class=thread, java.vm.specification.version=1.0, java.home=/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre, sun.arch.data.model=32, hibernate.dialect=org.hibernate.dialect.HSQLDialect, hibernate.connection.url=jdbc:hsqldb:hsql://localhost, connection.pool_size=1, user.language=en, java.specification.vendor=Sun Microsystems Inc., hibernate.cglib.use_reflection_optimizer=true, java.vm.info=mixed mode, java.version=1.6.0_03, java.ext.dirs=/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/ext:/usr/java/packages/lib/ext, sun.boot.class.path=/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/resources.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/rt.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/jsse.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/jce.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/charsets.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/classes, java.vendor=Sun Microsystems Inc., connection.driver_class=org.hsqldb.jdbcDriver, file.separator=/, hibernate.hbm2ddl.auto=create, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, connection.url=jdbc:hsqldb:hsql://localhost, dialect=org.hibernate.dialect.HSQLDialect, sun.cpu.isalist=}
[java] 14:03:07,400 DEBUG BasicEntityPersister:2220 - Static SQL for entity: events.Event
[java] 14:03:07,400 DEBUG BasicEntityPersister:2222 - Version select: select EVENT_ID from EVENTS where EVENT_ID =?
[java] 14:03:07,401 DEBUG BasicEntityPersister:2223 - Snapshot select: select event_.EVENT_ID, event_.EVENT_DATE as EVENT2_0_, event_.title as title0_ from EVENTS event_ where event_.EVENT_ID=?
[java] 14:03:07,401 DEBUG BasicEntityPersister:2225 - Insert 0: insert into EVENTS (EVENT_DATE, title, EVENT_ID) values (?, ?, ?)
[java] 14:03:07,402 DEBUG BasicEntityPersister:2226 - Update 0: update EVENTS set EVENT_DATE=?, title=? where EVENT_ID=?
[java] 14:03:07,402 DEBUG BasicEntityPersister:2227 - Delete 0: delete from EVENTS where EVENT_ID=?
[java] 14:03:07,403 DEBUG BasicEntityPersister:2230 - Identity insert: insert into EVENTS (EVENT_DATE, title, EVENT_ID) values (?, ?, null)
[java] 14:03:07,424 DEBUG EntityLoader:95 - Static select for entity events.Event: select event0_.EVENT_ID as EVENT1_0_, event0_.EVENT_DATE as EVENT2_0_0_, event0_.title as title0_0_ from EVENTS event0_ where event0_.EVENT_ID=?
[java] 14:03:07,425 DEBUG EntityLoader:95 - Static select for entity events.Event: select event0_.EVENT_ID as EVENT1_0_, event0_.EVENT_DATE as EVENT2_0_0_, event0_.title as title0_0_ from EVENTS event0_ where event0_.EVENT_ID=?
[java] 14:03:07,425 DEBUG EntityLoader:95 - Static select for entity events.Event: select event0_.EVENT_ID as EVENT1_0_, event0_.EVENT_DATE as EVENT2_0_0_, event0_.title as title0_0_ from EVENTS event0_ where event0_.EVENT_ID=?
[java] 14:03:07,426 DEBUG EntityLoader:95 - Static select for entity events.Event: select event0_.EVENT_ID as EVENT1_0_, event0_.EVENT_DATE as EVENT2_0_0_, event0_.title as title0_0_ from EVENTS event0_ where event0_.EVENT_ID=?
[java] 14:03:07,428 DEBUG SessionFactoryObjectFactory:39 - initializing class SessionFactoryObjectFactory
[java] 14:03:07,430 DEBUG SessionFactoryObjectFactory:76 - registered: ff80808117b5fac80117b5faca220000 (unnamed)
[java] 14:03:07,431 INFO SessionFactoryObjectFactory:82 - Not binding factory to JNDI, no JNDI name configured
[java] 14:03:07,431 DEBUG SessionFactoryImpl:262 - instantiated session factory
[java] 14:03:07,435 INFO Dialect:92 - Using dialect: org.hibernate.dialect.HSQLDialect
[java] 14:03:07,436 INFO Configuration:875 - processing extends queue
[java] 14:03:07,437 INFO Configuration:879 - processing collection mappings
[java] 14:03:07,437 INFO Configuration:888 - processing association property references
[java] 14:03:07,437 INFO Configuration:917 - processing foreign key constraints
[java] 14:03:07,438 INFO Configuration:875 - processing extends queue
[java] 14:03:07,438 INFO Configuration:879 - processing collection mappings
[java] 14:03:07,439 INFO Configuration:888 - processing association property references
[java] 14:03:07,439 INFO Configuration:917 - processing foreign key constraints
[java] 14:03:07,440 INFO SchemaExport:113 - Running hbm2ddl schema export
[java] 14:03:07,440 INFO SchemaExport:129 - exporting generated schema to database
[java] 14:03:07,440 INFO DriverManagerConnectionProvider:41 - Using Hibernate built-in connection pool (not for production use!)
[java] 14:03:07,441 INFO DriverManagerConnectionProvider:42 - Hibernate connection pool size: 1
[java] 14:03:07,444 INFO DriverManagerConnectionProvider:45 - autocommit mode: false
[java] 14:03:07,444 INFO DriverManagerConnectionProvider:80 - using driver: org.hsqldb.jdbcDriver at URL: jdbc:hsqldb:hsql://localhost
[java] 14:03:07,444 INFO DriverManagerConnectionProvider:83 - connection properties: {user=sa, password=}
[java] 14:03:07,445 DEBUG DriverManagerConnectionProvider:93 - total checked-out connections: 0
[java] 14:03:07,445 DEBUG DriverManagerConnectionProvider:109 - opening new JDBC connection
[java] 14:03:07,447 ERROR SchemaExport:179 - schema export unsuccessful
[java] java.sql.SQLException: S1000 General error java.lang.RuntimeException: database alias does not exist
[java] at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
[java] at org.hsqldb.jdbc.jdbcConnection.<init>(Unknown Source)
[java] at org.hsqldb.jdbcDriver.getConnection(Unknown Source)
[java] at org.hsqldb.jdbcDriver.connect(Unknown Source)
[java] at java.sql.DriverManager.getConnection(DriverManager.java:582)
[java] at java.sql.DriverManager.getConnection(DriverManager.java:154)
[java] at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
[java] at org.hibernate.tool.hbm2ddl.SchemaExport$ProviderConnectionHelper.getConnection(SchemaExport.java:432)
[java] at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:130)
[java] at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:99)
[java] at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:264)
[java] at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1005)
[java] at util.HibernateUtil.<clinit>(Unknown Source)
[java] at events.EventManager.createAndStoreEvent(Unknown Source)
[java] at events.EventManager.main(Unknown Source)
[java] 14:03:07,450 INFO SessionFactoryImpl:379 - Checking 0 named queries
[java] Exception in thread "main" org.hibernate.HibernateException: No TransactionManagerLookup specified
[java] at org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:503)
[java] at events.EventManager.createAndStoreEvent(Unknown Source)
[java] at events.EventManager.main(Unknown Source)
[java] Java Result: 1
BUILD SUCCESSFUL
Total time: 3 seconds


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 26, 2008 8:41 am 
Newbie

Joined: Tue Jan 15, 2008 10:07 am
Posts: 14
Did you start HSQLDB as the tutorial instructs in paragraph 1.2.3?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 26, 2008 9:01 am 
Newbie

Joined: Sat Jan 26, 2008 7:26 am
Posts: 10
i started it from my build file. I guess that wasnt such a good idea. So now i started it from the command line like the tutorial says.
The results are somewhat different but there's the same error in the end.

Buildfile: /home/ivar_m/workspace/hibernate tut/build.xml
clean:
[delete] Deleting directory /home/ivar_m/workspace/hibernate tut/bin
[mkdir] Created dir: /home/ivar_m/workspace/hibernate tut/bin
copy-resources:
[copy] Copying 3 files to /home/ivar_m/workspace/hibernate tut/bin
compile:
[javac] Compiling 3 source files to /home/ivar_m/workspace/hibernate tut/bin
run:
[java] 14:55:21,008 INFO Environment:464 - Hibernate 3.0.5
[java] 14:55:21,016 INFO Environment:477 - hibernate.properties not found
[java] 14:55:21,018 INFO Environment:510 - using CGLIB reflection optimizer
[java] 14:55:21,020 INFO Environment:540 - using JDK 1.4 java.sql.Timestamp handling
[java] 14:55:21,066 INFO Configuration:1110 - configuring from resource: /hibernate.cfg.xml
[java] 14:55:21,067 INFO Configuration:1081 - Configuration resource: /hibernate.cfg.xml
[java] 14:55:21,187 DEBUG DTDEntityResolver:42 - trying to locate http://hibernate.sourceforge.net/hibern ... on-3.0.dtd in classpath under org/hibernate/
[java] 14:55:21,189 DEBUG DTDEntityResolver:53 - found http://hibernate.sourceforge.net/hibern ... on-3.0.dtd in classpath
[java] 14:55:21,220 DEBUG Configuration:1067 - connection.driver_class=org.hsqldb.jdbcDriver
[java] 14:55:21,221 DEBUG Configuration:1067 - connection.url=jdbc:hsqldb:hsql://localhost
[java] 14:55:21,222 DEBUG Configuration:1067 - connection.username=sa
[java] 14:55:21,222 DEBUG Configuration:1067 - connection.password=
[java] 14:55:21,222 DEBUG Configuration:1067 - connection.pool_size=1
[java] 14:55:21,223 DEBUG Configuration:1067 - dialect=org.hibernate.dialect.HSQLDialect
[java] 14:55:21,223 DEBUG Configuration:1067 - current_session_context_class=thread
[java] 14:55:21,224 DEBUG Configuration:1067 - cache.provider_class=org.hibernate.cache.NoCacheProvider
[java] 14:55:21,224 DEBUG Configuration:1067 - show_sql=true
[java] 14:55:21,224 DEBUG Configuration:1067 - hbm2ddl.auto=create
[java] 14:55:21,225 DEBUG Configuration:1262 - null<-org.dom4j.tree.DefaultAttribute@5e179a [Attribute: name resource value "mappings.hbm.xml"]
[java] 14:55:21,226 INFO Configuration:444 - Mapping resource: mappings.hbm.xml
[java] 14:55:21,228 DEBUG DTDEntityResolver:42 - trying to locate http://hibernate.sourceforge.net/hibern ... ng-3.0.dtd in classpath under org/hibernate/
[java] 14:55:21,229 DEBUG DTDEntityResolver:53 - found http://hibernate.sourceforge.net/hibern ... ng-3.0.dtd in classpath
[java] 14:55:21,410 INFO HbmBinder:260 - Mapping class: events.Event -> EVENTS
[java] 14:55:21,420 DEBUG HbmBinder:1099 - Mapped property: id -> EVENT_ID
[java] 14:55:21,426 DEBUG HbmBinder:1099 - Mapped property: date -> EVENT_DATE
[java] 14:55:21,427 DEBUG HbmBinder:1099 - Mapped property: title -> title
[java] 14:55:21,428 INFO Configuration:1222 - Configured SessionFactory: null
[java] 14:55:21,428 DEBUG Configuration:1223 - properties: {hibernate.connection.password=, java.runtime.name=Java(TM) SE Runtime Environment, hibernate.cache.provider_class=org.hibernate.cache.NoCacheProvider, sun.boot.library.path=/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/i386, java.vm.version=1.6.0_03-b05, hibernate.connection.username=sa, 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.java.launcher=SUN_STANDARD, sun.os.patch.level=unknown, java.vm.specification.name=Java Virtual Machine Specification, user.dir=/home/ivar_m/workspace/hibernate tut, java.runtime.version=1.6.0_03-b05, java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment, hbm2ddl.auto=create, hibernate.current_session_context_class=thread, java.endorsed.dirs=/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/endorsed, os.arch=i386, java.io.tmpdir=/tmp, line.separator=
[java] , java.vm.specification.vendor=Sun Microsystems Inc., cache.provider_class=org.hibernate.cache.NoCacheProvider, os.name=Linux, sun.jnu.encoding=UTF-8, java.library.path=/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/i386/client:/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/i386:/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/../lib/i386:/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/i386/client::/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/i386::/usr/lib/mozilla-thunderbird-2.0.0.6:/usr/lib/mozilla-thunderbird-2.0.0.6:/usr/java/packages/lib/i386:/lib:/usr/lib, java.specification.name=Java Platform API Specification, java.class.version=50.0, hibernate.connection.pool_size=1, sun.management.compiler=HotSpot Client Compiler, os.version=2.6.18.8.tex5, connection.password=, user.home=/home/ivar_m, user.timezone=Europe/Helsinki, connection.username=sa, java.awt.printerjob=sun.print.PSPrinterJob, file.encoding=UTF-8, java.specification.version=1.6, hibernate.connection.driver_class=org.hsqldb.jdbcDriver, show_sql=true, user.name=ivar_m, java.class.path=/home/ivar_m/workspace/hibernate tut/lib/hsqldb.jar:/home/ivar_m/workspace/hibernate tut/lib/log4j-1.2.11.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/antlr-2.7.6.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/asm-attrs.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/asm.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/cglib-2.1.3.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/commons-collections-2.1.1.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/commons-logging-1.0.4.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/dom4j-1.6.1.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/ehcache-1.2.3.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/hibernate3.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/javassist.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/jaxen-1.1-beta-7.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/jdbc2_0-stdext.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/jgroups-2.2.8.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/jta.jar:/home/ivar_m/workspace/hibernate tut/bin, hibernate.show_sql=true, current_session_context_class=thread, java.vm.specification.version=1.0, java.home=/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre, sun.arch.data.model=32, hibernate.dialect=org.hibernate.dialect.HSQLDialect, hibernate.connection.url=jdbc:hsqldb:hsql://localhost, connection.pool_size=1, user.language=en, java.specification.vendor=Sun Microsystems Inc., hibernate.cglib.use_reflection_optimizer=true, java.vm.info=mixed mode, java.version=1.6.0_03, java.ext.dirs=/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/ext:/usr/java/packages/lib/ext, sun.boot.class.path=/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/resources.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/rt.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/jsse.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/jce.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/charsets.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/classes, java.vendor=Sun Microsystems Inc., connection.driver_class=org.hsqldb.jdbcDriver, file.separator=/, hibernate.hbm2ddl.auto=create, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, connection.url=jdbc:hsqldb:hsql://localhost, dialect=org.hibernate.dialect.HSQLDialect, sun.cpu.isalist=}
[java] 14:55:21,430 DEBUG Configuration:998 - Preparing to build session factory with filters : {}
[java] 14:55:21,430 INFO Configuration:875 - processing extends queue
[java] 14:55:21,433 INFO Configuration:879 - processing collection mappings
[java] 14:55:21,433 INFO Configuration:888 - processing association property references
[java] 14:55:21,433 INFO Configuration:917 - processing foreign key constraints
[java] 14:55:21,512 INFO DriverManagerConnectionProvider:41 - Using Hibernate built-in connection pool (not for production use!)
[java] 14:55:21,514 INFO DriverManagerConnectionProvider:42 - Hibernate connection pool size: 1
[java] 14:55:21,514 INFO DriverManagerConnectionProvider:45 - autocommit mode: false
[java] 14:55:21,519 INFO DriverManagerConnectionProvider:80 - using driver: org.hsqldb.jdbcDriver at URL: jdbc:hsqldb:hsql://localhost
[java] 14:55:21,520 INFO DriverManagerConnectionProvider:83 - connection properties: {user=sa, password=}
[java] 14:55:21,520 DEBUG DriverManagerConnectionProvider:93 - total checked-out connections: 0
[java] 14:55:21,520 DEBUG DriverManagerConnectionProvider:109 - opening new JDBC connection
[java] 14:55:21,735 DEBUG DriverManagerConnectionProvider:115 - created connection to: jdbc:hsqldb:hsql://localhost, Isolation Level: 2
[java] 14:55:21,769 INFO SettingsFactory:77 - RDBMS: HSQL Database Engine, version: 1.8.0
[java] 14:55:21,769 INFO SettingsFactory:78 - JDBC driver: HSQL Database Engine Driver, version: 1.8.0
[java] 14:55:21,770 DEBUG DriverManagerConnectionProvider:129 - returning connection to pool, pool size: 1
[java] 14:55:21,780 INFO Dialect:92 - Using dialect: org.hibernate.dialect.HSQLDialect
[java] 14:55:21,786 INFO TransactionFactoryFactory:31 - Using default transaction strategy (direct JDBC transactions)
[java] 14:55:21,788 INFO TransactionManagerLookupFactory:33 - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
[java] 14:55:21,788 INFO SettingsFactory:125 - Automatic flush during beforeCompletion(): disabled
[java] 14:55:21,789 INFO SettingsFactory:129 - Automatic session close at end of transaction: disabled
[java] 14:55:21,789 INFO SettingsFactory:136 - JDBC batch size: 15
[java] 14:55:21,800 INFO SettingsFactory:139 - JDBC batch updates for versioned data: disabled
[java] 14:55:21,801 INFO SettingsFactory:144 - Scrollable result sets: enabled
[java] 14:55:21,802 DEBUG SettingsFactory:148 - Wrap result sets: disabled
[java] 14:55:21,802 INFO SettingsFactory:152 - JDBC3 getGeneratedKeys(): disabled
[java] 14:55:21,802 INFO SettingsFactory:160 - Connection release mode: null
[java] 14:55:21,803 INFO SettingsFactory:187 - Default batch fetch size: 1
[java] 14:55:21,804 INFO SettingsFactory:191 - Generate SQL with comments: disabled
[java] 14:55:21,804 INFO SettingsFactory:195 - Order SQL updates by primary key: disabled
[java] 14:55:21,804 INFO SettingsFactory:334 - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
[java] 14:55:21,808 INFO ASTQueryTranslatorFactory:21 - Using ASTQueryTranslatorFactory
[java] 14:55:21,809 INFO SettingsFactory:203 - Query language substitutions: {}
[java] 14:55:21,809 INFO SettingsFactory:209 - Second-level cache: enabled
[java] 14:55:21,809 INFO SettingsFactory:213 - Query cache: disabled
[java] 14:55:21,810 INFO SettingsFactory:321 - Cache provider: org.hibernate.cache.NoCacheProvider
[java] 14:55:21,811 INFO SettingsFactory:228 - Optimize cache for minimal puts: disabled
[java] 14:55:21,811 INFO SettingsFactory:237 - Structured second-level cache entries: disabled
[java] 14:55:21,813 DEBUG SQLExceptionConverterFactory:52 - Using dialect defined converter
[java] 14:55:21,816 INFO SettingsFactory:257 - Echoing all SQL to stdout
[java] 14:55:21,816 INFO SettingsFactory:261 - Statistics: disabled
[java] 14:55:21,816 INFO SettingsFactory:265 - Deleted entity synthetic identifier rollback: disabled
[java] 14:55:21,817 INFO SettingsFactory:279 - Default entity-mode: pojo
[java] 14:55:22,000 INFO SessionFactoryImpl:152 - building session factory
[java] 14:55:22,007 DEBUG SessionFactoryImpl:161 - Session factory constructed with filter configurations : {}
[java] 14:55:22,008 DEBUG SessionFactoryImpl:164 - instantiating session factory with properties: {hibernate.connection.password=, java.runtime.name=Java(TM) SE Runtime Environment, hibernate.cache.provider_class=org.hibernate.cache.NoCacheProvider, sun.boot.library.path=/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/i386, java.vm.version=1.6.0_03-b05, hibernate.connection.username=sa, 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.java.launcher=SUN_STANDARD, sun.os.patch.level=unknown, java.vm.specification.name=Java Virtual Machine Specification, user.dir=/home/ivar_m/workspace/hibernate tut, java.runtime.version=1.6.0_03-b05, java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment, hbm2ddl.auto=create, hibernate.current_session_context_class=thread, java.endorsed.dirs=/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/endorsed, os.arch=i386, java.io.tmpdir=/tmp, line.separator=
[java] , java.vm.specification.vendor=Sun Microsystems Inc., cache.provider_class=org.hibernate.cache.NoCacheProvider, os.name=Linux, sun.jnu.encoding=UTF-8, java.library.path=/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/i386/client:/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/i386:/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/../lib/i386:/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/i386/client::/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/i386::/usr/lib/mozilla-thunderbird-2.0.0.6:/usr/lib/mozilla-thunderbird-2.0.0.6:/usr/java/packages/lib/i386:/lib:/usr/lib, java.specification.name=Java Platform API Specification, java.class.version=50.0, hibernate.connection.pool_size=1, sun.management.compiler=HotSpot Client Compiler, os.version=2.6.18.8.tex5, connection.password=, user.home=/home/ivar_m, user.timezone=Europe/Helsinki, connection.username=sa, java.awt.printerjob=sun.print.PSPrinterJob, file.encoding=UTF-8, java.specification.version=1.6, hibernate.connection.driver_class=org.hsqldb.jdbcDriver, show_sql=true, user.name=ivar_m, java.class.path=/home/ivar_m/workspace/hibernate tut/lib/hsqldb.jar:/home/ivar_m/workspace/hibernate tut/lib/log4j-1.2.11.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/antlr-2.7.6.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/asm-attrs.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/asm.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/cglib-2.1.3.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/commons-collections-2.1.1.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/commons-logging-1.0.4.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/dom4j-1.6.1.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/ehcache-1.2.3.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/hibernate3.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/javassist.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/jaxen-1.1-beta-7.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/jdbc2_0-stdext.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/jgroups-2.2.8.jar:/home/ivar_m/workspace/hibernate tut/lib/hibernate/jta.jar:/home/ivar_m/workspace/hibernate tut/bin, hibernate.show_sql=true, current_session_context_class=thread, java.vm.specification.version=1.0, java.home=/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre, sun.arch.data.model=32, hibernate.dialect=org.hibernate.dialect.HSQLDialect, hibernate.connection.url=jdbc:hsqldb:hsql://localhost, connection.pool_size=1, user.language=en, java.specification.vendor=Sun Microsystems Inc., hibernate.cglib.use_reflection_optimizer=true, java.vm.info=mixed mode, java.version=1.6.0_03, java.ext.dirs=/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/ext:/usr/java/packages/lib/ext, sun.boot.class.path=/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/resources.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/rt.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/jsse.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/jce.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/lib/charsets.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.03/jre/classes, java.vendor=Sun Microsystems Inc., connection.driver_class=org.hsqldb.jdbcDriver, file.separator=/, hibernate.hbm2ddl.auto=create, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, connection.url=jdbc:hsqldb:hsql://localhost, dialect=org.hibernate.dialect.HSQLDialect, sun.cpu.isalist=}
[java] 14:55:22,275 DEBUG BasicEntityPersister:2220 - Static SQL for entity: events.Event
[java] 14:55:22,276 DEBUG BasicEntityPersister:2222 - Version select: select EVENT_ID from EVENTS where EVENT_ID =?
[java] 14:55:22,277 DEBUG BasicEntityPersister:2223 - Snapshot select: select event_.EVENT_ID, event_.EVENT_DATE as EVENT2_0_, event_.title as title0_ from EVENTS event_ where event_.EVENT_ID=?
[java] 14:55:22,277 DEBUG BasicEntityPersister:2225 - Insert 0: insert into EVENTS (EVENT_DATE, title, EVENT_ID) values (?, ?, ?)
[java] 14:55:22,277 DEBUG BasicEntityPersister:2226 - Update 0: update EVENTS set EVENT_DATE=?, title=? where EVENT_ID=?
[java] 14:55:22,278 DEBUG BasicEntityPersister:2227 - Delete 0: delete from EVENTS where EVENT_ID=?
[java] 14:55:22,278 DEBUG BasicEntityPersister:2230 - Identity insert: insert into EVENTS (EVENT_DATE, title, EVENT_ID) values (?, ?, null)
[java] 14:55:22,296 DEBUG EntityLoader:95 - Static select for entity events.Event: select event0_.EVENT_ID as EVENT1_0_, event0_.EVENT_DATE as EVENT2_0_0_, event0_.title as title0_0_ from EVENTS event0_ where event0_.EVENT_ID=?
[java] 14:55:22,297 DEBUG EntityLoader:95 - Static select for entity events.Event: select event0_.EVENT_ID as EVENT1_0_, event0_.EVENT_DATE as EVENT2_0_0_, event0_.title as title0_0_ from EVENTS event0_ where event0_.EVENT_ID=?
[java] 14:55:22,298 DEBUG EntityLoader:95 - Static select for entity events.Event: select event0_.EVENT_ID as EVENT1_0_, event0_.EVENT_DATE as EVENT2_0_0_, event0_.title as title0_0_ from EVENTS event0_ where event0_.EVENT_ID=?
[java] 14:55:22,298 DEBUG EntityLoader:95 - Static select for entity events.Event: select event0_.EVENT_ID as EVENT1_0_, event0_.EVENT_DATE as EVENT2_0_0_, event0_.title as title0_0_ from EVENTS event0_ where event0_.EVENT_ID=?
[java] 14:55:22,301 DEBUG SessionFactoryObjectFactory:39 - initializing class SessionFactoryObjectFactory
[java] 14:55:22,303 DEBUG SessionFactoryObjectFactory:76 - registered: ff80808117b62a9d0117b62a9fbb0000 (unnamed)
[java] 14:55:22,303 INFO SessionFactoryObjectFactory:82 - Not binding factory to JNDI, no JNDI name configured
[java] 14:55:22,304 DEBUG SessionFactoryImpl:262 - instantiated session factory
[java] 14:55:22,308 INFO Dialect:92 - Using dialect: org.hibernate.dialect.HSQLDialect
[java] 14:55:22,309 INFO Configuration:875 - processing extends queue
[java] 14:55:22,310 INFO Configuration:879 - processing collection mappings
[java] 14:55:22,310 INFO Configuration:888 - processing association property references
[java] 14:55:22,310 INFO Configuration:917 - processing foreign key constraints
[java] 14:55:22,311 INFO Configuration:875 - processing extends queue
[java] 14:55:22,311 INFO Configuration:879 - processing collection mappings
[java] 14:55:22,311 INFO Configuration:888 - processing association property references
[java] 14:55:22,311 INFO Configuration:917 - processing foreign key constraints
[java] 14:55:22,314 INFO SchemaExport:113 - Running hbm2ddl schema export
[java] 14:55:22,314 INFO SchemaExport:129 - exporting generated schema to database
[java] 14:55:22,315 INFO DriverManagerConnectionProvider:41 - Using Hibernate built-in connection pool (not for production use!)
[java] 14:55:22,315 INFO DriverManagerConnectionProvider:42 - Hibernate connection pool size: 1
[java] 14:55:22,315 INFO DriverManagerConnectionProvider:45 - autocommit mode: false
[java] 14:55:22,316 INFO DriverManagerConnectionProvider:80 - using driver: org.hsqldb.jdbcDriver at URL: jdbc:hsqldb:hsql://localhost
[java] 14:55:22,316 INFO DriverManagerConnectionProvider:83 - connection properties: {user=sa, password=}
[java] 14:55:22,316 DEBUG DriverManagerConnectionProvider:93 - total checked-out connections: 0
[java] 14:55:22,317 DEBUG DriverManagerConnectionProvider:109 - opening new JDBC connection
[java] 14:55:22,318 DEBUG DriverManagerConnectionProvider:115 - created connection to: jdbc:hsqldb:hsql://localhost, Isolation Level: 2
[java] 14:55:22,320 DEBUG SchemaExport:143 - drop table EVENTS if exists
[java] 14:55:22,321 DEBUG SchemaExport:161 - create table EVENTS (
[java] EVENT_ID bigint generated by default as identity (start with 1),
[java] EVENT_DATE timestamp,
[java] title varchar(255),
[java] primary key (EVENT_ID)
[java] )
[java] 14:55:22,324 INFO SchemaExport:173 - schema export complete
[java] 14:55:22,326 DEBUG DriverManagerConnectionProvider:129 - returning connection to pool, pool size: 1
[java] 14:55:22,326 INFO DriverManagerConnectionProvider:147 - cleaning up connection pool: jdbc:hsqldb:hsql://localhost
[java] 14:55:22,327 INFO SessionFactoryImpl:379 - Checking 0 named queries
[java] Exception in thread "main" org.hibernate.HibernateException: No TransactionManagerLookup specified
[java] at org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:503)
[java] at events.EventManager.createAndStoreEvent(Unknown Source)
[java] at events.EventManager.main(Unknown Source)
[java] Java Result: 1
BUILD SUCCESSFUL
Total time: 3 seconds


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 26, 2008 11:48 am 
Newbie

Joined: Tue Jan 15, 2008 10:07 am
Posts: 14
This seems odd:

[java] 14:55:22,326 DEBUG DriverManagerConnectionProvider:129 - returning connection to pool, pool size: 1
[java] 14:55:22,326 INFO DriverManagerConnectionProvider:147 - cleaning up connection pool: jdbc:hsqldb:hsql://localhost

After exporting the database schema and releasing the connection back to the connection pool, the connection pool itself gets cleaned up, closing all of its connections. That shouldn't happen.


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

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.