lythanh
unread,Jul 26, 2010, 3:49:56 AM7/26/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ehcache Spring Annotations
I am having the same problem when spring creating bean, if I remove
ehcache annotation lines:
<ehcache:annotation-driven cache-manager="ehCacheManager" />
<bean id="ehCacheManager"
class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
<property name="configLocation" value="classpath:ehcache.xml" />
</bean>
my application work fine, but when I add these line, I got following
exception when start.
How is my problem, I have check for lib config and use Interface but
still have problem.
[DEBUG,DefaultListableBeanFactory] Creating shared instance of
singleton bean 'branchManager'
[DEBUG,DefaultListableBeanFactory] Creating instance of bean
'branchManager'
[DEBUG,DefaultListableBeanFactory] Eagerly caching bean
'branchManager' to allow for resolving potential circular references
[DEBUG,DefaultListableBeanFactory] Returning cached instance of
singleton bean 'branchDao'
[DEBUG,BeanUtils] No property editor
[com.vietinbank.ipay.branch.dao.BranchDaoEditor] found for type
com.vietinbank.ipay.branch.dao.BranchDao according to 'Editor' suffix
convention
[INFO,DefaultListableBeanFactory] Destroying singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@a7681:
defining beans
[dataSource,org.springframework.aop.config.internalAutoProxyCreator,com.googlecode.ehcache.annotations.key.CachingReflectionHelper,com.googlecode.ehcache.annotations.key.ListCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.key.HashCodeCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.key.MessageDigestCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.key.ReflectionHashCodeCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.key.StringCacheKeyGenerator.DEFAULT_BEAN_NAME,com.googlecode.ehcache.annotations.impl.CacheAttributeSourceImpl#0,com.googlecode.ehcache.annotations.impl.CacheStaticMethodMatcherPointcut#0,com.googlecode.ehcache.annotations.interceptor.EhCacheInterceptor#0,com.googlecode.ehcache.annotations.config.internalEhCacheCachingAdvisor,ehCacheManager,RetailIbACCDAO,IbCurrentcyDao,RetailIbCifDAO,RetailIbCifServDAO,RetailIBSysParDAO,RetailIBAuthenDAO,branchDao,userDao,userTxDao,roleDao,activityDao,bankUserDao,authenTokenDao,serviceTDao,serviceTManager,menuDao,menuManager,serviceDao,serviceManager,historyDao,tokenDao,historyManager,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,transactionManager,placeholderConfig,sessionRegistry,hqLdapAuthenticator,hqLdapAuthenticationProvider,userDetailsService,customAuthenticationProvider,ldapBankUserService,createUser,userTxManager,branchManager,roleManager,activityManager,bankUserManager,IbCurrencyManager,RetailIbAccManager,RetailIbCifManager,RetailIbCifServManager,RetailIBSysParManager,RetailIbAuthenManager,org.springframework.security.access.method.DelegatingMethodSecurityMetadataSource#0,org.springframework.security.access.vote.AffirmativeBased#0,org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor#0,org.springframework.security.methodSecurityMetadataSourceAdvisor,org.springframework.security.web.PortMapperImpl#0,org.springframework.security.web.context.HttpSessionSecurityContextRepository#0,org.springframework.security.web.authentication.session.ConcurrentSessionControlStrategy#0,org.springframework.security.authentication.ProviderManager#0,org.springframework.security.web.access.channel.ChannelDecisionManagerImpl#0,org.springframework.security.web.access.expression.DefaultWebSecurityExpressionHandler#0,org.springframework.security.access.vote.AffirmativeBased#1,org.springframework.security.web.access.intercept.FilterSecurityInterceptor#0,org.springframework.security.web.access.DefaultWebInvocationPrivilegeEvaluator#0,org.springframework.security.authentication.AnonymousAuthenticationProvider#0,org.springframework.security.web.savedrequest.HttpSessionRequestCache#0,org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter#0,org.springframework.security.config.http.UserDetailsServiceInjectionBeanPostProcessor#0,org.springframework.security.filterChainProxy,appLdapServer,org.springframework.security.core.userdetails.memory.InMemoryDaoImpl#0,org.springframework.security.authentication.dao.DaoAuthenticationProvider#0,org.springframework.security.authentication.DefaultAuthenticationEventPublisher#0,org.springframework.security.authenticationManager];
root of factory hierarchy
[DEBUG,DefaultListableBeanFactory] Retrieved dependent beans for bean
'com.googlecode.ehcache.annotations.key.CachingReflectionHelper':
[com.googlecode.ehcache.annotations.key.HashCodeCacheKeyGenerator.DEFAULT_BEAN_NAME,
com.googlecode.ehcache.annotations.impl.CacheAttributeSourceImpl#0,
com.googlecode.ehcache.annotations.key.ListCacheKeyGenerator.DEFAULT_BEAN_NAME,
com.googlecode.ehcache.annotations.key.MessageDigestCacheKeyGenerator.DEFAULT_BEAN_NAME,
com.googlecode.ehcache.annotations.key.ReflectionHashCodeCacheKeyGenerator.DEFAULT_BEAN_NAME,
com.googlecode.ehcache.annotations.key.StringCacheKeyGenerator.DEFAULT_BEAN_NAME]
[DEBUG,DefaultListableBeanFactory] Retrieved dependent beans for bean
'com.googlecode.ehcache.annotations.key.HashCodeCacheKeyGenerator.DEFAULT_BEAN_NAME':
[com.googlecode.ehcache.annotations.impl.CacheAttributeSourceImpl#0]
[DEBUG,DefaultListableBeanFactory] Retrieved dependent beans for bean
'com.googlecode.ehcache.annotations.impl.CacheAttributeSourceImpl#0':
[com.googlecode.ehcache.annotations.impl.CacheStaticMethodMatcherPointcut#0,
com.googlecode.ehcache.annotations.interceptor.EhCacheInterceptor#0]
[DEBUG,DefaultListableBeanFactory] Retrieved dependent beans for bean
'com.googlecode.ehcache.annotations.impl.CacheStaticMethodMatcherPointcut#0':
[com.googlecode.ehcache.annotations.config.internalEhCacheCachingAdvisor]
[DEBUG,DisposableBeanAdapter] Invoking destroy() on bean with name
'com.googlecode.ehcache.annotations.key.CachingReflectionHelper'
[DEBUG,DisposableBeanAdapter] Invoking destroy() on bean with name
'ehCacheManager'
[INFO,EhCacheManagerFactoryBean] Shutting down EHCache CacheManager
[ERROR,ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'branchManager' defined in ServletContext
resource [/WEB-INF/spring-contexts/service.xml]: Initialization of
bean failed; nested exception is
org.springframework.beans.ConversionNotSupportedException: Failed to
convert property value of type '$Proxy70 implementing
com.vietinbank.ipay.branch.dao.BranchDaoInterface,org.springframework.beans.factory.InitializingBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised'
to required type 'com.vietinbank.ipay.branch.dao.BranchDao' for
property 'branchDao'; nested exception is
java.lang.IllegalStateException: Cannot convert value of type
[$Proxy70 implementing
com.vietinbank.ipay.branch.dao.BranchDaoInterface,org.springframework.beans.factory.InitializingBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised]
to required type [com.vietinbank.ipay.branch.dao.BranchDao] for
property 'branchDao': no matching editors or conversion strategy found
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:
527)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:
456)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:291)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:
222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:
288)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:
190)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:
574)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:
895)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:
425)
at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:
276)
at
com.vietinbank.ipay.listener.StartupListener.createWebApplicationContext(StartupListener.java:
50001)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:
197)
at
com.vietinbank.ipay.listener.StartupListener.initWebApplicationContext(StartupListener.java:
50001)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:
47)
at
com.vietinbank.ipay.listener.StartupListener.contextInitialized(StartupListener.java:
42)
at weblogic.servlet.internal.EventsManager
$FireContextListenerAction.run(EventsManager.java:465)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:
321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at
weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:
175)
at
weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:
1784)
at
weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:
2999)
at
weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:
1371)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:
468)
at weblogic.application.internal.flow.ModuleStateDriver
$3.next(ModuleStateDriver.java:204)
at
weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:
37)
at
weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:
60)
at
weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:
200)
at
weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:
117)
at weblogic.application.internal.flow.ModuleStateDriver
$3.next(ModuleStateDriver.java:204)
at
weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:
37)
at
weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:
60)
at
weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:
27)
at weblogic.application.internal.BaseDeployment
$2.next(BaseDeployment.java:635)
at
weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:
37)
at
weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:
212)
at
weblogic.application.internal.EarDeployment.activate(EarDeployment.java:
16)
at
weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:
162)
at
weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:
79)
at
weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:
569)
at
weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:
140)
at
weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:
106)
at
weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(StartOperation.java:
143)
at
weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:
323)
at
weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:
820)
at
weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:
1227)
at
weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:
436)
at
weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:
163)
at
weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:
181)
at
weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access
$100(DeploymentReceiverCallbackDeliverer.java:12)
at
weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer
$2.run(DeploymentReceiverCallbackDeliverer.java:67)
at weblogic.work.SelfTuningWorkManagerImpl
$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: org.springframework.beans.ConversionNotSupportedException:
Failed to convert property value of type '$Proxy70 implementing
com.vietinbank.ipay.branch.dao.BranchDaoInterface,org.springframework.beans.factory.InitializingBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised'
to required type 'com.vietinbank.ipay.branch.dao.BranchDao' for
property 'branchDao'; nested exception is
java.lang.IllegalStateException: Cannot convert value of type
[$Proxy70 implementing
com.vietinbank.ipay.branch.dao.BranchDaoInterface,org.springframework.beans.factory.InitializingBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised]
to required type [com.vietinbank.ipay.branch.dao.BranchDao] for
property 'branchDao': no matching editors or conversion strategy found
at
org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:
462)
at
org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:
499)
at
org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:
493)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:
1363)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:
1322)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:
1076)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:
517)
... 52 more
Caused by: java.lang.IllegalStateException: Cannot convert value of
type [$Proxy70 implementing
com.vietinbank.ipay.branch.dao.BranchDaoInterface,org.springframework.beans.factory.InitializingBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised]
to required type [com.vietinbank.ipay.branch.dao.BranchDao] for
property 'branchDao': no matching editors or conversion strategy found
at
org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:
231)
at
org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:
447)
... 58 more
<Jul 26, 2010 2:32:43 PM ICT> <Warning> <HTTP> <BEA-101162> <User
defined listener com.vietinbank.ipay.listener.StartupListener failed:
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'branchManager' defined in ServletContext
resource [/WEB-INF/spring-contexts/service.xml]: Initialization of
bean failed; nested exception is
org.springframework.beans.ConversionNotSupportedException: Failed to
convert property value of type '$Proxy70 implementing
com.vietinbank.ipay.branch.dao.BranchDaoInterface,org.springframework.beans.factory.InitializingBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised'
to required type 'com.vietinbank.ipay.branch.dao.BranchDao' for
property 'branchDao'; nested exception is
java.lang.IllegalStateException: Cannot convert value of type
[$Proxy70 implementing
com.vietinbank.ipay.branch.dao.BranchDaoInterface,org.springframework.beans.factory.InitializingBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised]
to required type [com.vietinbank.ipay.branch.dao.BranchDao] for
property 'branchDao': no matching editors or conversion strategy
found.
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'branchManager' defined in ServletContext
resource [/WEB-INF/spring-contexts/service.xml]: Initialization of
bean failed; nested exception is
org.springframework.beans.ConversionNotSupportedException: Failed to
convert property value of type '$Proxy70 implementing
com.vietinbank.ipay.branch.dao.BranchDaoInterface,org.springframework.beans.factory.InitializingBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised'
to required type 'com.vietinbank.ipay.branch.dao.BranchDao' for
property 'branchDao'; nested exception is
java.lang.IllegalStateException: Cannot convert value of type
[$Proxy70 implementing
com.vietinbank.ipay.branch.dao.BranchDaoInterface,org.springframework.beans.factory.InitializingBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised]
to required type [com.vietinbank.ipay.branch.dao.BranchDao] for
property 'branchDao': no matching editors or conversion strategy found
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:
527)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:
456)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:291)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:
222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:
288)
Truncated. see log file for complete stacktrace
org.springframework.beans.ConversionNotSupportedException: Failed to
convert property value of type '$Proxy70 implementing
com.vietinbank.ipay.branch.dao.BranchDaoInterface,org.springframework.beans.factory.InitializingBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised'
to required type 'com.vietinbank.ipay.branch.dao.BranchDao' for
property 'branchDao'; nested exception is
java.lang.IllegalStateException: Cannot convert value of type
[$Proxy70 implementing
com.vietinbank.ipay.branch.dao.BranchDaoInterface,org.springframework.beans.factory.InitializingBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised]
to required type [com.vietinbank.ipay.branch.dao.BranchDao] for
property 'branchDao': no matching editors or conversion strategy found
at
org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:
462)
at
org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:
499)
at
org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:
493)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:
1363)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:
1322)
Truncated. see log file for complete stacktrace
java.lang.IllegalStateException: Cannot convert value of type
[$Proxy70 implementing
com.vietinbank.ipay.branch.dao.BranchDaoInterface,org.springframework.beans.factory.InitializingBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised]
to required type [com.vietinbank.ipay.branch.dao.BranchDao] for
property 'branchDao': no matching editors or conversion strategy found
at
org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:
231)
at
org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:
447)
at
org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:
499)
at
org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:
493)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:
1363)
Truncated. see log file for complete stacktrace
>
<Jul 26, 2010 2:32:43 PM ICT> <Error> <Deployer> <BEA-149265> <Failure
occurred in the execution of deployment request with ID
'1280129560158' for task '5'. Error is:
'weblogic.application.ModuleException: '
weblogic.application.ModuleException:
at
weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:
1373)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:
468)
at weblogic.application.internal.flow.ModuleStateDriver
$3.next(ModuleStateDriver.java:204)
at
weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:
37)
at
weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:
60)
Truncated. see log file for complete stacktrace
java.lang.IllegalStateException: Cannot convert value of type
[$Proxy70 implementing
com.vietinbank.ipay.branch.dao.BranchDaoInterface,org.springframework.beans.factory.InitializingBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised]
to required type [com.vietinbank.ipay.branch.dao.BranchDao] for
property 'branchDao': no matching editors or conversion strategy found
at
org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:
231)
at
org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:
447)
at
org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:
499)
at
org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:
493)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:
1363)
Truncated. see log file for complete stacktrace
>