cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wei ZHOU <ustcweiz...@gmail.com>
Subject Re: Libvirt-java 0.5.0 has been released
Date Thu, 26 Sep 2013 05:18:06 GMT
Mike,
Do you test the latest source code?

 Pointer.nativeValue  is introduced in jna-3.2.6
http://upstream-tracker.org/java/compat_reports/jna/3.2.5_to_3.2.6/bin_compat_report.html
and Native.free  is introduced in jna-3.3.0
http://upstream-tracker.org/java/compat_reports/jna/3.2.7_to_3.3.0/bin_compat_report.html

After commit 3dc4284,  jna-4.0.0.jar is in /usr/share/cloudstack-agent/lib
, then it should be ok.

-Wei


2013/9/26 Mike Tutkowski <mike.tutkowski@solidfire.com>

> Hi,
>
> I've been having a difficult time getting the KVM agent on master to start
> on Ubuntu 12.04.
>
> The trouble seems to have begun after the Libvirt upgrade.
>
> Any thoughts on this:
>
> Thanks!
>
> log4j:WARN No appenders could be found for logger
> (org.apache.commons.httpclient.params.DefaultHttpParams).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
> more info.
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at
> org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:243)
> Caused by: java.lang.NoSuchMethodError: com.sun.jna.Native.free(J)V
> at org.libvirt.Library.free(Unknown Source)
> at org.libvirt.Connect.getCapabilities(Unknown Source)
> at
>
> com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.IsHVMEnabled(LibvirtComputingResource.java:4524)
> at
>
> com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.configure(LibvirtComputingResource.java:753)
> at com.cloud.agent.Agent.<init>(Agent.java:168)
> at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:439)
> at com.cloud.agent.AgentShell.launchAgentFromClassInfo(AgentShell.java:386)
> at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:361)
> at com.cloud.agent.AgentShell.start(AgentShell.java:473)
> ... 5 more
> Cannot start daemon
> Service exit with a return value of 5
>
>
> On Wed, Sep 25, 2013 at 6:03 PM, Yoshikazu Nojima <mail@ynojima.net>
> wrote:
>
> > Hi Wei,
> >
> > Thank you for fix it!
> >
> > 2013/9/25 Wei ZHOU <ustcweizhou@gmail.com>:
> > > fixed by commit 3dc4284
> > >
> > >
> > > commit 3dc4284a34a1c79970b30288c245a26e8425e811
> > > Author: Wei Zhou <w.zhou@leaseweb.com>
> > > Date:   Wed Sep 25 11:08:57 2013 +0200
> > >     add missing jna-4.0.0.jar to cloudstack-agent library by changing
> > scope
> > > from provided to default runtime
> > > diff --git a/plugins/hypervisors/kvm/pom.xml
> > > b/plugins/hypervisors/kvm/pom.xml
> > > index 4c0ec98..024cafe 100644
> > > --- a/plugins/hypervisors/kvm/pom.xml
> > > +++ b/plugins/hypervisors/kvm/pom.xml
> > > @@ -51,7 +51,6 @@
> > >      <dependency>
> > >        <groupId>net.java.dev.jna</groupId>
> > >         <artifactId>jna</artifactId>
> > > -       <scope>provided</scope>
> > >         <version>${cs.jna.version}</version>
> > >      </dependency>
> > >    </dependencies>
> > >
> > >
> > > 2013/9/25 Wei ZHOU <ustcweizhou@gmail.com>
> > >
> > >> I tried both java 6 and java 7.
> > >> build and install successfully
> > >> agent can not restart.
> > >> I will try after jna.version change .
> > >>
> >
>
>
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the
> cloud<http://solidfire.com/solution/overview/?video=play>
> *™*
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message