I can't for the life of me figure this one out. When I enable LTW using:
-javaagent:C:/temp/aspectjweaver-1.5.3.jar
and by putting aop.xml in my webroot/META-INF
Hibernate (and commons-logging) both throw a java.lang.VerifyError stating that the method: readResolve signature has an Illegal type in constant pool. The class in question is org.hibernate.impl.SessionFactoryImpl. I've checked and I only have one version of that class on the classpath. And if I turn off the LTW JVM flag the app starts without a hitch. (The exception is below). If I include jakarta commons-logging in my app it gives a similar error.
Anyone seen this before? I really want/need AspectJ support but I'm stumped!
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'transactionManager' defined in class path resource [mshare/persist/hibernate/applicationContext-hibernate.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'sessionFactory' defined in class path resource [mshare/persist/hibernate/applicationContext-hibernate.xml]: Invocation of init method failed; nested exception is java.lang.VerifyError: (class: org/hibernate/impl/SessionFactoryImpl, method: readResolve signature: ()Ljava/lang/ObjectIllegal type in constant pool
Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'sessionFactory' defined in class path resource [mshare/persist/hibernate/applicationContext-hibernate.xml]: Invocation of init method failed; nested exception is java.lang.VerifyError: (class: org/hibernate/impl/SessionFactoryImpl, method: readResolve signature: ()Ljava/lang/ObjectIllegal type in constant pool
Caused by: java.lang.VerifyError: (class: org/hibernate/impl/SessionFactoryImpl, method: readResolve signature: ()Ljava/lang/ObjectIllegal type in constant pool
at org.hibernate.cfg.Configuration.buildSessionFactor y(Configuration.java:1294)
at org.springframework.orm.hibernate3.LocalSessionFac toryBean.newSessionFactory(LocalSessionFactoryBean .java:805)
at org.springframework.orm.hibernate3.LocalSessionFac toryBean.buildSessionFactory(LocalSessionFactoryBe an.java:745)
at org.springframework.orm.hibernate3.AbstractSession FactoryBean.afterPropertiesSet(AbstractSessionFact oryBean.java:134)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeInitMethods(Abstr actAutowireCapableBeanFactory.java:1143)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:1110)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:431)
at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 54)
at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:144)
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:251)
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:163)


Illegal type in constant pool
Reply With Quote