-->
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.  [ 1 post ] 
Author Message
 Post subject: net.sf.cglib.core.CodeGenerationException: java.lang.reflect
PostPosted: Wed Feb 20, 2013 2:43 pm 
Newbie

Joined: Thu Nov 20, 2008 7:49 pm
Posts: 4
Location: Salt Lake City
I'm using the standard Hibernate and Hibernate JPA that comes with Netbeans 7.2.1. (Hibernate 3.2.5) I have mapped out my files, written junit tests which complete successfully. I'm now trying to implement Hibernate in out web environment which is Tomcat. When I execute the following statement:

Session session = HibernateUtil.getInstance().getCurrentSession() it fails when it executes sessionFactory = new AnnotationConfiguration().configure().buildSessionFactory();

This is the same HibernateUtil class that I use in the Junit tests. Here is some of the output and trace. Any help would be appreciated.

013-02-20 11:25:37,532 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.annotations.Version - Hibernate Annotations 3.3.1.GA
2013-02-20 11:25:37,571 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.Environment - Hibernate 3.2.5
2013-02-20 11:25:37,579 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.Environment - hibernate.properties not found
2013-02-20 11:25:37,586 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.Environment - Bytecode provider name : cglib
2013-02-20 11:25:37,595 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling
2013-02-20 11:25:37,804 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.Configuration - configuring from resource: /hibernate.cfg.xml
2013-02-20 11:25:37,804 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.Configuration - Configuration resource: /hibernate.cfg.xml
2013-02-20 11:25:37,953 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : com/communitect/appointreqst/Subscriber.hbm.xml
2013-02-20 11:25:38,081 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : com/communitect/persistence/ProviderType.hbm.xml
2013-02-20 11:25:38,179 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : com/communitect/persistence/AppointmentType.hbm.xml
2013-02-20 11:25:38,279 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : com/communitect/persistence/AppointmentProvider.hbm.xml
2013-02-20 11:25:38,383 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : com/communitect/persistence/ProviderAvailability.hbm.xml
2013-02-20 11:25:38,485 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : com/communitect/persistence/AppointmentTypeDocument.hbm.xml
2013-02-20 11:25:38,582 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : com/communitect/persistence/AppointmentQuestion.hbm.xml
2013-02-20 11:25:38,686 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : com/communitect/persistence/AppointmentQuestionOption.hbm.xml
2013-02-20 11:25:38,783 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : com/communitect/persistence/AppointmentRequestSettings.hbm.xml
2013-02-20 11:25:38,889 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.Configuration - Configured SessionFactory: null
2013-02-20 11:25:39,080 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.HbmBinder - Mapping class: com.communitect.database.Subscriber -> subscribers
2013-02-20 11:25:39,174 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.HbmBinder - Mapping class: com.communitect.persistence.ProviderType -> provider_type
2013-02-20 11:25:39,343 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.HbmBinder - Mapping class: com.communitect.persistence.AppointmentType -> appointment_type
2013-02-20 11:25:39,351 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.HbmBinder - Mapping class: com.communitect.persistence.AppointmentProvider -> appt_providers
2013-02-20 11:25:39,360 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.HbmBinder - Mapping class: com.communitect.persistence.ProviderAvailability -> provider_availability
2013-02-20 11:25:39,367 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.HbmBinder - Mapping class: com.communitect.persistence.AppointmentTypeDocument -> appointment_type_document
2013-02-20 11:25:39,375 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.HbmBinder - Mapping class: com.communitect.persistence.AppointmentQuestion -> appointment_question
2013-02-20 11:25:39,387 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.HbmBinder - Mapping class: com.communitect.persistence.AppointmentQuestionOption -> appointment_question_option
2013-02-20 11:25:39,394 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.HbmBinder - Mapping class: com.communitect.persistence.AppointmentRequestSettings -> apptreqst_settings
2013-02-20 11:25:39,409 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.AnnotationConfiguration - Hibernate Validator not found: ignoring
2013-02-20 11:25:39,433 [ajp-apr-8009-exec-11] INFO org.hibernate.connection.DriverManagerConnectionProvider - Using Hibernate built-in connection pool (not for production use!)
2013-02-20 11:25:39,433 [ajp-apr-8009-exec-11] INFO org.hibernate.connection.DriverManagerConnectionProvider - Hibernate connection pool size: 20
2013-02-20 11:25:39,433 [ajp-apr-8009-exec-11] INFO org.hibernate.connection.DriverManagerConnectionProvider - autocommit mode: false
2013-02-20 11:25:39,435 [ajp-apr-8009-exec-11] INFO org.hibernate.connection.DriverManagerConnectionProvider - using driver: org.postgresql.Driver at URL: jdbc:postgresql://localhost:5432/smilereminder
2013-02-20 11:25:39,435 [ajp-apr-8009-exec-11] INFO org.hibernate.connection.DriverManagerConnectionProvider - connection properties: {user=srpostgres, password=****}
2013-02-20 11:25:39,449 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.SettingsFactory - RDBMS: PostgreSQL, version: 8.3.19
2013-02-20 11:25:39,449 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.SettingsFactory - JDBC driver: PostgreSQL Native Driver, version: PostgreSQL 8.3 JDBC4 with SSL (build 605)
2013-02-20 11:25:39,522 [ajp-apr-8009-exec-11] INFO org.hibernate.dialect.Dialect - Using dialect: org.hibernate.dialect.PostgreSQLDialect
2013-02-20 11:25:39,541 [ajp-apr-8009-exec-11] INFO org.hibernate.transaction.TransactionFactoryFactory - Transaction strategy: org.hibernate.transaction.JDBCTransactionFactory
2013-02-20 11:25:39,548 [ajp-apr-8009-exec-11] INFO org.hibernate.transaction.TransactionManagerLookupFactory - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
2013-02-20 11:25:39,548 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.SettingsFactory - Automatic flush during beforeCompletion(): disabled
2013-02-20 11:25:39,548 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.SettingsFactory - Automatic session close at end of transaction: disabled
2013-02-20 11:25:39,548 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.SettingsFactory - JDBC batch size: 15
2013-02-20 11:25:39,548 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.SettingsFactory - JDBC batch updates for versioned data: disabled
2013-02-20 11:25:39,551 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.SettingsFactory - Scrollable result sets: enabled
2013-02-20 11:25:39,551 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.SettingsFactory - JDBC3 getGeneratedKeys(): disabled
2013-02-20 11:25:39,551 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.SettingsFactory - Connection release mode: auto
2013-02-20 11:25:39,553 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.SettingsFactory - Default batch fetch size: 1
2013-02-20 11:25:39,554 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.SettingsFactory - Generate SQL with comments: disabled
2013-02-20 11:25:39,554 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.SettingsFactory - Order SQL updates by primary key: disabled
2013-02-20 11:25:39,554 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.SettingsFactory - Order SQL inserts for batching: disabled
2013-02-20 11:25:39,554 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.SettingsFactory - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
2013-02-20 11:25:39,563 [ajp-apr-8009-exec-11] INFO org.hibernate.hql.ast.ASTQueryTranslatorFactory - Using ASTQueryTranslatorFactory
2013-02-20 11:25:39,563 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.SettingsFactory - Query language substitutions: {}
2013-02-20 11:25:39,563 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.SettingsFactory - JPA-QL strict compliance: disabled
2013-02-20 11:25:39,564 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.SettingsFactory - Second-level cache: enabled
2013-02-20 11:25:39,564 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.SettingsFactory - Query cache: disabled
2013-02-20 11:25:39,564 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.SettingsFactory - Cache provider: org.hibernate.cache.NoCacheProvider
2013-02-20 11:25:39,564 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.SettingsFactory - Optimize cache for minimal puts: disabled
2013-02-20 11:25:39,564 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.SettingsFactory - Structured second-level cache entries: disabled
2013-02-20 11:25:39,584 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.SettingsFactory - Echoing all SQL to stdout
2013-02-20 11:25:39,584 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.SettingsFactory - Statistics: disabled
2013-02-20 11:25:39,584 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.SettingsFactory - Deleted entity synthetic identifier rollback: disabled
2013-02-20 11:25:39,584 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.SettingsFactory - Default entity-mode: pojo
2013-02-20 11:25:39,584 [ajp-apr-8009-exec-11] INFO org.hibernate.cfg.SettingsFactory - Named query checking : enabled
2013-02-20 11:25:39,664 [ajp-apr-8009-exec-11] INFO org.hibernate.impl.SessionFactoryImpl - building session factory
net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null
net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null
at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:237)
at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:377)
at net.sf.cglib.proxy.Enhancer.createClass(Enhancer.java:317)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:127)
at org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:43)
at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:162)
at org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:135)


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

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.