Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
nitish tyagi
Error registering cache for management
March 8, 2013 2:58 AM
Answer

nitish tyagi

Rank: New Member

Posts: 7

Join Date: October 23, 2012

Recent Posts

Hi,
My server getting following error suddenly.:-


ERROR [ManagementService:272] Error registering cache for management for net.sf.ehcache:type=Cache,CacheManager=liferay-multi-vm,name=com
.liferay.portal.kernel.dao.orm.FinderCache.com.liferay.portal.model.impl.ResourceImpl . Error was net.sf.ehcache:type=Cache,CacheManager=liferay-multi
-vm,name=com.liferay.portal.kernel.dao.orm.FinderCache.com.liferay.portal.model.impl.ResourceImpl
javax.management.InstanceAlreadyExistsException: net.sf.ehcache:type=Cache,CacheManager=liferay-multi-vm,name=com.liferay.portal.kernel.dao.orm.Finder
Cache.com.liferay.portal.model.impl.ResourceImpl
at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:453)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1484)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:963)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:917)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:312)
at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482)
at net.sf.ehcache.management.ManagementService.registerCachesIfRequired(ManagementService.java:198)
at net.sf.ehcache.management.ManagementService.notifyCacheAdded(ManagementService.java:268)
at net.sf.ehcache.event.CacheManagerEventListenerRegistry.notifyCacheAdded(CacheManagerEventListenerRegistry.java:157)
at net.sf.ehcache.CacheManager.addCacheNoCheck(CacheManager.java:824)
at net.sf.ehcache.CacheManager.addCache(CacheManager.java:801)
at net.sf.ehcache.CacheManager.addCache(CacheManager.java:759)
at com.liferay.portal.cache.EhcachePortalCacheManager.getCache(EhcachePortalCacheManager.java:81)
at com.liferay.portal.cache.MultiVMPoolImpl.getCache(MultiVMPoolImpl.java:67)
at com.liferay.portal.dao.orm.common.FinderCacheImpl._getPortalCache(FinderCacheImpl.java:269)
at com.liferay.portal.dao.orm.common.FinderCacheImpl.getResult(FinderCacheImpl.java:119)
at com.liferay.portal.kernel.dao.orm.FinderCacheUtil.getResult(FinderCacheUtil.java:68)
at com.liferay.portal.service.persistence.ResourcePersistenceImpl.fetchByC_P(ResourcePersistenceImpl.java:634)
at com.liferay.portal.service.persistence.ResourcePersistenceImpl.fetchByC_P(ResourcePersistenceImpl.java:624)
at com.liferay.portal.service.persistence.ResourcePersistenceImpl.findByC_P(ResourcePersistenceImpl.java:597)
at com.liferay.portal.service.impl.ResourceLocalServiceImpl.getResource_1to5(ResourceLocalServiceImpl.java:829)
at com.liferay.portal.service.impl.ResourceLocalServiceImpl.getResource(ResourceLocalServiceImpl.java:325)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:77)
at com.liferay.portal.spring.aop.ServiceHookAdvice.invoke(ServiceHookAdvice.java:90)
at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:627)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:616)
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:64)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy58.getResource(Unknown Source)
at com.liferay.portal.service.ResourceLocalServiceUtil.getResource(ResourceLocalServiceUtil.java:196)
at com.liferay.portal.service.permission.LayoutPermissionImpl.contains(LayoutPermissionImpl.java:150)
at com.liferay.portal.service.permission.LayoutPermissionUtil.contains(LayoutPermissionUtil.java:81)
at com.liferay.portal.events.ServicePreAction.getViewableLayouts(ServicePreAction.java:502)
at com.liferay.portal.events.ServicePreAction.servicePre(ServicePreAction.java:1191)
at com.liferay.portal.events.ServicePreAction.run(ServicePreAction.java:148)
at com.liferay.portal.events.EventsProcessorImpl.processEvent(EventsProcessorImpl.java:91)
at com.liferay.portal.events.EventsProcessorImpl.process(EventsProcessorImpl.java:68)
at com.liferay.portal.ee.license.EventsProcessorImpl.process(Unknown Source)
at com.liferay.portal.events.EventsProcessorUtil.process(EventsProcessorUtil.java:63)
at com.liferay.portal.servlet.MainServlet.processServicePre(MainServlet.java:652)
at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:824)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:185)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:115)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:185)
at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:197)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:112)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:185)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:115)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:185)
at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:136)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:112)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:185)
at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:213)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:112)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:185)
at com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter.processFilter(NtlmPostFilter.java:91)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:112)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:185)
at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:191)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:112)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:185)
at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:238)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:112)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:185)
at com.liferay.portal.servlet.filters.threadlocalcache.ThreadLocalCacheFilter.processFilter(ThreadLocalCacheFilter.java:51)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:112)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:185)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:115)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:185)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:115)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:880)
at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:719)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2081)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Subhash Pavuskar
RE: Error registering cache for management
March 8, 2013 3:35 AM
Answer

Subhash Pavuskar

Rank: Regular Member

Posts: 234

Join Date: March 12, 2012

Recent Posts

Hi nitish,

Not sure but try this one add the following snippet on your portal-ext.properties !!
1ehcache.portal.cache.manager.jmx.enabled=false