Announcement Announcement Module
Collapse
No announcement yet.
using AspectJ Javassist Enhancement failed exception Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • using AspectJ Javassist Enhancement failed exception

    i am trying to use AspectJ for logging aspects on Spring Source Tool.

    when i am trying to invoke aspect on domain objects i am getting following exception


    Code:
     WARN PojoEntityTuplizer:195 - could not create proxy factory for:com.csc.exceed.certificate.domain.Notes
    org.hibernate.HibernateException: Javassist Enhancement failed: com.csc.exceed.certificate.domain.Notes
    	at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxyFactory(JavassistLazyInitializer.java:169)
    	at org.hibernate.proxy.pojo.javassist.JavassistProxyFactory.postInstantiate(JavassistProxyFactory.java:66)
    	at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:183)
    	at org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:158)
    	at org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:76)
    	at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.<init>(EntityEntityModeToTuplizerMapping.java:80)
    	at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:325)
    	at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:457)
    	at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:131)
    	at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:84)
    	at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:261)
    	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)
    	at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814)
    	at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732)
    	at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
    	at java.security.AccessController.doPrivileged(Native Method)

    code defien in spring config
    Code:
    <context:spring-configured/>
       <context:annotation-config/>
Working...
X