Hi,
I was using Hibernate 2.0.2, and things were working fine. Now, I'm trying to upgrade to 2.1.4, and I get the following stack trace (abriged - see issue[1] for full details):
Code:
2004-07-25 00:39:36,234 [INFO ] f.hibernate.util.ReflectHelper - reflection optimizer disabled for: javax.mail.internet.InternetAddress, CodeGenerationException: java.lang.reflect.InvocationTargetException-->null
2004-07-25 00:39:36,250 [ERROR] work.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in resource [/WEB-INF/applicationContext.xml] of ServletContext: Initialization of bean failed; nested exception is 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:208)
at net.sf.cglib.reflect.FastClass$Generator.create(FastClass.java:92)
at net.sf.cglib.reflect.FastClass.create(FastClass.java:74)
...
Caused by: java.lang.NoClassDefFoundError: net/sf/cglib/reflect/FastClass
at java.lang.ClassLoader.defineClass0(Native Method)
I'm using Hibernate 2.1.4 on Tomcat 4.1.30, J2SE 1.4.2_03 on Windows 2K and XP.
Christian Bauer requested a reproduction recipe, which I've done. Again, see the issue[1] for full details.
My analysis of the problem is that I am trying to map a
Code:
javax.mail.internet.InternetAddress
. I am mapping using the following component:
Code:
<component name="email" class="javax.mail.internet.InternetAddress">
<property name="personal" column="personal" type="string" length="80"/>
<property name="address" column="address" type="string" length="240"/>
</component>
Is my mapping incorrectly done ? As I said earlier, Hibernate 2.0.2 was working fine with a similar mapping.
Have a nice day !
Fran