Использование источника исходного кода AspectJ Exception (Javassist Enhancement не удалось) - PullRequest
0 голосов
/ 04 мая 2011

Я использую AspectJ в Spring Source Tool. Когда я вызываю аспекты в доменных объектах, я получаю следующие исключения

09: 50: 23,091 WARN PojoEntityTuplizer: 195 - не удалось создать прокси фабрика для: com.csc.exceed.certificate.domain.CertObjRel org.hibernate.HibernateException: не удалось улучшить Javassist: com.csc.exceed.certificate.domain.CertObjRel at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxyFactory (JavassistLazyInitializer.java:169) в org.hibernate.proxy.pojo.javassist.JavassistProxyFactory.postInstantiate (JavassistProxyFactory.java:66) в org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory (PojoEntityTuplizer.java:183) в org.hibernate.tuple.entity.AbstractEntityTuplizer. (AbstractEntityTuplizer.java:158) в org.hibernate.tuple.entity.PojoEntityTuplizer. (PojoEntityTuplizer.java:76) в org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping. (EntityEntityModeToTuplizerMapping.java:80) в org.hibernate.tuple.entity.EntityMetamodel. (EntityMetamodel.java:325) в org.hibernate.persister.entity.AbstractEntityPersister. (AbstractEntityPersister.java:457) в org.hibernate.persister.entity.SingleTableEntityPersister. (SingleTableEntityPersister.java:131) в org.hibernate.persister.PersisterFactory.createClassPersister (PersisterFactory.java:84) в org.hibernate.impl.SessionFactoryImpl. (SessionFactoryImpl.java:261) в org.hibernate.cfg.Configuration.buildSessionFactory (Configuration.java:1327) в org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory (LocalSessionFactoryBean.java:814) в org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory (LocalSessionFactoryBean.java:732) в org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet (AbstractSessionFactoryBean.java:211) в org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods (AbstractAutowireCapableBeanFactory.java:1369) в org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean (AbstractAutowireCapableBeanFactory.java:1335) в org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:473) в org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory $ 1.run (AbstractAutowireCapableBeanFactory.java:409) в java.security.AccessController.doPrivileged (собственный метод) в org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:380) в org.springframework.beans.factory.support.AbstractBeanFactory $ 1.getObject (AbstractBeanFactory.java:264) в org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:222) в org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:261) в org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:185) в org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:164) в org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference (BeanDefinitionValueResolver.java:269) в org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary (BeanDefinitionValueResolver.java:104) в org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues ​​(AbstractAutowireCapableBeanFactory.java:1245) в org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean (AbstractAutowireCapableBeanFactory.java:1010) вorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:472) в org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory $ 1.run (AbstractAutowireCapableBeanFactory.java:409) в java.security.AccessController.doPrivileged (собственный метод) в org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:380) в org.springframework.beans.factory.support.AbstractBeanFactory $ 1.getObject (AbstractBeanFactory.java:264) в org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:222) в org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:261) в org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:185) в org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:164) в org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference (BeanDefinitionValueResolver.java:269) в org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary (BeanDefinitionValueResolver.java:104) в org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues ​​(AbstractAutowireCapableBeanFactory.java:1245) в org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean (AbstractAutowireCapableBeanFactory.java:1010) в org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:472) в org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory $ 1.run (AbstractAutowireCapableBeanFactory.java:409) в java.security.AccessController.doPrivileged (собственный метод) в org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:380) в org.springframework.beans.factory.support.AbstractBeanFactory $ 1.getObject (AbstractBeanFactory.java:264) в org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:222) в org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:261) в org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:185) в org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:164) в org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons (DefaultListableBeanFactory.java:429) в org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization (AbstractApplicationContext.java:728) в org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:380) в org.springframework.web.context.ContextLoader.createWebApplicationContext (ContextLoader.java:255) в org.springframework.web.context.ContextLoader.initWebApplicationContext (ContextLoader.java:199) в org.springframework.web.context.ContextLoaderListener.contextInitialized (ContextLoaderListener.java:45) в org.apache.catalina.core.StandardContext.listenerStart (StandardContext.java:3972) в org.apache.catalina.core.StandardContext.start (StandardContext.java:4467) в org.apache.catalina.core.ContainerBase.start (ContainerBase.java:1045) в org.apache.catalina.core.StandardHost.start (StandardHost.java:785) в org.apache.catalina.core.ContainerBase.start (ContainerBase.java:1045) в org.apache.catalina.core.StandardEngine.start (StandardEngine.java:443) в org.apache.catalina.core.StandardService.start (StandardService.java:519) вorg.apache.catalina.core.StandardServer.start (StandardServer.java:710) в org.apache.catalina.startup.Catalina.start (Catalina.java:581) в sun.reflect.NativeMethodAccessorImpl.invoke0 (собственный метод) в sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) в с

...