Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
jcs-2.0-beta-1
-
None
Description
Redeploying an ear file on Geronimo 2.2.1 results in a InstanceAlreadyExistsException, refering to already existing JCSAdminBean.
Deploying on a restarted app server works fine though. Removing the ear and deploy it again does also throw the exception.
Seems like the bean is not being removed when the app gets undeployed.
The affected version is beta1, but this can not be selected in the drop-down.
2015-03-10 15:55:39,642 INFO [CompositeCacheManager] Instance is null, creating with config [/cache.ccf]
2015-03-10 15:55:39,672 WARN [CompositeCacheManager] Could not register JMX bean.
javax.management.InstanceAlreadyExistsException: org.apache.commons.jcs:type=JCSAdminBean
at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(DefaultMBeanServerInterceptor.java:1898)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:966)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324)
at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522)
at org.apache.commons.jcs.engine.control.CompositeCacheManager.initialize(CompositeCacheManager.java:261)
at org.apache.commons.jcs.engine.control.CompositeCacheManager.getInstance(CompositeCacheManager.java:175)
at org.apache.commons.jcs.engine.control.CompositeCacheManager.getInstance(CompositeCacheManager.java:151)
at org.apache.commons.jcs.JCS.getCacheManager(JCS.java:147)
at org.apache.commons.jcs.JCS.getInstance(JCS.java:165)
at at.weberhofer.config.entitymanager.ConfigCacheControlImpl.createContainer(ConfigCacheControlImpl.java:64)
at at.weberhofer.server.cache.CachedItemsImpl.getContainer(CachedItemsImpl.java:97)
at at.weberhofer.server.cache.CachedItemsImpl.getCachedItems(CachedItemsImpl.java:90)
at at.weberhofer.config.entitymanager.ConfigManager.getConfigValue(ConfigManager.java:179)
at at.weberhofer.config.entitymanager.ConfigManager.getConfigValue(ConfigManager.java:220)
at at.weberhofer.config.entitymanager.ConfigManager.getConfigValueBoolean(ConfigManager.java:272)
at at.weberhofer.configuration.ConfigBean.getBooleanSetting(ConfigBean.java:90)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:162)
at org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:144)
at org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:164)
at org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:92)
at sun.reflect.GeneratedMethodAccessor139.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:162)
at org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:144)
at org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:122)
at org.apache.openejb.core.stateless.StatelessContainer._invoke(StatelessContainer.java:221)
at org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:174)
at org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:217)
at org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(EjbObjectProxyHandler.java:77)
at org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:282)
at com.sun.proxy.$Proxy139.getBooleanSetting(Unknown Source)
at at.weberhofer.eusoda.server.scheduler.EusodaJobInitializer.init(EusodaJobInitializer.java:49)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1065)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:967)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4343)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4649)
at org.apache.geronimo.tomcat.GeronimoStandardContext.access$201(GeronimoStandardContext.java:64)
at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:412)
at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47)
at org.apache.geronimo.tomcat.GeronimoStandardContext.start(GeronimoStandardContext.java:264)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
at org.apache.geronimo.tomcat.TomcatContainer.addContext(TomcatContainer.java:339)
at org.apache.geronimo.tomcat.TomcatWebAppContext.doStart(TomcatWebAppContext.java:525)
at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:953)
at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:269)
at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:103)
at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:525)
at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110)
at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145)
at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119)
at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:175)
at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:44)
at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:253)
at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:295)
at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:103)
at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:125)
at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:539)
at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:377)
at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:456)
at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:493)
at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:190)
at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:546)
at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:527)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:130)
at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:816)
at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
at org.apache.geronimo.gbean.GBeanLifecycle$$EnhancerByCGLIB$$47ff2759.startConfiguration(<generated>)
at org.apache.geronimo.deployment.plugin.local.RedeployCommand.redeploySameConfiguration(RedeployCommand.java:229)
at org.apache.geronimo.deployment.plugin.local.RedeployCommand.run(RedeployCommand.java:101)
at java.lang.Thread.run(Thread.java:745)
2015-03-10 15:55:39,684 INFO [CompositeCacheManager] Creating cache manager from config file: /cache.ccf
2015-03-10 15:55:39,713 INFO [ThreadPoolManager] thread_pool.default PoolConfiguration = useBoundary = [true] boundarySize = [2000] maximumPoolSize = [150] minimumPoolSize = [4] keepAliveTime = [300000] whenBlockedPolicy = [RUN] startUpSize = [4]
2015-03-10 15:55:39,735 INFO [CompositeCacheConfigurator] Setting default auxiliaries to
2015-03-10 15:55:39,752 INFO [CompositeCacheConfigurator] setting defaultCompositeCacheAttributes to [ useLateral = true, useRemote = true, useDisk = true, maxObjs = 1000, maxSpoolPerRun = -1, diskUsagePattern = SWAP, spoolChunkSize = 2 ]
2015-03-10 15:55:39,752 INFO [CompositeCacheConfigurator] No special ElementAttribute class defined for key [jcs.default.elementattributes], using default class.
2015-03-10 15:55:39,753 INFO [CompositeCacheConfigurator] setting defaultElementAttributes to [ IS_LATERAL = true, IS_SPOOL = true, IS_REMOTE = true, IS_ETERNAL = true, MaxLifeSeconds = -1, IdleTime = -1, CreateTime = 1425977739752, LastAccessTime = 1425977739752, getTimeToLiveSeconds() = -1, createTime = 1425977739752 ]
2015-03-10 15:55:39,830 INFO [AbstractDoubleLinkedListMemoryCache] initialized MemoryCache for resourceCache
2015-03-10 15:55:39,830 INFO [CompositeCache] Constructed cache with name [resourceCache] and cache attributes [ useLateral = true, useRemote = true, useDisk = true, maxObjs = 5000, maxSpoolPerRun = -1, diskUsagePattern = SWAP, spoolChunkSize = 2 ]
2015-03-10 15:55:39,835 INFO [CompositeCacheConfigurator] Parsed regions [resourceCache]
2015-03-10 15:55:39,835 INFO [CompositeCacheConfigurator] Finished configuration in 103 ms.
2015-03-10 15:55:39,835 INFO [CompositeCacheConfigurator] No special ElementAttribute class defined for key [jcs.region.configCache.elementattributes], using default class.
2015-03-10 15:55:39,836 INFO [AbstractDoubleLinkedListMemoryCache] initialized MemoryCache for configCache
2015-03-10 15:55:39,836 INFO [CompositeCache] Constructed cache with name [configCache] and cache attributes [ useLateral = true, useRemote = true, useDisk = true, maxObjs = 1000, maxSpoolPerRun = -1, diskUsagePattern = SWAP, spoolChunkSize = 2 ]