spring - BeanCurrentlyInCreationException: Error creating bean with name 'scrService' -
i getting following error, spring ioc container definition. has spring quartz scheduler bean definition.
this final root cause of error.
caused by: org.springframework.beans.factory.beancurrentlyincreationexception: error creating bean name 'scrservice': org.springframework.beans.factory.factorybeannotinitializedexception: factorybean not initialized yet @ org.springframework.beans.factory.support.factorybeanregistrysupport.dogetobjectfromfactorybean(factorybeanregistrysupport.java:170) [spring-beans-3.2.13.release.jar:3.2.13.release] @ org.springframework.beans.factory.support.factorybeanregistrysupport.getobjectfromfactorybean(factorybeanregistrysupport.java:126) [spring-beans-3.2.13.release.jar:3.2.13.release] @ org.springframework.beans.factory.support.abstractbeanfactory.getobjectforbeaninstance(abstractbeanfactory.java:1467) [spring-beans-3.2.13.release.jar:3.2.13.release] @ org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:246) [spring-beans-3.2.13.release.jar:3.2.13.release] @ org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:191) [spring-beans-3.2.13.release.jar:3.2.13.release] @ org.springframework.beans.factory.support.beandefinitionvalueresolver.resolvereference(beandefinitionvalueresolver.java:328) [spring-beans-3.2.13.release.jar:3.2.13.release] ... 114 more
here applicationcontext-beans.xml configuration
<bean id="scheduler" class="org.springframework.scheduling.quartz.schedulerfactorybean" destroy-method="destroy"> <property name="schedulername"> <value>${org.quartz.scheduler.instancename}</value> </property> <property name="autostartup" value="true" /> <property name="startupdelay" value="10" /> <!-- prevent picking jobs database, please remove line below --> <property name="datasource" ref="datasource" /> <property name="transactionmanager" ref="transactionmanager"/> <property name="taskexecutor" ref="sendertaskexecutor" /> <property name="waitforjobstocompleteonshutdown" value="true"></property> <property name="quartzproperties"> <props> <prop key="org.quartz.scheduler.instanceid"> ${org.quartz.scheduler.instanceid} </prop> <!-- add key="org.quartz.jobstore.class" value "org.quartz.simpl.ramjobstore" in memory scheduler --> <!-- remove 3 lines below in memory scheduler --> <prop key="org.quartz.jobstore.driverdelegateclass"> ${org.quartz.jobstore.driverdelegateclass} </prop> <prop key="org.quartz.jobstore.isclustered"> ${org.quartz.jobstore.isclustered} </prop> <prop key="org.quartz.jobstore.clustercheckininterval"> ${org.quartz.jobstore.clustercheckininterval} </prop> <prop key="org.quartz.jobstore.useproperties"> ${org.quartz.jobstore.useproperties} </prop> </props> </property> <property name="schedulercontextasmap"> <map> <!--<entry key="scrservice"> <ref bean="scrservice" /> </entry>--> <entry key="numberlevelservice"> <ref bean="numberlevelservice" /> </entry> <!-- ... --> </map> </property> </bean> <!-- ... --> <bean id="scrservice" parent="baseservicetransactionproxy"> <property name="target" ref="scrservicetarget"></property> </bean> <!--abstract not have impl associated scrservicetarget or problem--> <bean id="numberlevelservice" class="com.ding.dong.numberlevelcontrollerimpl" factory-method="getinstance" lazy-init="true"> <constructor-arg ref="datasource"></constructor-arg> </bean> <bean id="scrservicetarget" class="com.ding.dong.scrserviceimpl"> <property name="pagesizefactor"> <value>${service.sender.pagesizefactor}</value> </property> <property name="tpsfactor"> <value>${service.sender.tpsfactor}</value> </property> <property name="scrdao" ref="scrdao"></property> <property name="scrruntimedao" ref="scrruntimedao"></property> <property name="scrreportdao" ref="scrreportdao"></property> <property name="scrtemplatedao" ref="scrtemplatedao"> </property> <property name="schedulerservice" ref="schedulerservice"></property> <property name="shortcodemanagerservice" ref="shortcodemanagerservice"> </property> <property name="userroleservice" ref="userroleservice"></property> <!-- prevent connecting jms, please remove line below --> <property name="messagesenderservice" ref="messagesenderservice"> </property> </bean> <bean id="baseservicetransactionproxy" class="org.springframework.transaction.interceptor.transactionproxyfactorybean" abstract="true"> <property name="transactionmanager" ref="transactionmanager" /> <property name="transactionattributes"> <props> <prop key="schedulescr"> propagation_required,-scrserviceruntimeexception </prop> <prop key="removescheduledscr"> propagation_required,-scrserviceruntimeexception </prop> <prop key="extendinprogressscr"> propagation_required,-scrserviceruntimeexception </prop> <prop key="stopinprogressscr"> propagation_required,-scrserviceruntimeexception </prop> <prop key="retrievescrforexecution"> propagation_required,-scrserviceruntimeexception </prop> <prop key="updatescrstate"> propagation_required,-scrserviceruntimeexception </prop> <prop key="process*"> propagation_required,-scrserviceruntimeexception </prop> <prop key="updatemessagelogforcontestwinners"> propagation_required,-scrserviceruntimeexception </prop> <prop key="retrievescr"> propagation_required,readonly </prop> <prop key="retrievetemplate"> propagation_required,readonly </prop> <prop key="getscheduledscrsmessagecount"> propagation_required,readonly </prop> <prop key="isuserquotaexceeded"> propagation_required,readonly </prop> <prop key="retrieveactivescr*"> propagation_required,readonly </prop> <prop key="retrievescrinfo"> propagation_required,readonly </prop> <prop key="scheduletask"> propagation_required,-schedulerserviceruntimeexception </prop> <prop key="*scheduledtask"> propagation_required,-schedulerserviceruntimeexception </prop> <prop key="updatetaskschedule"> propagation_required,-schedulerserviceruntimeexception </prop> </props> </property> <property name="preinterceptors"> <ref bean="performanceinterceptor" /> </property> </bean>
for had commented following quartz scheduler entry, works fine...
<!--<entry key="scrservice"> <ref bean="scrservice" /> </entry>-->
as per interpretation of trace-log, scrservice has abstract implementation...
please advise situation... suggestions....
Comments
Post a Comment