From issues-return-71390-archive-asf-public=cust-asf.ponee.io@commons.apache.org Fri Jan 4 17:42:04 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id A05B0180660 for ; Fri, 4 Jan 2019 17:42:03 +0100 (CET) Received: (qmail 81490 invoked by uid 500); 4 Jan 2019 16:42:02 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 81476 invoked by uid 99); 4 Jan 2019 16:42:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jan 2019 16:42:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 42AB3C25EE for ; Fri, 4 Jan 2019 16:42:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.501 X-Spam-Level: X-Spam-Status: No, score=-109.501 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id c06VxIRu61bq for ; Fri, 4 Jan 2019 16:42:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id BBF7961066 for ; Fri, 4 Jan 2019 16:42:00 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 47AADE0E33 for ; Fri, 4 Jan 2019 16:42:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 0687C2540C for ; Fri, 4 Jan 2019 16:42:00 +0000 (UTC) Date: Fri, 4 Jan 2019 16:42:00 +0000 (UTC) From: "naga kumar (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (JCS-196) Getting an issue with commons-jcs-core 2.0 version, which is InstanceAlreadyExistsException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 naga kumar created JCS-196: ------------------------------ Summary: Getting an issue with commons-jcs-core 2.0 version, w= hich is InstanceAlreadyExistsException Key: JCS-196 URL: https://issues.apache.org/jira/browse/JCS-196 Project: Commons JCS Issue Type: Bug Components: Composite Cache Affects Versions: jcs-2.0 Reporter: naga kumar Hi, I have recently tried using JCS 2.0 version. my intention is to improve the= performance of my application since my application communicates data base = frequently. So, i have implemented a single service on cache, and when i ru= n this service as a standalone(not through web module, but using main metho= d in java), i am able to prove that the call is going to cache for sure for= second time since the first call must go to data base. And, finally my iss= ue is, when i deploy the same application, which has cache implementation, = and run the web module, i am getting below exception. Can you please solve = it as soon as possible since i am dead line. and if possible, can you share= a best cache.ccf file for best config.=C2=A0 =C2=A0 Exception details -------------------------------------- 2019-01-04 16:47:49.426 WARN com.opentext.otag.service.agent.AppManagementA= gent - Found potential problem class org.apache.commons.jcs.utils.servlet.J= CSServletContextListener: implements ServletContextListener 2019-01-04 16:47:49.426 WARN com.opentext.otag.service.agent.AppManagementA= gent - Found potential problem class org.apache.tomcat.websocket.server.WsC= ontextListener: implements ServletContextListener 2019-01-04 16:47:49.426 WARN com.opentext.otag.service.agent.AppManagementA= gent - Found potential problem class org.apache.commons.logging.impl.Servle= tContextCleaner: implements ServletContextListener 2019-01-04 16:47:49.426 WARN com.opentext.otag.service.agent.AppManagementA= gent - Found potential problem class com.opentext.otag.service.agent.Servic= eBootstrapListener: implements ServletContextListener =C2=A0 org.apache.commons.jcs.engine.control.CompositeCacheManager - Could not reg= ister JMX bean. javax.management.InstanceAlreadyExistsException: org.apache.commons.jcs:typ= e=3DJCSAdminBean at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepos= itory(DefaultMBeanServerInterceptor.java:1898) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMB= ean(DefaultMBeanServerInterceptor.java:966) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(De= faultMBeanServerInterceptor.java:900) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(Def= aultMBeanServerInterceptor.java:324) at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.jav= a:522) at org.apache.commons.jcs.engine.control.CompositeCacheManager.initialize(= CompositeCacheManager.java:271) at org.apache.commons.jcs.engine.control.CompositeCacheManager.getInstance= (CompositeCacheManager.java:185) at org.apache.commons.jcs.engine.control.CompositeCacheManager.getInstance= (CompositeCacheManager.java:161) at org.apache.commons.jcs.JCS.getCacheManager(JCS.java:156) at org.apache.commons.jcs.JCS.getInstance(JCS.java:174) =C2=A0 --------------------------------------------------------------- Note: If you share any solution, please give it us with a sample code. =C2=A0 thanks, Naga. -- This message was sent by Atlassian JIRA (v7.6.3#76005)