When I try saving
javax.vecmath.Point3d class with Hibernate 2.1.4 I see next error:
Code:
net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null
at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:236)
at net.sf.cglib.reflect.FastClass$Generator.create(FastClass.java:67)
at net.sf.cglib.reflect.FastClass.create(FastClass.java:49)
at net.sf.cglib.reflect.FastClass.create(FastClass.java:42)
at net.sf.hibernate.type.ComponentType.<init>(ComponentType.java:113)
at net.sf.hibernate.cfg.Binder.bindComponent(Binder.java:899)
at net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:1041)
at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:361)
at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1243)
at net.sf.hibernate.cfg.Configuration.add(Configuration.java:249)
at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:285)
at net.sf.hibernate.cfg.Configuration.addResource(Configuration.java:333)
at net.sf.hibernate.cfg.Configuration.doConfigure(Configuration.java:990)
at net.sf.hibernate.cfg.Configuration.doConfigure(Configuration.java:946)
at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:889)
at com.luxoft.rad.vsp.jdo.DatabaseManager.configureManager(DatabaseManager.java:38)
at com.luxoft.rad.vsp.jdo.DatabaseManager.<init>(DatabaseManager.java:26)
at com.luxoft.rad.vsp.jdo.AppTest.<init>(AppTest.java:15)
at com.luxoft.rad.vsp.jdo.AppTest.main(AppTest.java:97)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.intellij.rt.execution.application.AppMain.main(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at net.sf.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:373)
at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:218)
... 23 more
Caused by: java.lang.NoClassDefFoundError: net/sf/cglib/reflect/FastClass
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
... 29 more
It concerns to any class of Java3D package.
I'm using next mapping:
Code:
<class name="TestObj" table="test">
<id name="id" column="pk" type="string" >
<generator class="uuid.hex"/>
</id>
<component name="transform" class="javax.vecmath.Point3d">
...
</component>
</class>
I've read some articles about this problem but don't understand hove I can solve one.
Could someone help my?