I have a simple object TestEvent see below that comes from the tutorial, and it worked fine until I added a "uri" key field for the id and changed the generator class to assigned.
The JUnit test populates the test bean uri field along with the other fields as you can see in the xml serialization of the bean before trying to save it below.
The uri property of the bean is not null, yet it is throwing a Hibernate Exception that seems to indicate it is.
I searched this forum and found one thread that was similar and the response was the severity of the exception was 'info'.
I don't see in the debugger where I can detect the severity of the exception to handle it properly, or an example of a try catch block wrapping a session.save(bean) where the id is assigned.
Hibernate version:3.0
Mapping documents:
Code:
<hibernate-mapping>
<class name="com.ajcs.hibernatestores.test.TestEvent" table="EVENTS">
<id name="id" column="uri" type="string">
<generator class="assigned"/>
</id>
<property name="date" type="timestamp"/>
<property name="title" column="eventtitle"/>
</class>
</hibernate-mapping>
Code between sessionFactory.openSession() and session.close():Code:
try {
HibernateUtil hUtil = new HibernateUtil(storeDir + uri + "/Hibernate.cfg.xml" );
Session session = hUtil.currentSession();
Transaction tx = session.beginTransaction();
session.save(tBean);
tx.commit();
tx = session.beginTransaction();
Object result = session.load(tBean.getClass(), testUri);
tx.commit();
hUtil.closeSession();
} catch (HibernateException e) {
e.printStackTrace();
Assert.fail(e.getLocalizedMessage());
} catch (FileNotFoundException e) {
Assert.fail(e.getLocalizedMessage());
} catch (IOException e) {
Assert.fail(e.getLocalizedMessage());
}
Full stack trace of any exception that occurs:Code:
org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): com.ajcs.hibernatestores.test.TestEvent
at org.hibernate.id.Assigned.generate(Assigned.java:32)
at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:85)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:184)
at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:33)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:173)
at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:27)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:69)
at org.hibernate.impl.SessionImpl.save(SessionImpl.java:481)
at org.hibernate.impl.SessionImpl.save(SessionImpl.java:476)
at com.ajcs.hibernatestores.test.HibernateStoresTests.testInitHibernate(HibernateStoresTests.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:436)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:311)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
Name and version of the database you are using:HSQLDB see below.
The generated SQL (show_sql=true):Didn't get that far.
Debug level Hibernate log excerpt:Code:
[2005-07-15 10:58:10,203] DEBUG HibernateStoresTests : <?xml version="1.0" encoding="UTF-8"?>
<java version="1.4.2_06" class="java.beans.XMLDecoder">
<object class="com.ajcs.hibernatestores.test.TestEvent">
<void property="date">
<object class="java.util.Date">
<long>1121450284250</long>
</object>
</void>
<void property="title">
<string>My First Hibernate Test Event</string>
</void>
<void property="uri">
<string>./TestEvent.xml</string>
</void>
</object>
</java>
[2005-07-15 10:58:30,953] INFO Environment : Hibernate 3.0.5
[2005-07-15 10:58:30,968] INFO Environment : hibernate.properties not found
[2005-07-15 10:58:30,984] INFO Environment : using CGLIB reflection optimizer
[2005-07-15 10:58:30,984] INFO Environment : using JDK 1.4 java.sql.Timestamp handling
[2005-07-15 10:58:31,500] INFO Configuration : configuring from file: Hibernate.cfg.xml
[2005-07-15 10:58:31,937] DEBUG DTDEntityResolver : trying to locate http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd in classpath under org/hibernate/
[2005-07-15 10:58:31,937] DEBUG DTDEntityResolver : found http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd in classpath
[2005-07-15 10:58:32,203] DEBUG Configuration : hibernate.connection.driver_class=org.hsqldb.jdbcDriver
[2005-07-15 10:58:32,203] DEBUG Configuration : hibernate.connection.url=jdbc:hsqldb:data/test
[2005-07-15 10:58:32,203] DEBUG Configuration : hibernate.connection.username=sa
[2005-07-15 10:58:32,218] DEBUG Configuration : hibernate.connection.password=
[2005-07-15 10:58:32,218] DEBUG Configuration : dialect=org.hibernate.dialect.HSQLDialect
[2005-07-15 10:58:32,218] DEBUG Configuration : show_sql=true
[2005-07-15 10:58:32,218] DEBUG Configuration : transaction.factory_class=org.hibernate.transaction.JDBCTransactionFactory
[2005-07-15 10:58:32,218] DEBUG Configuration : hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider
[2005-07-15 10:58:32,218] DEBUG Configuration : hibernate.hbm2ddl.auto=create
[2005-07-15 10:58:32,218] DEBUG Configuration : null<-org.dom4j.tree.DefaultAttribute@983d95 [Attribute: name file value "/Java/eclipse/workspace/HibernateStores/resources/Test/com.ajcs.hibernatestores.test.TestEvent/TestEvent.hbm.xml"]
[2005-07-15 10:58:32,218] INFO Configuration : Mapping file: /Java/eclipse/workspace/HibernateStores/resources/Test/com.ajcs.hibernatestores.test.TestEvent/TestEvent.hbm.xml
[2005-07-15 10:58:32,234] DEBUG DTDEntityResolver : trying to locate http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath under org/hibernate/
[2005-07-15 10:58:32,250] DEBUG DTDEntityResolver : found http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath
[2005-07-15 10:58:32,875] INFO HbmBinder : Mapping class: com.ajcs.hibernatestores.test.TestEvent -> EVENTS
[2005-07-15 10:58:32,921] DEBUG HbmBinder : Mapped property: id -> uri
[2005-07-15 10:58:33,015] DEBUG HbmBinder : Mapped property: date -> date
[2005-07-15 10:58:33,109] DEBUG HbmBinder : Mapped property: title -> eventtitle
[2005-07-15 10:58:33,109] INFO Configuration : Configured SessionFactory: null
[2005-07-15 10:58:33,109] DEBUG Configuration : properties: {hibernate.connection.password=, java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, transaction.factory_class=org.hibernate.transaction.JDBCTransactionFactory, hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider, sun.boot.library.path=C:\Program Files\Java\j2re1.4.2_06\bin, java.vm.version=1.4.2_06-b03, 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.os.patch.level=Service Pack 2, java.vm.specification.name=Java Virtual Machine Specification, user.dir=C:\Java\eclipse\workspace\HibernateStores, java.runtime.version=1.4.2_06-b03, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.endorsed.dirs=C:\Program Files\Java\j2re1.4.2_06\lib\endorsed, os.arch=x86, java.io.tmpdir=C:\DOCUME~1\MICHAE~1\LOCALS~1\Temp\, line.separator=
, java.vm.specification.vendor=Sun Microsystems Inc., user.variant=, os.name=Windows XP, sun.java2d.fontpath=, java.library.path=C:\Program Files\Java\j2re1.4.2_06\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\j2sdk1.4.2_05\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\Adaptec Shared\System;C:\Program Files\Support Tools\;C:\Program Files\Common Files\Autodesk Shared\;C:\Python23;c:\java\apache-ant-1.6.2\bin;C:\java\JONAS_4_3_3/bin/nt;C:\Sun\AppServer\bin;c:\program files\winzip;, java.specification.name=Java Platform API Specification, java.class.version=48.0, hibernate.transaction.factory_class=org.hibernate.transaction.JDBCTransactionFactory, java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFactory, os.version=5.1, user.home=C:\Documents and Settings\Michael Oliver, user.timezone=America/Los_Angeles, java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=Cp1252, java.specification.version=1.4, hibernate.connection.driver_class=org.hsqldb.jdbcDriver, show_sql=true, user.name=Michael Oliver, java.class.path=/c:/Java/eclipse/plugins/org.eclipse.jdt.junit_3.0.1/junitsupport.jar;/c:/Java/eclipse/plugins/org.eclipse.jdt.junit.runtime_3.0.2/junitruntime.jar;C:\Java\eclipse\workspace\HibernateStores\bin;C:\Java\eclipse\workspace\HibernateStores\lib\commons-codec-1.3.jar;C:\Java\eclipse\workspace\HibernateStores\lib\commons-dbcp-1.2.1.jar;C:\Java\eclipse\workspace\HibernateStores\lib\commons-httpclient.jar;C:\Java\eclipse\workspace\HibernateStores\lib\commons-pool-1.1.jar;C:\Java\eclipse\workspace\HibernateStores\lib\commons-transaction-1.0.jar;C:\Java\eclipse\workspace\HibernateStores\lib\geronimo-jta.jar;C:\Java\eclipse\workspace\HibernateStores\lib\jakarta-slide-webdavlib-2.1.jar;C:\Java\eclipse\workspace\HibernateStores\lib\jaxen-core.jar;C:\Java\eclipse\workspace\HibernateStores\lib\jaxen-jdom.jar;C:\Java\eclipse\workspace\HibernateStores\lib\jdom-1.0.jar;C:\Java\eclipse\workspace\HibernateStores\lib\lucene-1.4-final.jar;C:\Java\eclipse\workspace\HibernateStores\lib\PDFBox-0.6.5.jar;C:\Java\eclipse\workspace\HibernateStores\lib\poi-2.5-final-20040428.jar;C:\Java\eclipse\workspace\HibernateStores\lib\saxpath.jar;C:\Java\eclipse\workspace\HibernateStores\lib\slide-jaas-2.1.jar;C:\Java\eclipse\workspace\HibernateStores\lib\slide-jdk14logger-2.1.jar;C:\Java\eclipse\workspace\HibernateStores\lib\slide-kernel-2.1.jar;C:\Java\eclipse\workspace\HibernateStores\lib\slide-log4jlogger-2.1.jar;C:\Java\eclipse\workspace\HibernateStores\lib\slide-roles-2.1.jar;C:\Java\eclipse\workspace\HibernateStores\lib\slide-stores-2.1.jar;C:\Java\eclipse\workspace\HibernateStores\lib\slide-webdavservlet-2.1.jar;C:\Java\eclipse\workspace\HibernateStores\lib\tm-extractors-0.4.jar;C:\Java\eclipse\workspace\HibernateStores\lib\xml-im-exporter1.1.jar;C:\Java\eclipse\workspace\HibernateStores\lib\ant-1.6.3.jar;C:\Java\eclipse\workspace\HibernateStores\lib\ant-antlr-1.6.3.jar;C:\Java\eclipse\workspace\HibernateStores\lib\ant-junit-1.6.3.jar;C:\Java\eclipse\workspace\HibernateStores\lib\ant-launcher-1.6.3.jar;C:\Java\eclipse\workspace\HibernateStores\lib\antlr-2.7.5H3.jar;C:\Java\eclipse\workspace\HibernateStores\lib\ant-swing-1.6.3.jar;C:\Java\eclipse\workspace\HibernateStores\lib\asm.jar;C:\Java\eclipse\workspace\HibernateStores\lib\asm-attrs.jar;C:\Java\eclipse\workspace\HibernateStores\lib\c3p0-0.8.5.2.jar;C:\Java\eclipse\workspace\HibernateStores\lib\cglib-2.1.jar;C:\Java\eclipse\workspace\HibernateStores\lib\cleanimports.jar;C:\Java\eclipse\workspace\HibernateStores\lib\commons-collections-2.1.1.jar;C:\Java\eclipse\workspace\HibernateStores\lib\commons-logging-1.0.4.jar;C:\Java\eclipse\workspace\HibernateStores\lib\concurrent-1.3.2.jar;C:\Java\eclipse\workspace\HibernateStores\lib\connector.jar;C:\Java\eclipse\workspace\HibernateStores\lib\dom4j-1.6.jar;C:\Java\eclipse\workspace\HibernateStores\lib\ehcache-1.1.jar;C:\Java\eclipse\workspace\HibernateStores\lib\jaas.jar;C:\Java\eclipse\workspace\HibernateStores\lib\jacc-1_0-fr.jar;C:\Java\eclipse\workspace\HibernateStores\lib\jaxen-1.1-beta-4.jar;C:\Java\eclipse\workspace\HibernateStores\lib\jboss-cache.jar;C:\Java\eclipse\workspace\HibernateStores\lib\jboss-common.jar;C:\Java\eclipse\workspace\HibernateStores\lib\jboss-jmx.jar;C:\Java\eclipse\workspace\HibernateStores\lib\jboss-system.jar;C:\Java\eclipse\workspace\HibernateStores\lib\jdbc2_0-stdext.jar;C:\Java\eclipse\workspace\HibernateStores\lib\jgroups-2.2.7.jar;C:\Java\eclipse\workspace\HibernateStores\lib\jta.jar;C:\Java\eclipse\workspace\HibernateStores\lib\junit-3.8.1.jar;C:\Java\eclipse\workspace\HibernateStores\lib\log4j-1.2.9.jar;C:\Java\eclipse\workspace\HibernateStores\lib\oscache-2.1.jar;C:\Java\eclipse\workspace\HibernateStores\lib\proxool-0.8.3.jar;C:\Java\eclipse\workspace\HibernateStores\lib\swarmcache-1.0rc2.jar;C:\Java\eclipse\workspace\HibernateStores\lib\versioncheck.jar;C:\Java\eclipse\workspace\HibernateStores\lib\xerces-2.6.2.jar;C:\Java\eclipse\workspace\HibernateStores\lib\xml-apis.jar;C:\Java\eclipse\workspace\HibernateStores\lib\hibernate3.jar;C:\Java\eclipse\workspace\HibernateStores\lib\jakarta-regexp-1.3.jar;C:\Java\eclipse\workspace\HibernateStores\lib\hsqldb.jar;C:\Java\eclipse\workspace\HibernateStores\lib\commons-httpclient-contrib.jar;C:\Java\eclipse\workspace\HibernateStores\lib\struts.jar;C:\Java\eclipse\workspace\HibernateStores\lib\servlet-api.jar;C:\Java\ArchivedWorkspaces\AJRegistries\dist\lib\AJRegistries.jar;C:\Java\ArchivedWorkspaces\AJContentClient\dist\lib\AJContentClient.jar;C:\Java\ArchivedWorkspaces\AJContentServer\dist\lib\AJContentServer.jar, hibernate.show_sql=true, java.vm.specification.version=1.0, java.home=C:\Program Files\Java\j2re1.4.2_06, sun.arch.data.model=32, hibernate.dialect=org.hibernate.dialect.HSQLDialect, hibernate.connection.url=jdbc:hsqldb:data/test, 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_06, java.ext.dirs=C:\Program Files\Java\j2re1.4.2_06\lib\ext, sun.boot.class.path=C:\Program Files\Java\j2re1.4.2_06\lib\rt.jar;C:\Program Files\Java\j2re1.4.2_06\lib\i18n.jar;C:\Program Files\Java\j2re1.4.2_06\lib\sunrsasign.jar;C:\Program Files\Java\j2re1.4.2_06\lib\jsse.jar;C:\Program Files\Java\j2re1.4.2_06\lib\jce.jar;C:\Program Files\Java\j2re1.4.2_06\lib\charsets.jar;C:\Program Files\Java\j2re1.4.2_06\classes, java.vendor=Sun Microsystems Inc., 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, dialect=org.hibernate.dialect.HSQLDialect, sun.cpu.isalist=pentium i486 i386}
[2005-07-15 10:58:34,875] DEBUG Configuration : Preparing to build session factory with filters : {}
[2005-07-15 10:58:34,875] INFO Configuration : processing extends queue
[2005-07-15 10:58:34,875] INFO Configuration : processing collection mappings
[2005-07-15 10:58:34,875] INFO Configuration : processing association property references
[2005-07-15 10:58:34,875] INFO Configuration : processing foreign key constraints
[2005-07-15 10:58:35,390] INFO riverManagerConnectionProvider: Using Hibernate built-in connection pool (not for production use!)
[2005-07-15 10:58:35,390] INFO riverManagerConnectionProvider: Hibernate connection pool size: 20
[2005-07-15 10:58:35,390] INFO riverManagerConnectionProvider: autocommit mode: false
[2005-07-15 10:58:35,421] INFO riverManagerConnectionProvider: using driver: org.hsqldb.jdbcDriver at URL: jdbc:hsqldb:data/test
[2005-07-15 10:58:35,421] INFO riverManagerConnectionProvider: connection properties: {user=sa, password=}
[2005-07-15 10:58:35,421] DEBUG riverManagerConnectionProvider: total checked-out connections: 0
[2005-07-15 10:58:35,421] DEBUG riverManagerConnectionProvider: opening new JDBC connection
[2005-07-15 10:58:37,171] DEBUG riverManagerConnectionProvider: created connection to: jdbc:hsqldb:data/test, Isolation Level: 0
[2005-07-15 10:58:37,265] INFO SettingsFactory : RDBMS: HSQL Database Engine, version: 1.8.0
[2005-07-15 10:58:37,265] INFO SettingsFactory : JDBC driver: HSQL Database Engine Driver, version: 1.8.0
[2005-07-15 10:58:37,265] DEBUG riverManagerConnectionProvider: returning connection to pool, pool size: 1
[2005-07-15 10:58:37,437] INFO Dialect : Using dialect: org.hibernate.dialect.HSQLDialect
[2005-07-15 10:58:37,484] INFO TransactionFactoryFactory : Transaction strategy: org.hibernate.transaction.JDBCTransactionFactory
[2005-07-15 10:58:37,515] INFO ransactionManagerLookupFactory: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
[2005-07-15 10:58:37,515] INFO SettingsFactory : Automatic flush during beforeCompletion(): disabled
[2005-07-15 10:58:37,515] INFO SettingsFactory : Automatic session close at end of transaction: disabled
[2005-07-15 10:58:37,515] INFO SettingsFactory : JDBC batch size: 15
[2005-07-15 10:58:37,515] INFO SettingsFactory : JDBC batch updates for versioned data: disabled
[2005-07-15 10:58:37,531] INFO SettingsFactory : Scrollable result sets: enabled
[2005-07-15 10:58:37,531] DEBUG SettingsFactory : Wrap result sets: disabled
[2005-07-15 10:58:37,531] INFO SettingsFactory : JDBC3 getGeneratedKeys(): disabled
[2005-07-15 10:58:37,531] INFO SettingsFactory : Connection release mode: null
[2005-07-15 10:58:37,546] INFO SettingsFactory : Default batch fetch size: 1
[2005-07-15 10:58:37,546] INFO SettingsFactory : Generate SQL with comments: disabled
[2005-07-15 10:58:37,546] INFO SettingsFactory : Order SQL updates by primary key: disabled
[2005-07-15 10:58:37,546] INFO SettingsFactory : Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
[2005-07-15 10:58:37,578] INFO ASTQueryTranslatorFactory : Using ASTQueryTranslatorFactory
[2005-07-15 10:58:37,578] INFO SettingsFactory : Query language substitutions: {}
[2005-07-15 10:58:37,593] INFO SettingsFactory : Second-level cache: enabled
[2005-07-15 10:58:37,593] INFO SettingsFactory : Query cache: disabled
[2005-07-15 10:58:37,593] INFO SettingsFactory : Cache provider: org.hibernate.cache.HashtableCacheProvider
[2005-07-15 10:58:37,609] INFO SettingsFactory : Optimize cache for minimal puts: disabled
[2005-07-15 10:58:37,609] INFO SettingsFactory : Structured second-level cache entries: disabled
[2005-07-15 10:58:37,625] DEBUG SQLExceptionConverterFactory : Using dialect defined converter
[2005-07-15 10:58:37,687] INFO SettingsFactory : Echoing all SQL to stdout
[2005-07-15 10:58:37,687] INFO SettingsFactory : Statistics: disabled
[2005-07-15 10:58:37,687] INFO SettingsFactory : Deleted entity synthetic identifier rollback: disabled
[2005-07-15 10:58:37,703] INFO SettingsFactory : Default entity-mode: pojo
[2005-07-15 10:58:38,343] INFO SessionFactoryImpl : building session factory
[2005-07-15 10:58:38,343] DEBUG SessionFactoryImpl : Session factory constructed with filter configurations : {}
[2005-07-15 10:58:38,359] DEBUG SessionFactoryImpl : instantiating session factory with properties: {hibernate.connection.password=, java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, transaction.factory_class=org.hibernate.transaction.JDBCTransactionFactory, hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider, sun.boot.library.path=C:\Program Files\Java\j2re1.4.2_06\bin, java.vm.version=1.4.2_06-b03, 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.os.patch.level=Service Pack 2, java.vm.specification.name=Java Virtual Machine Specification, user.dir=C:\Java\eclipse\workspace\HibernateStores, java.runtime.version=1.4.2_06-b03, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.endorsed.dirs=C:\Program Files\Java\j2re1.4.2_06\lib\endorsed, os.arch=x86, java.io.tmpdir=C:\DOCUME~1\MICHAE~1\LOCALS~1\Temp\, line.separator=
, java.vm.specification.vendor=Sun Microsystems Inc., user.variant=, os.name=Windows XP, sun.java2d.fontpath=, java.library.path=C:\Program Files\Java\j2re1.4.2_06\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\j2sdk1.4.2_05\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\Adaptec Shared\System;C:\Program Files\Support Tools\;C:\Program Files\Common Files\Autodesk Shared\;C:\Python23;c:\java\apache-ant-1.6.2\bin;C:\java\JONAS_4_3_3/bin/nt;C:\Sun\AppServer\bin;c:\program files\winzip;, java.specification.name=Java Platform API Specification, java.class.version=48.0, hibernate.transaction.factory_class=org.hibernate.transaction.JDBCTransactionFactory, java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFactory, os.version=5.1, user.home=C:\Documents and Settings\Michael Oliver, user.timezone=America/Los_Angeles, java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=Cp1252, java.specification.version=1.4, hibernate.connection.driver_class=org.hsqldb.jdbcDriver, show_sql=true, user.name=Michael Oliver, java.class.path=/c:/Java/eclipse/plugins/org.eclipse.jdt.junit_3.0.1/junitsupport.jar;/c:/Java/eclipse/plugins/org.eclipse.jdt.junit.runtime_3.0.2/junitruntime.jar;C:\Java\eclipse\workspace\HibernateStores\bin;C:\Java\eclipse\workspace\HibernateStores\lib\commons-codec-1.3.jar;C:\Java\eclipse\workspace\HibernateStores\lib\commons-dbcp-1.2.1.jar;C:\Java\eclipse\workspace\HibernateStores\lib\commons-httpclient.jar;C:\Java\eclipse\workspace\HibernateStores\lib\commons-pool-1.1.jar;C:\Java\eclipse\workspace\HibernateStores\lib\commons-transaction-1.0.jar;C:\Java\eclipse\workspace\HibernateStores\lib\geronimo-jta.jar;C:\Java\eclipse\workspace\HibernateStores\lib\jakarta-slide-webdavlib-2.1.jar;C:\Java\eclipse\workspace\HibernateStores\lib\jaxen-core.jar;C:\Java\eclipse\workspace\HibernateStores\lib\jaxen-jdom.jar;C:\Java\eclipse\workspace\HibernateStores\lib\jdom-1.0.jar;C:\Java\eclipse\workspace\HibernateStores\lib\lucene-1.4-final.jar;C:\Java\eclipse\workspace\HibernateStores\lib\PDFBox-0.6.5.jar;C:\Java\eclipse\workspace\HibernateStores\lib\poi-2.5-final-20040428.jar;C:\Java\eclipse\workspace\HibernateStores\lib\saxpath.jar;C:\Java\eclipse\workspace\HibernateStores\lib\slide-jaas-2.1.jar;C:\Java\eclipse\workspace\HibernateStores\lib\slide-jdk14logger-2.1.jar;C:\Java\eclipse\workspace\HibernateStores\lib\slide-kernel-2.1.jar;C:\Java\eclipse\workspace\HibernateStores\lib\slide-log4jlogger-2.1.jar;C:\Java\eclipse\workspace\HibernateStores\lib\slide-roles-2.1.jar;C:\Java\eclipse\workspace\HibernateStores\lib\slide-stores-2.1.jar;C:\Java\eclipse\workspace\HibernateStores\lib\slide-webdavservlet-2.1.jar;C:\Java\eclipse\workspace\HibernateStores\lib\tm-extractors-0.4.jar;C:\Java\eclipse\workspace\HibernateStores\lib\xml-im-exporter1.1.jar;C:\Java\eclipse\workspace\HibernateStores\lib\ant-1.6.3.jar;C:\Java\eclipse\workspace\HibernateStores\lib\ant-antlr-1.6.3.jar;C:\Java\eclipse\workspace\HibernateStores\lib\ant-junit-1.6.3.jar;C:\Java\eclipse\workspace\HibernateStores\lib\ant-launcher-1.6.3.jar;C:\Java\eclipse\workspace\HibernateStores\lib\antlr-2.7.5H3.jar;C:\Java\eclipse\workspace\HibernateStores\lib\ant-swing-1.6.3.jar;C:\Java\eclipse\workspace\HibernateStores\lib\asm.jar;C:\Java\eclipse\workspace\HibernateStores\lib\asm-attrs.jar;C:\Java\eclipse\workspace\HibernateStores\lib\c3p0-0.8.5.2.jar;C:\Java\eclipse\workspace\HibernateStores\lib\cglib-2.1.jar;C:\Java\eclipse\workspace\HibernateStores\lib\cleanimports.jar;C:\Java\eclipse\workspace\HibernateStores\lib\commons-collections-2.1.1.jar;C:\Java\eclipse\workspace\HibernateStores\lib\commons-logging-1.0.4.jar;C:\Java\eclipse\workspace\HibernateStores\lib\concurrent-1.3.2.jar;C:\Java\eclipse\workspace\HibernateStores\lib\connector.jar;C:\Java\eclipse\workspace\HibernateStores\lib\dom4j-1.6.jar;C:\Java\eclipse\workspace\HibernateStores\lib\ehcache-1.1.jar;C:\Java\eclipse\workspace\HibernateStores\lib\jaas.jar;C:\Java\eclipse\workspace\HibernateStores\lib\jacc-1_0-fr.jar;C:\Java\eclipse\workspace\HibernateStores\lib\jaxen-1.1-beta-4.jar;C:\Java\eclipse\workspace\HibernateStores\lib\jboss-cache.jar;C:\Java\eclipse\workspace\HibernateStores\lib\jboss-common.jar;C:\Java\eclipse\workspace\HibernateStores\lib\jboss-jmx.jar;C:\Java\eclipse\workspace\HibernateStores\lib\jboss-system.jar;C:\Java\eclipse\workspace\HibernateStores\lib\jdbc2_0-stdext.jar;C:\Java\eclipse\workspace\HibernateStores\lib\jgroups-2.2.7.jar;C:\Java\eclipse\workspace\HibernateStores\lib\jta.jar;C:\Java\eclipse\workspace\HibernateStores\lib\junit-3.8.1.jar;C:\Java\eclipse\workspace\HibernateStores\lib\log4j-1.2.9.jar;C:\Java\eclipse\workspace\HibernateStores\lib\oscache-2.1.jar;C:\Java\eclipse\workspace\HibernateStores\lib\proxool-0.8.3.jar;C:\Java\eclipse\workspace\HibernateStores\lib\swarmcache-1.0rc2.jar;C:\Java\eclipse\workspace\HibernateStores\lib\versioncheck.jar;C:\Java\eclipse\workspace\HibernateStores\lib\xerces-2.6.2.jar;C:\Java\eclipse\workspace\HibernateStores\lib\xml-apis.jar;C:\Java\eclipse\workspace\HibernateStores\lib\hibernate3.jar;C:\Java\eclipse\workspace\HibernateStores\lib\jakarta-regexp-1.3.jar;C:\Java\eclipse\workspace\HibernateStores\lib\hsqldb.jar;C:\Java\eclipse\workspace\HibernateStores\lib\commons-httpclient-contrib.jar;C:\Java\eclipse\workspace\HibernateStores\lib\struts.jar;C:\Java\eclipse\workspace\HibernateStores\lib\servlet-api.jar;C:\Java\ArchivedWorkspaces\AJRegistries\dist\lib\AJRegistries.jar;C:\Java\ArchivedWorkspaces\AJContentClient\dist\lib\AJContentClient.jar;C:\Java\ArchivedWorkspaces\AJContentServer\dist\lib\AJContentServer.jar, hibernate.show_sql=true, java.vm.specification.version=1.0, java.home=C:\Program Files\Java\j2re1.4.2_06, sun.arch.data.model=32, hibernate.dialect=org.hibernate.dialect.HSQLDialect, hibernate.connection.url=jdbc:hsqldb:data/test, 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_06, java.ext.dirs=C:\Program Files\Java\j2re1.4.2_06\lib\ext, sun.boot.class.path=C:\Program Files\Java\j2re1.4.2_06\lib\rt.jar;C:\Program Files\Java\j2re1.4.2_06\lib\i18n.jar;C:\Program Files\Java\j2re1.4.2_06\lib\sunrsasign.jar;C:\Program Files\Java\j2re1.4.2_06\lib\jsse.jar;C:\Program Files\Java\j2re1.4.2_06\lib\jce.jar;C:\Program Files\Java\j2re1.4.2_06\lib\charsets.jar;C:\Program Files\Java\j2re1.4.2_06\classes, java.vendor=Sun Microsystems Inc., 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, dialect=org.hibernate.dialect.HSQLDialect, sun.cpu.isalist=pentium i486 i386}
[2005-07-15 10:58:40,593] DEBUG BasicEntityPersister : Static SQL for entity: com.ajcs.hibernatestores.test.TestEvent
[2005-07-15 10:58:40,593] DEBUG BasicEntityPersister : Version select: select uri from EVENTS where uri =?
[2005-07-15 10:58:40,593] DEBUG BasicEntityPersister : Snapshot select: select testevent_.uri, testevent_.date as date0_, testevent_.eventtitle as eventtitle0_ from EVENTS testevent_ where testevent_.uri=?
[2005-07-15 10:58:40,593] DEBUG BasicEntityPersister : Insert 0: insert into EVENTS (date, eventtitle, uri) values (?, ?, ?)
[2005-07-15 10:58:40,609] DEBUG BasicEntityPersister : Update 0: update EVENTS set date=?, eventtitle=? where uri=?
[2005-07-15 10:58:40,609] DEBUG BasicEntityPersister : Delete 0: delete from EVENTS where uri=?
[2005-07-15 10:58:40,750] DEBUG EntityLoader : Static select for entity com.ajcs.hibernatestores.test.TestEvent: select testevent0_.uri as uri0_, testevent0_.date as date0_0_, testevent0_.eventtitle as eventtitle0_0_ from EVENTS testevent0_ where testevent0_.uri=?
[2005-07-15 10:58:40,750] DEBUG EntityLoader : Static select for entity com.ajcs.hibernatestores.test.TestEvent: select testevent0_.uri as uri0_, testevent0_.date as date0_0_, testevent0_.eventtitle as eventtitle0_0_ from EVENTS testevent0_ where testevent0_.uri=?
[2005-07-15 10:58:40,765] DEBUG EntityLoader : Static select for entity com.ajcs.hibernatestores.test.TestEvent: select testevent0_.uri as uri0_, testevent0_.date as date0_0_, testevent0_.eventtitle as eventtitle0_0_ from EVENTS testevent0_ where testevent0_.uri=?
[2005-07-15 10:58:40,765] DEBUG EntityLoader : Static select for entity com.ajcs.hibernatestores.test.TestEvent: select testevent0_.uri as uri0_, testevent0_.date as date0_0_, testevent0_.eventtitle as eventtitle0_0_ from EVENTS testevent0_ where testevent0_.uri=?
[2005-07-15 10:58:40,765] DEBUG EntityLoader : Static select for entity com.ajcs.hibernatestores.test.TestEvent: select testevent0_.uri as uri0_, testevent0_.date as date0_0_, testevent0_.eventtitle as eventtitle0_0_ from EVENTS testevent0_ where testevent0_.uri=?
[2005-07-15 10:58:40,765] DEBUG EntityLoader : Static select for entity com.ajcs.hibernatestores.test.TestEvent: select testevent0_.uri as uri0_, testevent0_.date as date0_0_, testevent0_.eventtitle as eventtitle0_0_ from EVENTS testevent0_ where testevent0_.uri=?
[2005-07-15 10:58:40,765] DEBUG EntityLoader : Static select for entity com.ajcs.hibernatestores.test.TestEvent: select testevent0_.uri as uri0_, testevent0_.date as date0_0_, testevent0_.eventtitle as eventtitle0_0_ from EVENTS testevent0_ where testevent0_.uri=?
[2005-07-15 10:58:40,765] DEBUG EntityLoader : Static select for entity com.ajcs.hibernatestores.test.TestEvent: select testevent0_.uri as uri0_, testevent0_.date as date0_0_, testevent0_.eventtitle as eventtitle0_0_ from EVENTS testevent0_ where testevent0_.uri=?
[2005-07-15 10:58:40,781] DEBUG SessionFactoryObjectFactory : initializing class SessionFactoryObjectFactory
[2005-07-15 10:58:40,812] DEBUG SessionFactoryObjectFactory : registered: 402881e5051ba5d701051ba5e37d0000 (unnamed)
[2005-07-15 10:58:40,812] INFO SessionFactoryObjectFactory : Not binding factory to JNDI, no JNDI name configured
[2005-07-15 10:58:40,812] DEBUG SessionFactoryImpl : instantiated session factory
[2005-07-15 10:58:40,843] INFO Dialect : Using dialect: org.hibernate.dialect.HSQLDialect
[2005-07-15 10:58:40,859] INFO Configuration : processing extends queue
[2005-07-15 10:58:40,859] INFO Configuration : processing collection mappings
[2005-07-15 10:58:40,859] INFO Configuration : processing association property references
[2005-07-15 10:58:40,859] INFO Configuration : processing foreign key constraints
[2005-07-15 10:58:40,859] INFO Configuration : processing extends queue
[2005-07-15 10:58:40,859] INFO Configuration : processing collection mappings
[2005-07-15 10:58:40,859] INFO Configuration : processing association property references
[2005-07-15 10:58:40,859] INFO Configuration : processing foreign key constraints
[2005-07-15 10:58:40,875] INFO SchemaExport : Running hbm2ddl schema export
[2005-07-15 10:58:40,875] INFO SchemaExport : exporting generated schema to database
[2005-07-15 10:58:40,875] INFO riverManagerConnectionProvider: Using Hibernate built-in connection pool (not for production use!)
[2005-07-15 10:58:40,875] INFO riverManagerConnectionProvider: Hibernate connection pool size: 20
[2005-07-15 10:58:40,875] INFO riverManagerConnectionProvider: autocommit mode: false
[2005-07-15 10:58:40,875] INFO riverManagerConnectionProvider: using driver: org.hsqldb.jdbcDriver at URL: jdbc:hsqldb:data/test
[2005-07-15 10:58:40,875] INFO riverManagerConnectionProvider: connection properties: {user=sa, password=}
[2005-07-15 10:58:40,875] DEBUG riverManagerConnectionProvider: total checked-out connections: 0
[2005-07-15 10:58:40,890] DEBUG riverManagerConnectionProvider: opening new JDBC connection
[2005-07-15 10:58:40,890] DEBUG riverManagerConnectionProvider: created connection to: jdbc:hsqldb:data/test, Isolation Level: 0
[2005-07-15 10:58:40,890] DEBUG SchemaExport : drop table EVENTS if exists
[2005-07-15 10:58:40,890] DEBUG SchemaExport : create table EVENTS (
uri varchar(255) not null,
date timestamp,
eventtitle varchar(255),
primary key (uri)
)
[2005-07-15 10:58:40,906] INFO SchemaExport : schema export complete
[2005-07-15 10:58:40,921] DEBUG riverManagerConnectionProvider: returning connection to pool, pool size: 1
[2005-07-15 10:58:40,921] INFO riverManagerConnectionProvider: cleaning up connection pool: jdbc:hsqldb:data/test
[2005-07-15 10:58:40,921] INFO SessionFactoryImpl : Checking 0 named queries
[2005-07-15 10:58:40,984] INFO riverManagerConnectionProvider: cleaning up connection pool: jdbc:hsqldb:data/test
[2005-07-15 10:58:41,140] DEBUG SessionImpl : opened session at timestamp: 4593460514557952
[2005-07-15 10:58:42,015] DEBUG JDBCTransaction : begin
[2005-07-15 10:58:42,015] DEBUG ConnectionManager : opening JDBC connection
[2005-07-15 10:58:42,031] DEBUG riverManagerConnectionProvider: total checked-out connections: 0
[2005-07-15 10:58:42,031] DEBUG riverManagerConnectionProvider: using pooled JDBC connection, pool size: 0
[2005-07-15 10:58:42,031] DEBUG JDBCTransaction : current autocommit status: false
[2005-07-15 10:58:43,625] DEBUG faultSaveOrUpdateEventListener: saving transient instance