Message:
The following issue has been re-assigned.
Assignee: Gavin King (mailto:ga...@in...)
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-401
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-401
Summary: reflection optimizer bug
Type: Bug
Status: Assigned
Priority: Major
Project: Hibernate2
Components:
core
Versions:
2.1 beta 4
Assignee: Gavin King
Reporter: Dominik Roblek
Created: Wed, 15 Oct 2003 5:32 AM
Updated: Wed, 15 Oct 2003 6:48 AM
Description:
I have some persistent classes, which cannot be instrumented with CGLIB reflection optimizer. In Hibernate versions prior to 2.1beta4 I've got the following correct log messages and everything worked fine:
---
14:26:48,230 INFO [:] SessionFactoryImpl:109 - building session factory
14:26:57,507 INFO [:] ReflectHelper:328 - reflection optimizer disabled for: si.marand.maf.server.jastreb.party.module.entity.PersonEntity, NullPointerException: null
14:26:59,175 INFO [:] ReflectHelper:328 - reflection optimizer disabled for: si.marand.maf.server.jastreb.party.module.entity.BankEntity, NullPointerException: null
14:27:06,349 INFO [:] SessionFactoryObjectFactory:86 - Factory name: maf-server-hibernate-sessionFactory
---
But in version 2.1beta4 is instead of this in the same phase of startup process thrown an exception, which stops application. The excerption from log it here:
---
12:18:51,464 ERROR [:] LazyInitializer:62 - CGLIB Enhancement failed
net.sf.cglib.CodeGenerationException
at net.sf.cglib.ReflectUtils.newInstance(ReflectUtils.java:200)
at net.sf.cglib.ReflectUtils.newInstance(ReflectUtils.java:186)
at net.sf.cglib.ReflectUtils.newInstance(ReflectUtils.java:181)
at net.sf.cglib.Enhancer.enhanceHelper(Enhancer.java:222)
at net.sf.cglib.Enhancer.enhance(Enhancer.java:149)
at net.sf.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:52)
at net.sf.hibernate.persister.AbstractEntityPersister.<init>(AbstractEntityPersister.java:754)
at net.sf.hibernate.persister.NormalizedEntityPersister.<init>(NormalizedEntityPersister.java:737)
at net.sf.hibernate.persister.PersisterFactory.create(PersisterFactory.java:63)
at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:132)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:660)
...
---
Besides of this bug it seems, that hibernate.cglib.use_reflection_optimizer setting is ignored in beta4 and "true" is allways used as it's value.
Dominik
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|