cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edison Su <Edison...@citrix.com>
Subject RE: AgentHandler Classloading Issue
Date Tue, 02 Oct 2012 23:35:37 GMT
You can take a look at: buid/package.xml -> package-oss-systemvm, 

> -----Original Message-----
> From: John Burwell [mailto:jburwell@basho.com]
> Sent: Tuesday, October 02, 2012 4:03 PM
> To: cloudstack-dev@incubator.apache.org
> Subject: Re: AgentHandler Classloading Issue
> 
> 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 <jburwell@basho.com> wrote:
> 
> > Edison,
> >
> > The following is the stack track from the log:
> >
> > 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(NfsSecon
> daryStorageResource.java:365)
> >        at
> com.cloud.storage.resource.NfsSecondaryStorageResource.executeRequest(N
> fsSecondaryStorageResource.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(ThreadPoolExecut
> or.java:886)
> >        at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.j
> ava: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
> >
> > Thank you for your help,
> > -John
> >
> > On Oct 2, 2012, at 5:27 PM, Edison Su <Edison.su@citrix.com> wrote:
> >
> >> Do you have log message for this NoClassDefFound exception?
> >>
> >>> -----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
> >>>
> >>> All,
> >>>
> >>> 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?
> >>>
> >>> Thank you for your assistance,
> >>> -John
> >


Mime
View raw message