[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3299) Compatibility problem with jars

Dean Hiller (JIRA) noreply at atlassian.com
Sun May 25 07:46:33 EDT 2008


Compatibility problem with jars
-------------------------------

                 Key: HHH-3299
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3299
             Project: Hibernate3
          Issue Type: Bug
          Components: core
    Affects Versions: 3.2.6
         Environment: version 3.2.6 core, 3.3.1 Annotations, 3.3.2 Entity Manager
            Reporter: Dean Hiller


When I delete my asm.jar, I correctly get 

org/objectweb/asm/CodeVisitor
java.lang.NoClassDefFoundError: org/objectweb/asm/CodeVisitor

The above proves I don't accidentally have another version on the class path.  

Once I put the correct version of asm.jar from hibernate core back in, I get the following error....
    [junit] org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/
String;[Ljava/lang/String;Ljava/lang/String;)V
    [junit] java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(II
Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V
    [junit]     at net.sf.cglib.core.ClassEmitter.begin_class(ClassEmitter.java:
77)
    [junit]     at net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFacto
ry.java:173)
    [junit]     at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGe
neratorStrategy.java:25)
    [junit]     at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClass
Generator.java:216)
    [junit]     at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java
:145)
    [junit]     at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117)
    [junit]     at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108)
    [junit]     at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104)
    [junit]     at net.sf.cglib.proxy.Enhancer.<clinit>(Enhancer.java:69)
    [junit]     at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyF
actory(CGLIBLazyInitializer.java:117)
    [junit]     at org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstanti
ate(CGLIBProxyFactory.java:43)
    [junit]     at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFacto
ry(PojoEntityTuplizer.java:162)
    [junit]     at org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(Abst
ractEntityTuplizer.java:135)
    [junit]     at org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEnti
tyTuplizer.java:55)
    [junit]     at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.
<init>(EntityEntityModeToTuplizerMapping.java:56)
    [junit]     at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetam
odel.java:302)
    [junit]     at org.hibernate.persister.entity.AbstractEntityPersister.<init>
(AbstractEntityPersister.java:434)
    [junit]     at org.hibernate.persister.entity.SingleTableEntityPersister.<in
it>(SingleTableEntityPersister.java:109)
    [junit]     at org.hibernate.persister.PersisterFactory.createClassPersister
(PersisterFactory.java:55)
    [junit]     at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryIm
pl.java:226)
    [junit]     at org.hibernate.cfg.Configuration.buildSessionFactory(Configura
tion.java:1300)
    [junit]     at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory
(AnnotationConfiguration.java:859)
    [junit]     at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory
(Ejb3Configuration.java:669)
    [junit]     at org.hibernate.ejb.HibernatePersistence.createEntityManagerFac
tory(HibernatePersistence.java:126)
    [junit]     at javax.persistence.Persistence.createEntityManagerFactory(Pers
istence.java:51)
    [junit]     at biz.xsoftware.rocketwar.server.test.AbstractHibTestCase.build
SessionFactory(AbstractHibTestCase.java:51)
    [junit]     at biz.xsoftware.rocketwar.server.test.AbstractHibTestCase.setUp
Impl(AbstractHibTestCase.java:67)
    [junit]     at biz.xsoftware.mock.testcase.MockTestCase.setUp(MockTestCase.j
ava:52)
    [junit]     at biz.xsoftware.mock.testcase.MockTestCase.runBare(MockTestCase
.java:112)


The manifest version of asm.jar is 1.5.3.    The cglib is called cglib-2.1.3 but has not versoin in the manifest at all.  I really don't know what is going on.  Is it going through a special path of code that doesn't work and is a bug.  I can't see how this can be user error right now since when I remove the asm.jar, I get classnotfound.  It is interesting that the class not found is CodeVisitor while methodnot found is on Classvisitor.  I am still looking into this but can't seem to figure out the bug completely.



-- 
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list