Facing ClassFoundException when i am using Spring @Transactional annotationn. When I removed annotation everything working fine -


we migrating our application xml annotation based configuration. when trying access @tranasactional class getting classnotfoundexception. find below stack trace. in computeevaluatefailureservice class using method level annotation.

org.springframework.beans.factory.beancreationexception: error creating bean name 'computeevaluatefailureservice': initialization of bean failed; nested exception org.springframework.aop.framework.aopconfigexception: not generate cglib subclass of class [class com.xx.xx.service.computeevaluatefailureservice]: common causes of problem include using final class or non-visible class; nested exception org.springframework.cglib.core.codegenerationexception: java.lang.reflect.invocationtargetexception-->null @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:547) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:476) @ org.springframework.beans.factory.support.abstractbeanfactory$1.getobject(abstractbeanfactory.java:303) @ org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry.java:230) @ org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:299) @ org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:217) @ org.springframework.beans.factory.support.defaultlistablebeanfactory.getbean(defaultlistablebeanfactory.java:350) @ org.springframework.beans.factory.support.defaultlistablebeanfactory.getbean(defaultlistablebeanfactory.java:331) @ com.xx.xx.job.reliabilitymetricsjob.(reliabilitymetricsjob.java:60) @ sun.reflect.nativeconstructoraccessorimpl.newinstance0(native method) @ sun.reflect.nativeconstructoraccessorimpl.newinstance(nativeconstructoraccessorimpl.java:62) @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(delegatingconstructoraccessorimpl.java:45) @ java.lang.reflect.constructor.newinstance(constructor.java:422) @ java.lang.class.newinstance(class.java:442) @ com.xx.xx.common.utils.reflectionutils.getinstance(reflectionutils.java:134) @ com.xx.xx.xx.utils.reflectionutils.getinstance(reflectionutils.java:163) @ com.xx.xx.scheduler.utils.jobsexecuteutil.executecustomjob(jobsexecuteutil.java:334) @ com.xx.xx.scheduler.job.customtimerjob.executejob(customtimerjob.java:28) @ com.xx.xx.scheduler.base.basejob.executeinternal(basejob.java:193) @ org.xx.scheduling.quartz.quartzjobbean.execute(quartzjobbean.java:75) @ org.quartz.core.jobrunshell.run(jobrunshell.java:202) @ org.quartz.simpl.simplethreadpool$workerthread.run(simplethreadpool.java:573) caused by: org.springframework.aop.framework.aopconfigexception: not generate cglib subclass of class [class com.xx.xx.service.computeevaluatefailureservice]: common causes of problem include using final class or non-visible class; nested exception org.springframework.cglib.core.codegenerationexception: java.lang.reflect.invocationtargetexception-->null @ org.springframework.aop.framework.cglibaopproxy.getproxy(cglibaopproxy.java:206) @ org.springframework.aop.framework.proxyfactory.getproxy(proxyfactory.java:109) @ org.springframework.aop.framework.autoproxy.abstractautoproxycreator.createproxy(abstractautoproxycreator.java:447) @ org.springframework.aop.framework.autoproxy.abstractautoproxycreator.wrapifnecessary(abstractautoproxycreator.java:333) @ org.springframework.aop.framework.autoproxy.abstractautoproxycreator.postprocessafterinitialization(abstractautoproxycreator.java:293) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.applybeanpostprocessorsafterinitialization(abstractautowirecapablebeanfactory.java:422) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.initializebean(abstractautowirecapablebeanfactory.java:1579) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:539) ... 21 more caused by: org.springframework.cglib.core.codegenerationexception: java.lang.reflect.invocationtargetexception-->null @ org.springframework.cglib.core.abstractclassgenerator.create(abstractclassgenerator.java:237) @ org.springframework.cglib.proxy.enhancer.createhelper(enhancer.java:377) @ org.springframework.cglib.proxy.enhancer.createclass(enhancer.java:317) @ org.springframework.aop.framework.objenesiscglibaopproxy.createproxyclassandinstance(objenesiscglibaopproxy.java:57) @ org.springframework.aop.framework.cglibaopproxy.getproxy(cglibaopproxy.java:202) ... 28 more caused by: java.lang.reflect.invocationtargetexception @ sun.reflect.generatedmethodaccessor46.invoke(unknown source) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:497) @ org.springframework.cglib.core.reflectutils.defineclass(reflectutils.java:384) @ org.springframework.cglib.core.abstractclassgenerator.create(abstractclassgenerator.java:219) ... 32 more caused by: java.lang.noclassdeffounderror: com/xx/xx/service/computeevaluatefailureservice @ java.lang.classloader.defineclass1(native method) @ java.lang.classloader.defineclass(classloader.java:760) ... 37 more caused by: java.lang.classnotfoundexception: com.xx.xx.service.computeevaluatefailureservice @ org.apache.catalina.loader.webappclassloaderbase.loadclass(webappclassloaderbase.java:1305) @ org.apache.catalina.loader.webappclassloaderbase.loadclass(webappclassloaderbase.java:1157) ... 39 more


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -