Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 28800DAC8 for ; Tue, 2 Oct 2012 23:03:02 +0000 (UTC) Received: (qmail 6344 invoked by uid 500); 2 Oct 2012 23:03:02 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 6303 invoked by uid 500); 2 Oct 2012 23:03:02 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 6295 invoked by uid 99); 2 Oct 2012 23:03:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Oct 2012 23:03:01 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jburwell@basho.com designates 209.85.216.54 as permitted sender) Received: from [209.85.216.54] (HELO mail-qa0-f54.google.com) (209.85.216.54) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Oct 2012 23:02:56 +0000 Received: by qady23 with SMTP id y23so1248491qad.6 for ; Tue, 02 Oct 2012 16:02:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=hYwUykAMP+n1CG9XN6tCOdArtdlHQygtmwBr13IM9EA=; b=WIbuGxzg7phsAK/7n78Z5YzjLrVyeOjeeoudDUm/aijzEtm1h0d5vQg8KBqUm7u0C+ JpCA54Jnf7EqpaPu/pAYXb+sXoF46NSnozonBf4ggq2rWVZPFnYD6Qg+11GQXH0QTJMt weWQv2pRNzcDbmzmcThAE4vRONVSW+dtQeOeHicvJtxvbbJkXe2UtCZ2wmFl29QvFIQN 7BcnSazDfikXM60kIMGuocBIWuHyIPQIrxwk9As+6jwh+o1PBSmxYaevd4OBKI1kzaEu lTXG71VpTakWhGo8J4AubSoZkbeYPsLHWKpmk1e1z3ZUMvhGbBjEyoUdwvKs49i3s/8E 339Q== Received: by 10.229.136.136 with SMTP id r8mr124970qct.35.1349218955395; Tue, 02 Oct 2012 16:02:35 -0700 (PDT) Received: from jburwell-basho.cockamamy.net (dsl093-100-104.wdc2.dsl.speakeasy.net. [66.93.100.104]) by mx.google.com with ESMTPS id c9sm3413252qeh.1.2012.10.02.16.02.32 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 02 Oct 2012 16:02:34 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1486\)) Subject: Re: AgentHandler Classloading Issue From: John Burwell In-Reply-To: <79A95262-ED5B-4A08-ACDF-7AC9C3AE6E04@basho.com> Date: Tue, 2 Oct 2012 19:02:35 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <9782DE38-9FCD-42FC-B6F7-15389397CF3E@basho.com> References: <9DC10A5F-CD7A-4EBE-8993-DD3396B7D855@basho.com> <79A95262-ED5B-4A08-ACDF-7AC9C3AE6E04@basho.com> To: cloudstack-dev@incubator.apache.org X-Mailer: Apple Mail (2.1486) X-Gm-Message-State: ALoCoQmbFhI4P6VqdzGIDlUlRaiOYdliuD/2YAaL4FsLFkLjaMjM34YgmRccC8iKFBkmH/SYECq3 X-Virus-Checked: Checked by ClamAV on apache.org Edison, I am running on a devcloud VM, and that directory does not appear to be = present. Is there an alternative directory for the devcloud = environment? Also, how do I modify the build process to include the AWS = client jars and associated dependencies in the system vm? Thank you for your help, -John On Oct 2, 2012, at 5:49 PM, John Burwell wrote: > Edison, >=20 > The following is the stack track from the log: >=20 > 2012-10-02 14:47:59,663 ERROR [cloud.template.S3SyncTask] = (s3-template-sync-1:null) Failed to sync S3 objects due to the following = error: Failed to upload template 5 to S3 from secondary storage due to = java.lang.NoClassDefFoundError: com/amazonaws/auth/AWSCredentials > at = com.cloud.storage.resource.NfsSecondaryStorageResource.execute(NfsSecondar= yStorageResource.java:365) > at = com.cloud.storage.resource.NfsSecondaryStorageResource.executeRequest(NfsS= econdaryStorageResource.java:194) > at com.cloud.agent.Agent.processRequest(Agent.java:518) > at = com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:831) > at com.cloud.utils.nio.Task.run(Task.java:83) > 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:662) > Caused by: java.lang.ClassNotFoundException: = com.amazonaws.auth.AWSCredentials > at java.net.URLClassLoader$1.run(URLClassLoader.java:202) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:190) > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > at = sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) > at java.lang.ClassLoader.loadClass(ClassLoader.java:247) > ... 8 more >=20 > Thank you for your help, > -John >=20 > On Oct 2, 2012, at 5:27 PM, Edison Su wrote: >=20 >> Do you have log message for this NoClassDefFound exception? >>=20 >>> -----Original Message----- >>> From: John Burwell [mailto:jburwell@basho.com] >>> Sent: Tuesday, October 02, 2012 1:35 PM >>> To: cloudstack-dev@incubator.apache.org >>> Subject: AgentHandler Classloading Issue >>>=20 >>> All, >>>=20 >>> NoClassDefFound exceptions are occurring when executing code in an >>> AgentManager-Handler thread pool (specifically calling a utility = class >>> from the cloud-utils module while in an NfsSecondaryStorageResource >>> method). The same code executes without error in other thread = contexts >>> (e.g. calling the same method from code executing in the ApiServer >>> thread pool). I have isolated the NoClassDefFound exception to this >>> particular thread pool which appears to be started in the >>> com.cloud.utils.nio.NioConnection class. I have also been unable to >>> find log messages from work executing in the AgentManager-Handler >>> thread pool. Additionally, breakpoints set do not fire when code is >>> executing in the AgentManager-Handler, but do in other thread = contexts. >>> What is different about code executing in this thread pool? Are = there >>> any special steps that must be taken for this code? >>>=20 >>> Thank you for your assistance, >>> -John >=20