Return-Path: X-Original-To: apmail-accumulo-dev-archive@www.apache.org Delivered-To: apmail-accumulo-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D38C1D3C2 for ; Fri, 7 Sep 2012 01:08:07 +0000 (UTC) Received: (qmail 89966 invoked by uid 500); 7 Sep 2012 01:08:07 -0000 Delivered-To: apmail-accumulo-dev-archive@accumulo.apache.org Received: (qmail 89833 invoked by uid 500); 7 Sep 2012 01:08:07 -0000 Mailing-List: contact dev-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list dev@accumulo.apache.org Received: (qmail 89726 invoked by uid 99); 7 Sep 2012 01:08:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Sep 2012 01:08:07 +0000 Date: Fri, 7 Sep 2012 12:08:07 +1100 (NCT) From: "Christopher Tubbs (JIRA)" To: dev@accumulo.apache.org Message-ID: <1086873338.47809.1346980087636.JavaMail.jiratomcat@arcas> In-Reply-To: <1912943077.2483.1344390790217.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (ACCUMULO-721) Reloading of lib/ext classloader causes LinkageError MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ACCUMULO-721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13450244#comment-13450244 ] Christopher Tubbs commented on ACCUMULO-721: -------------------------------------------- Which released versions are affected by this bug? > Reloading of lib/ext classloader causes LinkageError > ---------------------------------------------------- > > Key: ACCUMULO-721 > URL: https://issues.apache.org/jira/browse/ACCUMULO-721 > Project: Accumulo > Issue Type: Bug > Components: tserver > Reporter: Josh Elser > Assignee: Keith Turner > Attachments: ACCUMULO-721-classpath, ACCUMULO-721-tserver.debug.log > > > I was writing an iterator that takes advantage of some classes in Google's guava-libraries. I placed my jar and the guava-13.0-rc2.jar into lib/ext. > I then ran a simple Java class which opened a Scanner to a table with my customer Iterator in Eclipse. The first attempt succeeded. I then changed my iterator, recompiled the jar, and placed it in lib/ext. The AccumuloClassLoader message said it picked up the changes. Then, trying to run my class in the same manner, I got a java.lang.LinkageError relating to the classloader having two different Class objects for a class defined in the guava jar (which hadn't changed). > Moving the guava jar from lib/ext to lib/ and retrying this experiment did not net the same LinkageError. > I'll attach full stack traces and the output of `accumulo classpath` -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira