Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 43953 invoked from network); 25 Aug 2010 11:55:14 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 25 Aug 2010 11:55:14 -0000 Received: (qmail 91989 invoked by uid 500); 25 Aug 2010 11:55:14 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 91822 invoked by uid 500); 25 Aug 2010 11:55:10 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 91810 invoked by uid 500); 25 Aug 2010 11:55:09 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 91807 invoked by uid 99); 25 Aug 2010 11:55:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Aug 2010 11:55:09 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Aug 2010 11:55:08 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o7PBsmaU005108 for ; Wed, 25 Aug 2010 11:54:48 GMT Message-ID: <16609194.15621282737287998.JavaMail.jira@thor> Date: Wed, 25 Aug 2010 07:54:47 -0400 (EDT) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Resolved: (CAMEL-3077) Cache Component needs to check for null values during GET operations In-Reply-To: <26007763.14911282706747392.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c [ https://issues.apache.org/activemq/browse/CAMEL-3077?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen resolved CAMEL-3077. -------------------------------- Assignee: Claus Ibsen Fix Version/s: 2.5.0 Resolution: Fixed trunk: 989026. Thanks for the patch. > Cache Component needs to check for null values during GET operations > -------------------------------------------------------------------- > > Key: CAMEL-3077 > URL: https://issues.apache.org/activemq/browse/CAMEL-3077 > Project: Apache Camel > Issue Type: Bug > Affects Versions: 2.4.0 > Environment: Received 2.4.0 release of Camel and Camel Cache component from Maven repo > Reporter: John Ellis > Assignee: Claus Ibsen > Fix For: 2.5.0 > > Attachments: CacheProducer.NPE.patch > > > EhCache often has a bit of lag time when invalidating expired cache elements, first setting the Element value to null and then removing the key. If you are hitting a cache rapidly one often will run across a key that is present in the cache that still has a null element entry. > The logic for successfully key retrieval just needs to be slightly tweaked to check for null values. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.