-->
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.  [ 3 posts ] 
Author Message
 Post subject: Problem with FastClass
PostPosted: Thu Aug 05, 2004 5:23 am 
Newbie

Joined: Thu Aug 05, 2004 2:24 am
Posts: 6
Location: Novosibirsk
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?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 05, 2004 6:29 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
you are missing the cglib jar from your classpath.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 05, 2004 6:37 am 
Newbie

Joined: Thu Aug 05, 2004 2:24 am
Posts: 6
Location: Novosibirsk
I don't this so:
1. I start application with the next command:
java -classpath j3daudio.jar;j3dcore.jar;j3dutils.jar;vecmath.jar;cglib-full-2.0.1.jar; ... (I don't write all libraries, full path and other info);

2. I catch next exception net.sf.cglib.core.CodeGenerationException that contented in CGLIB library.

Expection is thrown that Hibernate starts mapping properties of Java3D classes (like Point3d).


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

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.