Hi,
I'm trying to write an application which loads objects from a database using Hibernate, and then add them to a JBoss POJO Cache, but there seems to be an incompatibility.
I have a persistent object as follows:
Code:
import javax.persistence.*;
import org.hibernate.annotations.GenericGenerator;
import org.jboss.cache.pojo.annotation.Replicable;
@Entity
@Table(name = "orders")
@Replicable // JBoss POJO Cache annotation (http://www.jboss.org/file-access/default/members/jbosscache/freezone/docs/3.0.0.GA/pojo/apidocs/org/jboss/cache/pojo/annotation/Replicable.html)
public class OrderDTO {
@Id
@GeneratedValue(generator="id-generator")
@GenericGenerator(name="id-generator",strategy="increment")
private Long id;
...
And the first line of my application is:
Code:
public static void main(String[] args) {
Session session = HibernateUtil.getSession();
...
Where
Code:
public class HibernateUtil {
private static final SessionFactory sessionFactory = new AnnotationConfiguration().configure().buildSessionFactory();
public static Session getSession() throws HibernateException {
return sessionFactory.openSession();
}
}
And I'm running with
VM args for JBoss POJO Cache:
Code:
-javaagent:boss-aop.jar
-Djboss.aop.path=pojocache-aop.xml
And I get the below exception. There seems to be some conflict of the javassist bytecode manipulation between the JBoss POJO Cache and Hibernate.
Is there something I'm missing?
Hibernate version: Hibernate 3.3.1 GA, Annotations 3.4.0 GA
Mapping documents: Code:
<hibernate-configuration>
<session-factory>
<!-- Database connection settings -->
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="connection.url">jdbc:mysql://localhost:3306/test</property>
<property name="connection.username">root</property>
<property name="connection.password">root</property>
<property name="hbm2ddl.auto">update</property>
<!-- JDBC connection pool (use the built-in) -->
<property name="connection.pool_size">1</property>
<!-- SQL dialect -->
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<!-- Enable Hibernate's automatic session context management -->
<property name="current_session_context_class">thread</property>
<!-- Echo all executed SQL to stdout -->
<property name="show_sql">true</property>
<property name="default_schema">test</property>
<mapping class="com.iandjones.jbcachetest.data.OrderDTO"/>
</session-factory>
</hibernate-configuration>
Code between sessionFactory.openSession() and session.close():None.
Full stack trace of any exception that occurs and log file:Code:
1 [main] INFO org.hibernate.cfg.annotations.Version - Hibernate Annotations 3.4.0.GA
5665 [main] INFO org.hibernate.cfg.Environment - Hibernate 3.3.1.GA
6074 [main] INFO org.hibernate.cfg.Environment - hibernate.properties not found
6396 [main] INFO org.hibernate.cfg.Environment - Bytecode provider name : javassist
7899 [main] INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling
32729 [main] INFO org.hibernate.annotations.common.Version - Hibernate Commons Annotations 3.1.0.GA
33531 [main] INFO org.hibernate.cfg.Configuration - configuring from resource: /hibernate.cfg.xml
33533 [main] INFO org.hibernate.cfg.Configuration - Configuration resource: /hibernate.cfg.xml
[warn] Could not find class org.jaxen.VariableContext that org.dom4j.DocumentFactory references. It may not be in your classpath and you may not be getting field and constructor weaving for this class.
43491 [main] DEBUG org.hibernate.util.DTDEntityResolver - trying to resolve system-id [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd]
43493 [main] DEBUG org.hibernate.util.DTDEntityResolver - recognized hibernate namespace; attempting to resolve on classpath under org/hibernate/
43512 [main] DEBUG org.hibernate.util.DTDEntityResolver - located [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd] in classpath
47843 [main] DEBUG org.hibernate.cfg.Configuration - connection.driver_class=com.mysql.jdbc.Driver
47845 [main] DEBUG org.hibernate.cfg.Configuration - connection.url=jdbc:mysql://localhost:3306/test
47847 [main] DEBUG org.hibernate.cfg.Configuration - connection.username=root
47848 [main] DEBUG org.hibernate.cfg.Configuration - connection.password=root
47850 [main] DEBUG org.hibernate.cfg.Configuration - hbm2ddl.auto=update
47852 [main] DEBUG org.hibernate.cfg.Configuration - connection.pool_size=1
47853 [main] DEBUG org.hibernate.cfg.Configuration - dialect=org.hibernate.dialect.MySQLDialect
47855 [main] DEBUG org.hibernate.cfg.Configuration - current_session_context_class=thread
47857 [main] DEBUG org.hibernate.cfg.Configuration - show_sql=true
47859 [main] DEBUG org.hibernate.cfg.Configuration - default_schema=test
47865 [main] DEBUG org.hibernate.cfg.AnnotationConfiguration - null <- org.dom4j.tree.DefaultAttribute@126c6ea [Attribute: name class value "com.iandjones.jbcachetest.data.OrderDTO"]
64844 [main] INFO org.hibernate.cfg.Configuration - Configured SessionFactory: null
64850 [main] DEBUG org.hibernate.cfg.Configuration - properties: {java.vendor=Sun Microsystems Inc., show_sql=true, sun.java.launcher=SUN_STANDARD, hibernate.connection.url=jdbc:mysql://localhost:3306/test, sun.management.compiler=HotSpot Client Compiler, os.name=Windows Vista, hbm2ddl.auto=update, sun.boot.class.path=C:\Program Files\Java\jre1.6.0_05\lib\resources.jar;C:\Program Files\Java\jre1.6.0_05\lib\rt.jar;C:\Program Files\Java\jre1.6.0_05\lib\sunrsasign.jar;C:\Program Files\Java\jre1.6.0_05\lib\jsse.jar;C:\Program Files\Java\jre1.6.0_05\lib\jce.jar;C:\Program Files\Java\jre1.6.0_05\lib\charsets.jar;C:\Program Files\Java\jre1.6.0_05\classes, hibernate.current_session_context_class=thread, sun.desktop=windows, java.vm.specification.vendor=Sun Microsystems Inc., java.runtime.version=1.6.0_05-b13, default_schema=test, user.name=IanJones, connection.driver_class=com.mysql.jdbc.Driver, current_session_context_class=thread, user.language=en, sun.boot.library.path=C:\Program Files\Java\jre1.6.0_05\bin, dialect=org.hibernate.dialect.MySQLDialect, java.version=1.6.0_05, user.timezone=, sun.arch.data.model=32, java.endorsed.dirs=C:\Program Files\Java\jre1.6.0_05\lib\endorsed, sun.cpu.isalist=pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86, sun.jnu.encoding=Cp1252, file.encoding.pkg=sun.io, file.separator=\, java.specification.name=Java Platform API Specification, java.class.version=50.0, user.country=GB, connection.url=jdbc:mysql://localhost:3306/test, java.home=C:\Program Files\Java\jre1.6.0_05, java.vm.info=mixed mode, os.version=6.0, path.separator=;, connection.password=root, java.vm.version=10.0-b19, hibernate.connection.password=root, user.variant=, java.awt.printerjob=sun.awt.windows.WPrinterJob, sun.io.unicode.encoding=UnicodeLittle, awt.toolkit=sun.awt.windows.WToolkit, hibernate.connection.username=root, user.home=C:\Users\IanJones, java.specification.vendor=Sun Microsystems Inc., hibernate.hbm2ddl.auto=update, java.library.path=C:\Program Files\Java\jre1.6.0_05\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Java\jre1.6.0_05\bin\client;C:\Program Files\Java\jre1.6.0_05\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;C:\Program Files\php\php-4.4.7-Win32;C:\Program Files\QuickTime\QTSystem\;C:\PROGRA~1\COSIDS;, java.vendor.url=http://java.sun.com/, hibernate.connection.driver_class=com.mysql.jdbc.Driver, connection.username=root, java.vm.vendor=Sun Microsystems Inc., hibernate.dialect=org.hibernate.dialect.MySQLDialect, java.runtime.name=Java(TM) SE Runtime Environment, java.class.path=C:\Users\IanJones\workspace\jbosscachetest\bin;C:\Users\IanJones\workspace\jbosscachetest\resources;C:\Development\lib\log4j-1.2.15.jar;C:\Development\lib\jbosscache\jbosscache-core.jar;C:\Development\lib\jbosscache\commons-logging.jar;C:\Development\lib\jbosscache\jboss-common-core.jar;C:\Development\lib\jbosscache\jboss-logging-spi.jar;C:\Development\lib\jbosscache\jgroups.jar;C:\Development\lib\jbosscache\pojo\jbosscache-pojo.jar;C:\Development\lib\jbosscache\pojo\jboss-aop.jar;C:\Development\lib\jbosscache\pojo\javassist.jar;C:\Development\lib\jbosscache\pojo\trove.jar;C:\Development\lib\jbosscache\jcip-annotations.jar;C:\Development\lib\jbosscache\jta.jar;C:\Development\lib\jbosscache\pojo\jboss-mdr.jar;C:\Development\lib\jbosscache\pojo\jboss-reflect.jar;C:\Development\lib\hibernate\antlr-2.7.6.jar;C:\Development\lib\hibernate\commons-collections-3.1.jar;C:\Development\lib\hibernate\dom4j-1.6.1.jar;C:\Development\lib\hibernate\ejb3-persistence.jar;C:\Development\lib\hibernate\hibernate3.jar;C:\Development\lib\hibernate\hibernate-annotations.jar;C:\Development\lib\hibernate\hibernate-commons-annotations.jar;C:\Development\lib\hibernate\slf4j-api-1.5.2.jar;C:\Development\lib\hibernate\slf4j-log4j12-1.5.2.jar;C:\Development\lib\mysql\mysql-connector-java-5.1.7-bin.jar;C:\Development\lib\jbosscache\pojo\jboss-aop.jar, hibernate.bytecode.use_reflection_optimizer=false, java.vm.specification.name=Java Virtual Machine Specification, java.vm.specification.version=1.0, sun.cpu.endian=little, sun.os.patch.level=Service Pack 1, connection.pool_size=1, java.io.tmpdir=C:\Users\IanJones\AppData\Local\Temp\, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, hibernate.default_schema=test, os.arch=x86, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.ext.dirs=C:\Program Files\Java\jre1.6.0_05\lib\ext;C:\Windows\Sun\Java\lib\ext, user.dir=C:\Users\IanJones\workspace\jbosscachetest, line.separator=
, java.vm.name=Java HotSpot(TM) Client VM, file.encoding=Cp1252, jboss.aop.path=C:\Users\IanJones\workspace\jbosscachetest\resources\pojocache-aop.xml, java.specification.version=1.6, hibernate.show_sql=true, hibernate.connection.pool_size=1}
64918 [main] DEBUG org.hibernate.cfg.AnnotationConfiguration - Validator not present in classpath, ignoring event listener registration
65092 [main] DEBUG org.hibernate.cfg.search.HibernateSearchEventListenerRegister - Search not present in classpath, ignoring event listener registration.
65094 [main] INFO org.hibernate.cfg.search.HibernateSearchEventListenerRegister - Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
65097 [main] DEBUG org.hibernate.cfg.Configuration - Preparing to build session factory with filters : {}
65098 [main] DEBUG org.hibernate.cfg.AnnotationConfiguration - Execute first pass mapping processing
87756 [main] DEBUG org.hibernate.cfg.AnnotationConfiguration - Process hbm files
87758 [main] DEBUG org.hibernate.cfg.AnnotationConfiguration - Process annotated classes
88222 [main] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: com.iandjones.jbcachetest.data.OrderDTO
92010 [main] DEBUG org.hibernate.cfg.Ejb3Column - Binding column DTYPE. Unique false. Nullable false.
94342 [main] DEBUG org.hibernate.cfg.annotations.EntityBinder - Import with entity name OrderDTO
94463 [main] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity com.iandjones.jbcachetest.data.OrderDTO on table orders
95512 [main] DEBUG org.hibernate.cfg.AnnotationBinder - Processing com.iandjones.jbcachetest.data.OrderDTO property annotation
109578 [main] DEBUG org.hibernate.cfg.AnnotationBinder - Processing com.iandjones.jbcachetest.data.OrderDTO field annotation
109901 [main] DEBUG org.hibernate.cfg.AnnotationBinder - Processing annotations of com.iandjones.jbcachetest.data.OrderDTO.id
110206 [main] DEBUG org.hibernate.cfg.Ejb3Column - Binding column id. Unique false. Nullable true.
110208 [main] DEBUG org.hibernate.cfg.AnnotationBinder - id is an id
110363 [main] DEBUG org.hibernate.cfg.AnnotationBinder - Add generic generator with name: id-generator
110596 [main] DEBUG org.hibernate.cfg.annotations.SimpleValueBinder - building SimpleValue for id
111815 [main] DEBUG org.hibernate.cfg.annotations.PropertyBinder - Building property id
112781 [main] DEBUG org.hibernate.cfg.AnnotationBinder - Bind @Id on id
112826 [main] DEBUG org.hibernate.cfg.AnnotationBinder - Processing annotations of com.iandjones.jbcachetest.data.OrderDTO.amount
112829 [main] DEBUG org.hibernate.cfg.Ejb3Column - Binding column amount. Unique false. Nullable true.
112900 [main] DEBUG org.hibernate.cfg.annotations.PropertyBinder - binding property amount with lazy=false
112902 [main] DEBUG org.hibernate.cfg.annotations.SimpleValueBinder - building SimpleValue for amount
112904 [main] DEBUG org.hibernate.cfg.annotations.PropertyBinder - Building property amount
112906 [main] DEBUG org.hibernate.cfg.AnnotationBinder - Processing annotations of com.iandjones.jbcachetest.data.OrderDTO.counterparty
112908 [main] DEBUG org.hibernate.cfg.Ejb3Column - Binding column counterparty. Unique false. Nullable true.
112911 [main] DEBUG org.hibernate.cfg.annotations.PropertyBinder - binding property counterparty with lazy=false
112913 [main] DEBUG org.hibernate.cfg.annotations.SimpleValueBinder - building SimpleValue for counterparty
112915 [main] DEBUG org.hibernate.cfg.annotations.PropertyBinder - Building property counterparty
112917 [main] DEBUG org.hibernate.cfg.AnnotationBinder - Processing annotations of com.iandjones.jbcachetest.data.OrderDTO.isin
112920 [main] DEBUG org.hibernate.cfg.Ejb3Column - Binding column isin. Unique false. Nullable true.
112922 [main] DEBUG org.hibernate.cfg.annotations.PropertyBinder - binding property isin with lazy=false
112924 [main] DEBUG org.hibernate.cfg.annotations.SimpleValueBinder - building SimpleValue for isin
112926 [main] DEBUG org.hibernate.cfg.annotations.PropertyBinder - Building property isin
112928 [main] DEBUG org.hibernate.cfg.AnnotationBinder - Processing annotations of com.iandjones.jbcachetest.data.OrderDTO.price
112930 [main] DEBUG org.hibernate.cfg.Ejb3Column - Binding column price. Unique false. Nullable true.
112933 [main] DEBUG org.hibernate.cfg.annotations.PropertyBinder - binding property price with lazy=false
112935 [main] DEBUG org.hibernate.cfg.annotations.SimpleValueBinder - building SimpleValue for price
112937 [main] DEBUG org.hibernate.cfg.annotations.PropertyBinder - Building property price
113217 [main] DEBUG org.hibernate.cfg.AnnotationConfiguration - processing fk mappings (*ToOne and JoinedSubclass)
113551 [main] DEBUG org.hibernate.cfg.Configuration - processing extends queue
113552 [main] DEBUG org.hibernate.cfg.Configuration - processing collection mappings
113554 [main] DEBUG org.hibernate.cfg.Configuration - processing native query and ResultSetMapping mappings
113556 [main] DEBUG org.hibernate.cfg.Configuration - processing association property references
113557 [main] DEBUG org.hibernate.cfg.Configuration - processing foreign key constraints
113572 [main] INFO org.hibernate.cfg.AnnotationConfiguration - Hibernate Validator not found: ignoring
134115 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - Using Hibernate built-in connection pool (not for production use!)
134118 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - Hibernate connection pool size: 1
134121 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - autocommit mode: false
138626 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost:3306/test
138629 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - connection properties: {user=root, password=root}
138631 [main] DEBUG org.hibernate.connection.DriverManagerConnectionProvider - opening new JDBC connection
Sun Feb 15 20:34:28 GMT 2009 WARN: Invalid value {1} for server variable named {0}, falling back to sane default of {2}.
179088 [main] DEBUG org.hibernate.connection.DriverManagerConnectionProvider - created connection to: jdbc:mysql://localhost:3306/test, Isolation Level: 4
179092 [main] INFO org.hibernate.cfg.SettingsFactory - RDBMS: MySQL, version: 4.1.22-community-nt-log
179094 [main] INFO org.hibernate.cfg.SettingsFactory - JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.1.7 ( Revision: ${svn.Revision} )
183325 [main] INFO org.hibernate.dialect.Dialect - Using dialect: org.hibernate.dialect.MySQLDialect
183837 [main] INFO org.hibernate.transaction.TransactionFactoryFactory - Using default transaction strategy (direct JDBC transactions)
184248 [main] INFO org.hibernate.transaction.TransactionManagerLookupFactory - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
184251 [main] INFO org.hibernate.cfg.SettingsFactory - Automatic flush during beforeCompletion(): disabled
184253 [main] INFO org.hibernate.cfg.SettingsFactory - Automatic session close at end of transaction: disabled
184255 [main] INFO org.hibernate.cfg.SettingsFactory - JDBC batch size: 15
184256 [main] INFO org.hibernate.cfg.SettingsFactory - JDBC batch updates for versioned data: disabled
184320 [main] INFO org.hibernate.cfg.SettingsFactory - Scrollable result sets: enabled
184322 [main] DEBUG org.hibernate.cfg.SettingsFactory - Wrap result sets: disabled
184324 [main] INFO org.hibernate.cfg.SettingsFactory - JDBC3 getGeneratedKeys(): enabled
184325 [main] INFO org.hibernate.cfg.SettingsFactory - Connection release mode: auto
184402 [main] INFO org.hibernate.cfg.SettingsFactory - Default schema: test
184404 [main] INFO org.hibernate.cfg.SettingsFactory - Maximum outer join fetch depth: 2
184405 [main] INFO org.hibernate.cfg.SettingsFactory - Default batch fetch size: 1
184407 [main] INFO org.hibernate.cfg.SettingsFactory - Generate SQL with comments: disabled
184409 [main] INFO org.hibernate.cfg.SettingsFactory - Order SQL updates by primary key: disabled
184410 [main] INFO org.hibernate.cfg.SettingsFactory - Order SQL inserts for batching: disabled
184412 [main] INFO org.hibernate.cfg.SettingsFactory - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
184981 [main] INFO org.hibernate.hql.ast.ASTQueryTranslatorFactory - Using ASTQueryTranslatorFactory
184983 [main] INFO org.hibernate.cfg.SettingsFactory - Query language substitutions: {}
184985 [main] INFO org.hibernate.cfg.SettingsFactory - JPA-QL strict compliance: disabled
184986 [main] INFO org.hibernate.cfg.SettingsFactory - Second-level cache: enabled
184988 [main] INFO org.hibernate.cfg.SettingsFactory - Query cache: disabled
184989 [main] INFO org.hibernate.cfg.SettingsFactory - Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory
184992 [main] INFO org.hibernate.cfg.SettingsFactory - Optimize cache for minimal puts: disabled
184994 [main] INFO org.hibernate.cfg.SettingsFactory - Structured second-level cache entries: disabled
186084 [main] INFO org.hibernate.cfg.SettingsFactory - Echoing all SQL to stdout
186214 [main] INFO org.hibernate.cfg.SettingsFactory - Statistics: disabled
186216 [main] INFO org.hibernate.cfg.SettingsFactory - Deleted entity synthetic identifier rollback: disabled
186287 [main] INFO org.hibernate.cfg.SettingsFactory - Default entity-mode: pojo
186288 [main] INFO org.hibernate.cfg.SettingsFactory - Named query checking : enabled
200376 [main] INFO org.hibernate.impl.SessionFactoryImpl - building session factory
200507 [main] DEBUG org.hibernate.impl.SessionFactoryImpl - Session factory constructed with filter configurations : {}
200514 [main] DEBUG org.hibernate.impl.SessionFactoryImpl - instantiating session factory with properties: {java.vendor=Sun Microsystems Inc., show_sql=true, sun.java.launcher=SUN_STANDARD, hibernate.connection.url=jdbc:mysql://localhost:3306/test, sun.management.compiler=HotSpot Client Compiler, os.name=Windows Vista, hbm2ddl.auto=update, sun.boot.class.path=C:\Program Files\Java\jre1.6.0_05\lib\resources.jar;C:\Program Files\Java\jre1.6.0_05\lib\rt.jar;C:\Program Files\Java\jre1.6.0_05\lib\sunrsasign.jar;C:\Program Files\Java\jre1.6.0_05\lib\jsse.jar;C:\Program Files\Java\jre1.6.0_05\lib\jce.jar;C:\Program Files\Java\jre1.6.0_05\lib\charsets.jar;C:\Program Files\Java\jre1.6.0_05\classes, hibernate.current_session_context_class=thread, sun.desktop=windows, java.vm.specification.vendor=Sun Microsystems Inc., java.runtime.version=1.6.0_05-b13, default_schema=test, user.name=IanJones, connection.driver_class=com.mysql.jdbc.Driver, current_session_context_class=thread, user.language=en, sun.boot.library.path=C:\Program Files\Java\jre1.6.0_05\bin, dialect=org.hibernate.dialect.MySQLDialect, java.version=1.6.0_05, user.timezone=, sun.arch.data.model=32, java.endorsed.dirs=C:\Program Files\Java\jre1.6.0_05\lib\endorsed, sun.cpu.isalist=pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86, sun.jnu.encoding=Cp1252, file.encoding.pkg=sun.io, file.separator=\, java.specification.name=Java Platform API Specification, java.class.version=50.0, user.country=GB, connection.url=jdbc:mysql://localhost:3306/test, java.home=C:\Program Files\Java\jre1.6.0_05, java.vm.info=mixed mode, os.version=6.0, path.separator=;, connection.password=root, java.vm.version=10.0-b19, hibernate.connection.password=root, user.variant=, java.awt.printerjob=sun.awt.windows.WPrinterJob, sun.io.unicode.encoding=UnicodeLittle, awt.toolkit=sun.awt.windows.WToolkit, hibernate.connection.username=root, user.home=C:\Users\IanJones, java.specification.vendor=Sun Microsystems Inc., hibernate.hbm2ddl.auto=update, java.library.path=C:\Program Files\Java\jre1.6.0_05\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Java\jre1.6.0_05\bin\client;C:\Program Files\Java\jre1.6.0_05\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;C:\Program Files\php\php-4.4.7-Win32;C:\Program Files\QuickTime\QTSystem\;C:\PROGRA~1\COSIDS;, java.vendor.url=http://java.sun.com/, hibernate.connection.driver_class=com.mysql.jdbc.Driver, connection.username=root, java.vm.vendor=Sun Microsystems Inc., hibernate.dialect=org.hibernate.dialect.MySQLDialect, java.runtime.name=Java(TM) SE Runtime Environment, java.class.path=C:\Users\IanJones\workspace\jbosscachetest\bin;C:\Users\IanJones\workspace\jbosscachetest\resources;C:\Development\lib\log4j-1.2.15.jar;C:\Development\lib\jbosscache\jbosscache-core.jar;C:\Development\lib\jbosscache\commons-logging.jar;C:\Development\lib\jbosscache\jboss-common-core.jar;C:\Development\lib\jbosscache\jboss-logging-spi.jar;C:\Development\lib\jbosscache\jgroups.jar;C:\Development\lib\jbosscache\pojo\jbosscache-pojo.jar;C:\Development\lib\jbosscache\pojo\jboss-aop.jar;C:\Development\lib\jbosscache\pojo\javassist.jar;C:\Development\lib\jbosscache\pojo\trove.jar;C:\Development\lib\jbosscache\jcip-annotations.jar;C:\Development\lib\jbosscache\jta.jar;C:\Development\lib\jbosscache\pojo\jboss-mdr.jar;C:\Development\lib\jbosscache\pojo\jboss-reflect.jar;C:\Development\lib\hibernate\antlr-2.7.6.jar;C:\Development\lib\hibernate\commons-collections-3.1.jar;C:\Development\lib\hibernate\dom4j-1.6.1.jar;C:\Development\lib\hibernate\ejb3-persistence.jar;C:\Development\lib\hibernate\hibernate3.jar;C:\Development\lib\hibernate\hibernate-annotations.jar;C:\Development\lib\hibernate\hibernate-commons-annotations.jar;C:\Development\lib\hibernate\slf4j-api-1.5.2.jar;C:\Development\lib\hibernate\slf4j-log4j12-1.5.2.jar;C:\Development\lib\mysql\mysql-connector-java-5.1.7-bin.jar;C:\Development\lib\jbosscache\pojo\jboss-aop.jar, hibernate.bytecode.use_reflection_optimizer=false, java.vm.specification.name=Java Virtual Machine Specification, java.vm.specification.version=1.0, sun.cpu.endian=little, sun.os.patch.level=Service Pack 1, connection.pool_size=1, java.io.tmpdir=C:\Users\IanJones\AppData\Local\Temp\, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, hibernate.default_schema=test, os.arch=x86, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.ext.dirs=C:\Program Files\Java\jre1.6.0_05\lib\ext;C:\Windows\Sun\Java\lib\ext, user.dir=C:\Users\IanJones\workspace\jbosscachetest, line.separator=
, java.vm.name=Java HotSpot(TM) Client VM, file.encoding=Cp1252, jboss.aop.path=C:\Users\IanJones\workspace\jbosscachetest\resources\pojocache-aop.xml, java.specification.version=1.6, hibernate.connection.pool_size=1, hibernate.show_sql=true}
245963 [main] ERROR org.hibernate.proxy.pojo.BasicLazyInitializer - Javassist Enhancement failed: com.iandjones.jbcachetest.data.OrderDTO
java.lang.VerifyError: (class: com/iandjones/jbcachetest/data/OrderDTO_$$_javassist_0, method: <init> signature: ()V) Expecting to find object/array on stack
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Unknown Source)
at java.lang.Class.getField0(Unknown Source)
at java.lang.Class.getField(Unknown Source)
at javassist.util.proxy.ProxyFactory.setField(ProxyFactory.java:352)
at javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:341)
at javassist.util.proxy.ProxyFactory.createClass2(ProxyFactory.java:314)
at javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:273)
at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxyFactory(JavassistLazyInitializer.java:162)
at org.hibernate.proxy.pojo.javassist.JavassistProxyFactory.postInstantiate(JavassistProxyFactory.java:66)
at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:183)
at org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:158)
at org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:76)
at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.<init>(EntityEntityModeToTuplizerMapping.java:80)
at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:325)
at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:457)
at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:131)
at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:84)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:261)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
at com.iandjones.jbcachetest.server.HibernateUtil.<clinit>(HibernateUtil.java:9)
at com.iandjones.jbcachetest.server.JBCacheTestServer.run(JBCacheTestServer.java:28)
at com.iandjones.jbcachetest.server.JBCacheTestServer.main(JBCacheTestServer.java:21)
246010 [main] WARN org.hibernate.tuple.entity.PojoEntityTuplizer - could not create proxy factory for:com.iandjones.jbcachetest.data.OrderDTO
org.hibernate.HibernateException: Javassist Enhancement failed: com.iandjones.jbcachetest.data.OrderDTO
at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxyFactory(JavassistLazyInitializer.java:169)
at org.hibernate.proxy.pojo.javassist.JavassistProxyFactory.postInstantiate(JavassistProxyFactory.java:66)
at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:183)
at org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:158)
at org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:76)
at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.<init>(EntityEntityModeToTuplizerMapping.java:80)
at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:325)
at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:457)
at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:131)
at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:84)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:261)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
at com.iandjones.jbcachetest.server.HibernateUtil.<clinit>(HibernateUtil.java:9)
at com.iandjones.jbcachetest.server.JBCacheTestServer.run(JBCacheTestServer.java:28)
at com.iandjones.jbcachetest.server.JBCacheTestServer.main(JBCacheTestServer.java:21)
Caused by: java.lang.VerifyError: (class: com/iandjones/jbcachetest/data/OrderDTO_$$_javassist_0, method: <init> signature: ()V) Expecting to find object/array on stack
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Unknown Source)
at java.lang.Class.getField0(Unknown Source)
at java.lang.Class.getField(Unknown Source)
at javassist.util.proxy.ProxyFactory.setField(ProxyFactory.java:352)
at javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:341)
at javassist.util.proxy.ProxyFactory.createClass2(ProxyFactory.java:314)
at javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:273)
at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxyFactory(JavassistLazyInitializer.java:162)
... 15 more
Name and version of the database you are using:
MySQL 4.1.22
The generated SQL (show_sql=true):
N/A